I am trying to compile and deploy an EAR file to a WebSphere 6.1 app server (WAS) -- without Rational Application Developer (RAD) or Liberty. I'm in the initial stage of trying to move the compile and deploy to a build server. I have no problems at all with the compile. However, when I attempt to deploy the EAR I get an AppDeploymentException:
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.
I read somewhere (can't find the link now) that WAS files must be compiled using the IBM JDK. So I installed that and recompiled with it but got the same problem.
The major version of the class files (from javap) is correct but I'm still mystified about this error because it seems that the only difference between "working" and "not" is the byte code itself. Is there some other inherent mojo that requires these files to be built by RAD?
This question suggests that web.xml schema must be 2.4 for WebSphere 6.1 but this had no impact for me. In fact, if I take a working EAR (created via RAD) and from that copy only the class files into the EAR that was created by the raw JDK/gradle process, it will work.
Sorry I'm not that familiar with WebSphere to include more information about the error. I checked the activity.log file for that profile and couldn't even find the error that was reported in the console output. The dmgr log only says:
[7/8/14 12:46:56:886 PDT] 0000073b ApplicationDe I ApplicationDeploymentController perform ApplicationDeploymentControll
er: performing appcontexts refresh
[7/8/14 12:47:00:416 PDT] 0000073b WebApp A SRVE0180I: [isclite#isclite.war] [/ibm/console] [Servlet.LOG]: action: ApplicationDeploymentDetailForm was null.Creating new form bean and storing in session
[7/8/14 12:48:25:273 PDT] 0000062d wtp W org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ModuleRefImpl in
itModuleFileFromEAR Ignoring FileNotFoundException [ mbepepWeb.war ]
[7/8/14 12:48:25:279 PDT] 0000062d wtp E org.eclipse.jst.j2ee.application.internal.impl.WebModuleImpl incomp
atible with org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile
I'm not sure how relevant that is. The mentioned war file is at the root of the EAR file.
Hope someone has a suggestion!