I made the war file through eclipse IDE, and when deploy it to WebSphere 6.1, I hit 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] java.lang.ClassCastException: org.eclipse.jst.j2ee.commonarchivecore.internal.impl.ArchiveImpl incompatible with org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile
I had been searching around so far couldn't fine a workable solution? Any clue would be much appreciated.
I saw a very similar error deploying to WebSphere 6.1. In my case the problem was that I created the EAR file manually and I had the content of the EAR in a sub-folder by mistake. Unzip your EAR and check that all config files are at the right level, ie. ./META-INF/application.xml
In WebSphere 6.1, it doesn't support xml schema version 2.5, it only up until 2.4. And take note that the jdk is version 1.5 from IBM version, not SUN. Below is the correct declaration in the web.xml.