GF2ur1
Here's the error I'm getting on the console.
Trying to create reference for application in target server failed; The context root [] in application [myapp] is already in use by another application on this instance [server]. The context root [] in application [myapp] is already in use by another application on this instance [server].
I have a GF server with several virtual hosts on it.
On one specif host, host1, I had a previous version of the EAR deployed, along with a companion WAR.
The WAR's context is mapped to "/" via the console when the WAR was deployed.
I undeploy the existing EAR, deploy the new one, and I get the previous error message. If I undeploy the WAR, then I can deploy the EAR, but then can not deploy the WAR again.
The EAR contains an internal WAR, but it is NOT mapped to "/" (at least it shouldn't be -- it's not on the development machine where it was deployed before).
What bothers me about the error message is that a) it doesn't say what context is conflicting (it just says [], but the may be root), and b) it says "already in use by another application on this instance [server].", but the virtual host I'm deploying to is NOT "server" (which is the default host representing the entire server), rather it's being deployed to the virtual host "host1".
So, my question is what does the app server use for context assignments in a EAR, so I can perhaps look for what is now conflicting that wasn't before.
Does it solely use the sub-web.xml file in the WARs within the EAR? Something else?
This just happened. Normally, it's a simple undeploy and redeploy with the new EAR. So, in theory there's something different about the EARs is all I can think.
[Message sent by forum member 'whartung' (whartung)]
http://forums.java.net/jive/thread.jspa?messageID=269533