users@glassfish.java.net

Re: Specify the virtual server(s) to deploy a webapp to

From: <Jan.Luehe_at_Sun.COM>
Date: Mon, 17 Mar 2008 18:27:43 -0700

Joe,

Joe Jordan wrote:

> Greetings,
>
> In glassfish v2, is it possible to specify the virtual server(s) that
> a webapp should be deployed to (e.g. in sun-web.xml) when it is
> deployed as part of an EAR, as is the case with asadmin deploy --
> virtualservers when deploying a standalone WAR?


There is no such configuration support in sun-web.xml.

When you deploy an EAR, all the embedded WAR files will be deployed
to the same set of virtual servers, that is, all virtual servers (minus
__asadmin)
by default, or those specified via -- virtualservers.

This cannot be overridden on a per-WAR basis.


Jan


>
> This question relates to https://glassfish.dev.java.net/issues/
> show_bug.cgi?id=4438 ("Form-based authentication with default-web-
> module problematic"), where being able to deploy different WARs
> within an EAR to context-root "/" of different virtual servers would
> likely solve my problem.
>
> Cheers,
> Joe Jordan
>
> (Apologies if this is double-posted, I don't think ezmlm liked the
> first address I posted from)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>