Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/304.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 从Tomcat6.0迁移到WebSphere8.5_Java_Jakarta Ee_Tomcat_Websphere - Fatal编程技术网

Java 从Tomcat6.0迁移到WebSphere8.5

Java 从Tomcat6.0迁移到WebSphere8.5,java,jakarta-ee,tomcat,websphere,Java,Jakarta Ee,Tomcat,Websphere,将WAR文件部署到websphere application server时,我遇到以下错误: 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) Applic

将WAR文件部署到websphere application server时,我遇到以下错误:

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

错误的DeploymentDescriptorLoadException消息意味着您的web.xml可能有问题。检查PROFILE_HOME/logs/SERVER/SystemOut.log(如果从控制台部署)或PROFILE_HOME/logs/wsadmin.traceout(如果从wsadmin部署)。其中一个日志应该有一个异常堆栈跟踪,其中包含一些包含真正问题的“由引起的”。

Hmmm。您正在从eclipse导出一个
WAR
文件,但是您收到的错误表明您正在尝试安装
EAR
。显然,这是行不通的,因为WebSphere似乎期望一个
EAR
文件。