• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Error while publishing the WAS 6.0 Test Environment server

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Absolutly great answer!


It saved me!

 
reply
    Bookmark Topic Watch Topic
  • New Topic