users@glassfish.java.net

Re: Problems with listeners, hosts and multihoming

From: Wolfram Rittmeyer <w.rittmeyer_at_jsptutorial.org>
Date: Fri, 04 Jul 2008 23:41:32 +0200

glassfish_at_javadesktop.org wrote:
(...)

>
> Back to what you have asked for. This are the domain.xml entries:
> <web-module availability-enabled="false" context-root="/V31" directory-deployed="true" enabled="true" location="/home/aperez/NetBeansProjects/V31/build/web" name="V31" object-type="user"/>
> <web-module availability-enabled="false" context-root="/V32" directory-deployed="true" enabled="true" location="/home/aperez/NetBeansProjects/V32/build/web" name="V32" object-type="user"/>
> <web-module availability-enabled="false" context-root="/V33" directory-deployed="true" enabled="true" location="/home/aperez/NetBeansProjects/V33/build/web" name="V33" object-type="user"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="V31"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="V32"/>
> <application-ref disable-timeout-in-minutes="30" enabled="true" lb-enabled="false" ref="V33"/>


This exactly is the problem. The last three lines should be

<application-ref disable-timeout-in-minutes="30" enabled="true"
lb-enabled="false" ref="V31" virtual-servers="S31"/>
<application-ref disable-timeout-in-minutes="30" enabled="true"
lb-enabled="false" ref="V32" virtual-servers="S32"/>
<application-ref disable-timeout-in-minutes="30" enabled="true"
lb-enabled="false" ref="V33" virtual-servers="S33"/>

You should also use >>context-root="/"<< for your web-modules so that
the respective apps get served when entering http://lvos1.ips etc.

As you have written your current configuration is the reason for your
web-apps being deployed to all virtual-servers and not being served when
entering any URL without a context-path.


Please let us know whether this solved your problem.


--
Wolfram Rittmeyer