users@glassfish.java.net

Re: Virtual Server with Glassfish

From: <glassfish_at_javadesktop.org>
Date: Mon, 31 Mar 2008 09:19:40 PST

You only need to do two things.

First, create your virtual server. No reason to set a default web app or anything, simply created a virtual server with the default settings.

Then, deploy your war.

If you deploy it through the console (or the admin CLI) you can tell the server to use "/" as the context root, and it will be deployed and "www.vhost1.com/index.jsp".

Or, you set up the sun-web.xml to tell the server which context path you would like to use (i.e. "/"), and it will use that on deploy.
[Message sent by forum member 'whartung' (whartung)]

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