在将EAR部署到WebSphere时,“重复条目”的原因是什么? SaveFailureException? [英] When deploying an EAR into WebSphere, what's the cause of a "duplicate entry" SaveFailureException?

查看:170
本文介绍了在将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.

这篇关于在将EAR部署到WebSphere时,“重复条目”的原因是什么? SaveFailureException?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆