users@glassfish.java.net

Re: How to deploy a WAR as the default application on the default server?

From: <glassfish_at_javadesktop.org>
Date: Tue, 15 Apr 2008 22:53:27 PDT

Yes. Glassfish does ignore the value of the context-root value specified in sun-web.xml.

The context-root of a web app deployed inside an ear is determined by:
1. the value of the context-root element in the ear file's sun-application.xml file
2. the value of context-root element in the ear file's application.xml
3. the default value computed by by using the modules web-uri...

(in order)

Adding a forth method of determining the context-root, that requires introspection of a second level of archived content, may have seemed like overkill to the implementors.

vbk
[Message sent by forum member 'vbkraemer' (vbkraemer)]

http://forums.java.net/jive/thread.jspa?messageID=269425