users@glassfish.java.net

Re: permanently set context root for .war application

From: Shing Wai Chan <shing.wai.chan_at_oracle.com>
Date: Tue, 07 Sep 2010 17:49:34 -0700

You can configure this in sun-web.xml as follows:
<sun-web-app>
<context-root>mycontextroot</context-root>
</sun-web-app>


On 9/7/10 5:47 PM, cgca wrote:
> Hello,
>
> I've been trying to figure out how to permanently set the context root for
> my .war application and I'm unable to do so. It seems as though the war
> project name is always used along with the version. I can change it in the
> admin console and that will reset it, but then when I redeploy the
> application it gets changed back. I'm using glassfish version 2.1. Any
> ideas?
>