users@glassfish.java.net

Re: web application for a particular virtual server only

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Thu, 14 May 2009 17:11:38 -0700

On 05/14/09 07:18 AM, glassfish_at_javadesktop.org wrote:
>> Use --virtualservers option while deploying using
>> "asadmin deploy" command.
>>
>>
>
> Thanks but it did not work.
>
> I have two virtual servers defined. One is called "server" and the other "solr". 'server' points to domain_name_1 and solr points to domain_name_2.
>
> I used command
>
> asadmin deploy --virtualservers solr hello.war
>
> I can still access both http://domain_name_1/hello and http://domain_name_2/hello. It's not what I expected which is only http://domain_name_2/hello should be accessible.
>
> Any idea?
>

Yes, this is a regression from GlassFish v2.1.

An issue has already been filed, see
https://glassfish.dev.java.net/issues/show_bug.cgi?id=8054
("application deployed in one virtual server is accessible in all")

Fix will be coming soon.

Thanks!

Jan

> -Kevin
> [Message sent by forum member 'zhangyongjiang' (zhangyongjiang)]
>
> http://forums.java.net/jive/thread.jspa?messageID=346269
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>