users@glassfish.java.net

Re: Can I specify both /app and /apptest as context roots for my app?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 02 Jul 2009 09:39:48 -0700

On 07/ 1/09 06:44 PM, glassfish_at_javadesktop.org wrote:
> (Cross posting from Enterprise JavaBeans on forums.sun.com.)
>
> Greetings everyone.
>
> I want requests for both http://host/app/stuff and http://host/apptest/stuff to be handled by the same application.
>
> I don't want to make the application context root the domain root.
>
> Can I specify both /app and /apptest as context roots for the app in its sun-web.xml file or somewhere somehow?
>
> Is this an app server specific thing?
>

In GlassFish, a webapp may be deployed to a single context root only.
Note that a webapp may be declared as the default-web-module of a
virtual server:
In this case, it will also "occupy" the root context ("/") of the
virtual server, in addition to its
designated context root.

Jan

> Thanks,
> Bishop
> [Message sent by forum member 'bishop_' (bishop_)]
>
> http://forums.java.net/jive/thread.jspa?messageID=353852
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>