【问题标题】:javax.servlet.ServletException: SRVE0207Ejavax.servlet.ServletException: SRVE0207E
【发布时间】:2013-01-30 10:03:15
【问题描述】:

在 WAS7.0 服务器上发布 EAR 文件时,我遇到了异常。

我已将所有需要的 jars 放在 WEB-INF/lib 中,多次重建应用程序但无法解决...

com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor createServletWrapper 
Servlet action is currently unavailable: SRVE0203E: Servlet [action]: Action Servlet 
was found, but is missing another required class.
SRVE0206E: This error typically implies that the servlet was originally compiled 
with classes which cannot be located by the server.

SRVE0187E: Check your class path to ensure that all classes required by the servlet 
are present.SRVE0210I: This problem can be debugged by recompiling the servlet using 
only the classes in the application's runtime class path

com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor createServletWrapper Error 
occured while preparing the servlet for initialization. 
javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created 
by servlet

我应该怎么做才能解决这个问题?当我在服务器上点击应用程序时得到 404。 我的 web.xml 文件已经过验证并且没有错误。

请告诉我解决此异常的可能解决方案。

【问题讨论】:

  • “这个错误通常意味着 servlet 最初是用服务器无法定位的类编译的”的哪一部分你不明白吗?

标签: servlets


【解决方案1】:

这是因为兼容性问题。

当我包含运动衫罐子时,我收到了这个错误。有些罐子需要最低 jdk 1.7

我在 pom.xml 中减少了我的 jar 的版本。

对我来说很好用。

【讨论】:

  • 它在 jdk1.6 的本地开发环境中工作正常。但在 WAS 8.5 服务器中,出现同样的异常
猜你喜欢
  • 1970-01-01
  • 2010-09-28
  • 2018-12-20
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-05-11
  • 2013-01-24
相关资源
最近更新 更多