I have the IBM plugin for eclipse that allows me to develop on websphere 8.0 servers. I’m using eclipse (Juno Build).
Normally, in the project explorer, I can change the context root of an application simply by right-clicking >> properties >> Web Project Settings >> and setting the context root right there. I can literally set that context root to anything, and it doesn’t change anything about it. When I check the admin console, it displays as being ‘AppName’, rather than anything I’ve set in the web project settings. That and I’m unable to change it right there in the console, since the only button I can click is “cancel”. All the text fields are there for me to change it, but there’s no save button anywhere…
Has anyone else had this issue? What did you do to fix it, if at all?
There are 2 places you can set a
Context Rootin WebSphere.The first is in the module definition inside the
application.xmlfile of the EAR (That file is not mandatory in WAS 8 but it is possible to use it)The second is in the
ibm-web-ext.xmlfile inside the WAR.Is it important to keep in mind the
application.xmlsettings override theibm-web-ext.xmlsettings.When you set the context root in the UI it is setting the
ibm-web-ext.xmlfile, if you got another definition inapplication.xmlyou will see no change, as you experiencing.My suggestion is, if you are using
application.xmlalways set the context root there.