users@glassfish.java.net

Re: Virtual Server with Glassfish

From: <glassfish_at_javadesktop.org>
Date: Mon, 31 Mar 2008 09:47:33 PST

Thanks, whartung, for adding your comments.

The behaviour Patrick has been seeing when declaring his webapp as his virtual server's default-web-module is described at:

  https://glassfish.dev.java.net/servlets/ReadMsg?list=dev&msgNo=1916

See also https://glassfish.dev.java.net/issues/show_bug.cgi?id=3710

Patrick, in order to accomplish what you are trying to do, deploy your webapp to the root context of your virtual server, as follows:

  asadmin deploy --virtualservers www.webapp1.com --contextroot "/" <location-of-your-war>

or bundle a sun-web.xml with your webapp, in which you declare "/" as your webapp's context root:

  <sun-web-app>
    <context-root>/</context-root>
  </sun-web-app>

as whartung has suggested.
[Message sent by forum member 'jluehe' (jluehe)]

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