users@glassfish.java.net

Virtual Servers on GlassFish v1 and V2

From: <glassfish_at_javadesktop.org>
Date: Wed, 26 Sep 2007 21:37:40 PDT

I have identical virtual server configurations on GlassFish v1 and v2 but I am getting different behavior.

I have the following settings:

Web Applications (jamwiki.org)
 - Name: jamwiki-war
 - Context Root: jamwiki-war

HTTP Listeners:
 - Name: http-listener-3
 - Network Address: 0.0.0.0
 - Listener Port: 80
 - Default Web Server: jamwiki-war

Virtual Server:
 - Id: aaa-com
 - Hosts: aaa.com,www.aaa.com
 - HTTP Listener: http-listener-3
 - Default Web Module: jamwiki-war

In GlassFish v2, when I connect to http://www.aaa.com/en/StartingPoints, links (relative links) contain the name of the deployed application (jamwiki-war). Example - http://www.aaa.com/jamwiki-war/en/StartingPoints or http://www.aaa.com/jamwiki-war/en/Special:Search.

In GlassFish v1, the links (relative links) don't contain the name of the deployed application. Example - http://www.aaa.com/en/StartingPoints or http://www.aaa.com/en/Special:Search.

The behavior of v2 is consistent when connecting to the deployed application from port 8080 (http://localhost:8080/jamwiki-war/en/startingPoints/).

I like the behavior of virtual servers on GlassFish v1. How can I make GlassFish v2 act like GlassFish v1?

Thanks.
[Message sent by forum member 'amerigo5' (amerigo5)]

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