|Re: Context Root ignored? [message #540332 is a reply to message #540324]
||Tue, 15 June 2010 16:54
| Larry Isaacs
Registered: July 2009
On 6/15/2010 12:02 PM, Stephan Naecker wrote:|
> Hey there,
> I decided to reanimate this post cause I thought it was the easiest way
> to reference it. I hope somebody still have an eye on it, because I have
> the some problem, not for the Tomcat but for the JBoss AS.
> I think I understood that there is a context root and a deployment
> folder. The context root is part of the URL to access the web
> application. The deployment folder is the folder that JBoss uses to
> serve the requests for that application.
> But after changing for example context root of project A to B, I still
> have to enter http://localhost:8080/A to access it.
> So, how can I set a context root different from the Eclipse project name?
The problem is that the JBoss server adapter within WTP relies on
auto-deployment to serve the webapp. This means the context root for
the webapp is determined by the name of the WAR file created, which is
derived from the deploy-name. If you don't want to rename the project,
you can add the Web project to an EAR project. In the application.xml
of the EAR project, an alternate name for the webapp can be specified.
Deploy the EAR project and you can access the webapp with the alternate
context root. You might also try the JBoss AS Tools. The JBoss server
adapter it provides is better integrated and likely doesn't have this
Powered by FUDForum
. Page generated in 0.04544 seconds