I added my EAR file to the Integrated Websphere Test Environment V6 in RAD. But while publishing the server it gives me following error:
Publish completed with errors and/or warnings. Please see server logs for more details. Publishing MyEar_Ear to WebSphere v6.0 Server @ localhost Reinstalling Application. Installation Completed Sucessfully: Starting Application: MyEar_Ear Application Failed to Start. MyEar_Ear null nested exception is com.ibm.ws.exception.RuntimeWarning: com.ibm.ws.webcontainer.exception.WebAppNotLoadedException: Failed to load webapp: Failed to load webapp: Context root /* is already bound. Cannot start application MyEar WEB PROJECT Please see server logs for more details.
It looks like the application has no context root specified in the application.xml file, or, for that matter, you are using a default context root that is already being used by another application. Context roots must be unique for web applications running on a server.
Please post your application.xml file for us to look at.
Joined: Apr 04, 2007
hi Cameron ,
application.xml . Please ignore the [ ] brackets and treat them as < >.
The context root is ' / ' in my application.xml. Also this is the only project in my workspace so I don't know from where it is getting this ' / ' context root to be bound ?
Joined: Apr 04, 2007
hi , I have found a solution to this problem. It worked fine for me . Here are the steps to remove the error :
1) Create a New Test Environment Server. 2) Start the Server. 3) Right Click on Server and run Admin Console. 4) Login using any string name e.g Javaranch. 5) Inside the admin console , Select Applications menu and then Enterprise Applications. 6) Check the checkbox before the Default Application and click Uninstall. 7) The confirmation message for the successful uninstall would be displayed. Then go to Servers menu and then Application Servers. A save option would be displayed their. Use that and save the changes made. 8) Restart the server. Now whenever you create a new EAR, the default context root would not be created. 9) Now add your actual EAR file by right clicking Add/Remove Projects on WAS 6.0 test environment server.