2012-11-15 104 views
0

在部署WAR文件到WebSphere Application Server我收到以下錯誤:遷移從Tomcat 6.0到WebSphere 8.5

1. The EAR file could be corrupt and/or incomplete. Make sure that the application is at a compatible Java(TM) Platform, Enterprise Edition (Java EE) level for the current version of WebSphere(R) Application Server. 
2. org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml 

我知道有一些問題,我目前的web.xml,但我怎麼能找到問題在修復之前。

Note: Exporting the WAR file from Eclipse 
+0

嗯。你從eclipse導出WAR文件,但是你得到的錯誤意味着你正在嘗試安裝一個'EAR'。顯然這不會起作用,因爲WebSphere似乎期待着一個'EAR'文件。 – Isaac

回答

2

糟糕的DeploymentDescriptorLoadException消息意味着您的web.xml可能有問題。檢查PROFILE_HOME/logs/SERVER/SystemOut.log(如果從控制檯進行部署)或PROFILE_HOME/logs/wsadmin.traceout(如果從wsadmin進行部署)。其中一個日誌應該包含異常堆棧跟蹤,其中包含真正問題的一些「由...引起」。