users@glassfish.java.net

Re: Deploy-VirtualServer concept is not good

From: <glassfish_at_javadesktop.org>
Date: Wed, 28 Feb 2007 15:48:09 PST

Hi Jan, thanks for your answer, nice to meet you again.
But i am very sorry, your answer is really not enough.


> By default, user apps are deployed to all configured virtual servers (minus "__asadmin").
That describes what i detected.
Does not make sense for me, why AppOne of CompanyOne should be deployed also to Domain of CompanyTwo.
But is not really core of the problematic, if next point could be resolved.


> or specify the target virtual servers in the admingui.
This is the core of the problematic, this is what does not work or should be exactly defined here step by step.
CoreProblematic: Two Context Roots

Step 1: Create the Virtual Servers
Defining two Virtual Server each for one app/company
VirtualServer1: Id=V_ONE, Host=www.one.de
VirtualServer2: Id=V_TWO, Host=www.two.de

Step2: Deploy Apps to the Virtual Servers
Deploy two different apps to different depending Virtuals Server
App1: AppName=One, ContextRoot=/, VirtualServers=V_ONE => this works ok
App2: AppName=Two, ContextRoot=/, VirtualServers=V_TWO => Exception

ContextRoot must be unique depending to virtual servers and not depending to Webapplications.
[Message sent by forum member 'hammoud' (hammoud)]

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