Skip to main content

context-root not working

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hzhang_jn
Offline
Joined: 2005-07-22

For an enterprise application (.ear), the
application.xml/glassfish-application.xml context root will be used (and
glassfish-web.xml ignored), if you want to override the context root in
application.xml, you should do it in glassfish-application.xml.

For a standalone web module (.war), you could use glassfish-web.xml to
override the default context root.

On 7/17/2012 5:15 AM, tomaz wrote:
> Environment:

tomaz

Thx, I'm using glassfish-web.xml with aris, but it's not working. I also have EJB Statless bean's inside my war, is this
the problom?

Regards, Tomaz

Dne 17.7.2012 15:59, piše Hong Zhang:
> For an enterprise application (.ear), the application.xml/glassfish-application.xml context root will be used (and glassfish-web.xml ignored), if you
> want to override the context root in application.xml, you should do it in glassfish-application.xml.
>
> For a standalone web module (.war), you could use glassfish-web.xml to override the default context root.
>
> On 7/17/2012 5:15 AM, tomaz wrote:
>> Environment: