Java EE – what is the reason for the “duplicate entry” savefailureexception when deploying ear to WebSphere?
•
Java
When trying to install ear, the following exception occurs:
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
Needless to say, there are no two applications in the ear file XML file, so I can't explain the "duplicate entry" error Is this exception familiar to anyone? How?
Solution
My suggestion is to use 7-Zip to open / explore the ear and ensure that there are no two applications at the meta-inf level XML file Zip will create duplicate entries for files under many conditions, especially if you compress source files from multiple directories together We just had the same problem
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码