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:
....
我已經爲我的項目嘗試過「mvn clean install」,然後再構建一個ear包以部署到WAS服務器。但它看起來是相同的錯誤信息。是否可以涉及我的包和WAS服務器之間的任何jar衝突?它可以在本地Eclipse中工作。相同的EAR包也可以在Tomcat服務器中工作。但不能在WAS服務器上工作。 – Hunter
是bcz的服務器庫差異 – mhasan
你能否告訴哪個jar文件可能導致這個「DispatcherServlet」問題? spring-web,spring-webmvc?或其他人? – Hunter