2016-10-06 101 views
0

EAR包已部署到WAS8.5.5.7。 UI可以显示。但是,当UI尝试触发Java功能时,我会得到以下响应。找到org.springframework.web.servlet.DispatcherServlet,但缺少另一个需要的类

Error 404: javax.servlet.UnavailableException: SRVE0203E: Servlet [rrbapp]: org.springframework.web.servlet.DispatcherServlet 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 

SRVE0234I: Application class path=[/opt/WebSphere85/profiles/appprofile/installedApps/wascell/abcapp.ear/cn-abc-web-app-1.0.0.war/WEB-INF/classes: 
/opt/WebSphere85/profiles/appprofile/installedApps/wascell/rrbapp.ear/cn-abc-web-app-1.0.0.war/WEB-INF/lib/cn-abc-domain-1.0.0.jar: 
/opt/WebSphere85/profiles/appprofile/installedApps/wascell/rrbapp.ear/cn-abc-web-app-1.0.0.war/WEB-INF/lib/cn-abc-db-object-1.0.0.jar: 
/opt/WebSphere85/profiles/appprofile/installedApps/wascell/rrbapp.ear/cn-abc-web-app-1.0.0.war/WEB-INF/lib/cn-abc-web-1.0.0.jar: 
/opt/WebSphere85/profiles/appprofile/installedApps/wascell/rrbapp.ear/cn-abc-web-app-1.0.0.war/WEB-INF/lib/commons-logging-1.2.jar: 
.... 

回答

0

它看起来是一个罐子依赖性错误,你试过运行mvn clean install,它应该可以解决你的问题。 运行此命令并尝试再次重新部署

+0

我已经为我的项目尝试过“mvn clean install”,然后再构建一个ear包以部署到WAS服务器。但它看起来是相同的错误信息。是否可以涉及我的包和WAS服务器之间的任何jar冲突?它可以在本地Eclipse中工作。相同的EAR包也可以在Tomcat服务器中工作。但不能在WAS服务器上工作。 – Hunter

+0

是bcz的服务器库差异 – mhasan

+0

你能否告诉哪个jar文件可能导致这个“DispatcherServlet”问题? spring-web,spring-webmvc?或其他人? – Hunter

0

在我的包中添加“slf4j-log4j12”jar后,它可以在没有此错误的情况下工作。我认为原因是,日志无法在服务器中打开这个jar文件,所以程序一开始就停下来。

相关问题