Link to home
Start Free TrialLog in
Avatar of JLManhattan
JLManhattan

asked on

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.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd">
<application id="Application_ID">
<display-name>app</display-name>
<description>Test ear file</description>
<module id="WebModule_1">
<web>
<web-uri>app.war</web-uri>
<context-root>app</context-root>
</web>
</module>
</application>


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?
ASKER CERTIFIED SOLUTION
Avatar of HonorGod
HonorGod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ponrajk22
ponrajk22

Try to open ur EAR using JAR command

jar xvf myearfile.ear

and the try restarting your Dmgr ,Node agent and JVM ,then try deployment, and also remove the temp files before deployment


-Ponraj K
Maybe the .war file is missing required jar files. If it does make sure that you define them in separate <module> elements.
Avatar of JLManhattan

ASKER

My appologies for any confusion. I am using the WAS console to deploy the ear file.

The war file is present in the ear and only the application.xml file references it.

Is there anywhere else the war file should be referenced? I have never had that issue before (however I have only deployed ear files successfully in windows was environments, not in linux).
Here is something I have noticed:

If the Java version is set to higher than 1.3 in both web and application.xml files I see this error on deployment:

AppDeploymentException: [null] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: META-INF/application.xml



If the Java version is to 1.3 in both web and application.xml files I see the following error:

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


Could this be a java conflict somehow?
Can you check if you have a web.xml in your .war file? It should be in the WEB-INF/web.xml (the path is case sensitive).
I wound up copying another working ear file from another linux environment and modified where needed. Still not certain why the one created via AST didnt deploy. Likely some conflict somewhere that I just was too blind to see.
Answer did not resolve the issue I questioned - but did lead me to find the correct answer.
Thanks for the grade & points.

Thank you also for sharing your solution.

Good luck & have a great day.
at my side happened to be a Disk space issue , when I checked SystemErr.log , after creating sufficient disk space it ran good.