在将EAR部署到WebSphere时,“重复条目”的原因是什么? SaveFailureException?

在将EAR部署到WebSphere时,“重复条目”的原因是什么? SaveFailureException?

问题描述:

尝试安装EAR时,会出现以下异常:

When attempting to install the EAR, the following exception results:

Caught Exception installing ApplicationName  
com.ibm.ws.scripting.ScriptingException: com.ibm.websphere.management.application.client.AppDeploymentException: AppDeploymentException: []  
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: META-INF/application.xml  
META-INF/application.xml  
duplicate entry: META-INF/application.xml  
org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: org.eclipse.jst.j2ee.commonarchivecore.internal.exception.SaveFailureException: META-INF/application.xml  

不用要说,EAR文件中没有两个application.xml文件,所以我无法解释重复条目错误。这个例外对任何人都很熟悉吗?它是如何解决的?

Needless to say, the EAR file does not have two application.xml files within it, so I can't explain the "duplicate entry" error. Is this exception familiar to anyone? How is it resolved?

我的建议是用7拉链打开/探索耳朵并确保没有两个META-INF级别的application.xml文件。 Zip 在许多条件下为文件创建重复条目,特别是如果您从多个目录中一起压缩源文件。我们遇到了同样的问题。

My advice is to open/explore the ear with 7-zip and make sure there are not two application.xml files at the META-INF level. Zip will create duplicate entries for files under many conditions, particularly if you are zipping source files together from multiple directories. We just had this exact same problem.