2016-10-06 100 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文件,所以程序一開始就停下來。

相關問題