users@glassfish.java.net

Re: Cannot set my own default-web.xml file in GlassFish v3.0.1 Embedded

From: Amy Roh <amy.roh_at_oracle.com>
Date: Tue, 22 Jun 2010 10:57:39 -0700

Can you file an issue? I'll take a look at it.

Amy

[1] https://glassfish.dev.java.net/issues/enter_bug.cgi

glassfish_at_javadesktop.org wrote:
> When I completely define my configuration programmatically I can use the following code to force GlassFish to use my version of the default-web.xml, but when I set a configurationFile (i.e. domain.xml) to be read glassfish seems to lose my definition of which default-web.xml to use.
>
> ContainerBuilder b = server.createConfig(ContainerBuilder.Type.web);
> ((WebBuilder)b).setDefaultWebXml(defaultWebXml);
> server.addContainer(b);
>
> My domain.xml file is pretty minimal, with only with is necessary to get things to work but it seems to somehow override my change - though there is no way in the domain.xml that I am aware of to define the location of the default-web.xml (is there?)
>
> Thanks,
> Joey
> [Message sent by forum member 'hotngui']
>
> http://forums.java.net/jive/thread.jspa?messageID=475387
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>