I have a web application(Myapp) configured in eclipse. So in order to Deploy it in Websphere v5.1 I have to export it to EAR.
Scenario 1: In eclipse--> new --> Enterprise Application Project -->Named as MyappEAR--> Selected Existing Module(Myapp)--> Finish. Now I got MyappEAR in Project Explorer. Right click on MyappEAR export to EAR. Done. Got MyappEAR.ear file with Myapp.war inside it.(Includes META-INF and xml)
Deployed MyappEAR.ear in Websphere, Deployed Successfully. But when i tried to start MyappEAR it ends up with this error SRVE0054E: An error occurred while loading Web application (No more information found).
Scenario 2: Eclipse--> right click on Myapp export to war--> Got Myapp.war--> Deleted existing myapp from Project explorer. File-->Import-->WAR--> enabled Add project to an EAR and named it as MyappEAR-->finish Right click on MyappEAR-->export to EAR. Done . Got MyappEAR.ear with same stuff as above.
Deloplyed and Started working fine.
Now my question is What's the difference in both ways causing that error? (even checked with beyond compare, everything is same).
Websphere app server v5.1, Java 1.4, Eclipse Indigo.