users@glassfish.java.net

Multiple context roots for webapp?

From: Comerford, Sean <Sean.Comerford_at_espn.com>
Date: Fri, 5 Nov 2010 16:07:36 -0400

I have a webapp foo.war that I deploy to glassfish. So of course it’s available at host:1234/foo

I also want it to be available at host:1234/bar

The catch is I have a default web app deployed to the instance which I CANNOT remove.

Is there any way to assign multiple context roots to a single webapp or otherwise accomplish the same?

Again, I want a single webapp to be available at /foo and /bar but CANNOT use / + servlet mappings to accomplish this.


--
Sean Comerford, Software Engineer
ESPN.com Site Architecture Group
Office: 860.766.6454    Cell: 860.329.5842