繁体   English   中英

找到了org.springframework.web.servlet.DispatcherServlet,但是缺少另一个必需的类

[英]org.springframework.web.servlet.DispatcherServlet was found, but is missing another required class

EAR包已部署到WAS8.5.5.7。 用户界面可以显示。 但是,当UI尝试触发Java函数时,我得到以下响应。

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:
....

它似乎是Jar依赖项错误,您是否尝试过运行mvn clean install ,它应该可以解决您的问题。 运行此命令,然后尝试重新部署

在我的软件包中添加“ slf4j-log4j12” jar之后,它可以正常工作而不会出现此错误。 我认为原因是,如果没有服务器中的这个jar,日志将无法打印,因此程序会在开始时停止。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM