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?
>