aspose file tools*
The moose likes Websphere and the fly likes  Error while publishing the WAS 6.0 Test Environment server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark " Error while publishing the WAS 6.0 Test Environment server " Watch " Error while publishing the WAS 6.0 Test Environment server " New topic
Author

Error while publishing the WAS 6.0 Test Environment server

Priyadarshan Kelkar
Ranch Hand

Joined: Apr 04, 2007
Posts: 31
hi ,

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.

My application.xml is as follows :

[application id="Application_ID"]
[display-name]MyEar_Ear[/display-name]
[module id="WebModule_1176189280139"]
[web]
[web-uri]MyWar_War.war[/web-uri]
[context-root]/[/context-root]
[/web]
[/module]
[/application]


Please can anyone give me some insight into this . I have posted this earlier on forum but did not get a proper solution. Please let me know if you require any other details ? Please help me.

Thanks for your support.
[ April 11, 2007: Message edited by: Priyadarshan Kelkar ]
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

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.

-Cameron McKenzie
Priyadarshan Kelkar
Ranch Hand

Joined: Apr 04, 2007
Posts: 31
hi Cameron ,

application.xml . Please ignore the [ ] brackets and treat them as < >.

[application id="Application_ID"]
[display-name]MyEar_Ear[/display-name]
[module id="WebModule_1176189280139"]
[web]
[web-uri]MyWar_War.war[/web-uri]
[context-root]/[/context-root]
[/web]
[/module]
[/application]


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 ?
Priyadarshan Kelkar
Ranch Hand

Joined: Apr 04, 2007
Posts: 31
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.

Hope this helps to all .

Daniel Campolina
Greenhorn

Joined: Oct 03, 2007
Posts: 1
Absolutly great answer!


It saved me!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while publishing the WAS 6.0 Test Environment server