Problem : Websphere EAR file deployment error

Problem : Websphere EAR file deployment error

I am trying to deploy an ear file on WAS 6.1x in linux. When deploying the ear file via the was admin I am seeing the following error:

The EAR file could be corrupt and/or incomplete. Make sure that the application is at a compatible Java 2 Platform, Enterprise Edition (J2EE) Level for WebSphere Application Server.

AppDeploymentException: [null] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: dd_in_ear_load_EXC_

I have seen this error refers to missing a war file within the application.xml. I have the referenced war file in the ear file and have it referenced in application.xml so not sure why I keep seeing this error.
Below is my application.xml for review.

http://java.sun.com/dtd/application_1_3.dtd“>

app-name>
Test ear file

app.war
app-root>

I wound up using IBM’s AST to create the EAR file which has the following structure.

app.ear
———\META-INF\
———\META-INF\application.xml
———\META-INF\MANIFEST.MF
———app.war

AST noted there were no errors or warnings when I performed a validation. Any idea why the server would error deploying this ear file?


Solution: Websphere EAR file deployment error

When you say that you are having trouble when you deploy “via the was admin”, it is not clear whether you are trying to deploy the EAR file using:

– The Adminstrative console, or
– The wsadmin tool