users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Sat, 05 Apr 2008 11:17:12 PST

The requirement for the context on the deploy page is just an artifact of that process. Simply put "/" in there, and it will deploy fine for you. This field overrides the sun-web.xml file. If you deploy it from the command line, and don't specify the context root option, it will use one in sun-web.xml.

Using "/" as the context root from the deployment screen, I've never had a problem deploying a root web app.

If you like, you can submit a RFE to ask that the admin console better handle an empty context root field in the console.
[Message sent by forum member 'whartung' (whartung)]

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