embedded@glassfish.java.net

RE: [embedded] How to specify default-web.xml

From: Joey Jarosz <joey_at_cadence.com>
Date: Mon, 16 Mar 2009 08:08:13 -0700

Thanks for the tip, but that won't work in the environment that our
users work in.

 

________________________________

From: Byron.Nevins_at_Sun.COM [mailto:Byron.Nevins_at_Sun.COM]
Sent: Saturday, March 14, 2009 1:10 PM
To: embedded_at_glassfish.dev.java.net
Subject: Re: [embedded] How to specify default-web.xml

 

1) You need to put your web.xml in your classpath with the same
package/path as the file that is inside the embedded jar. Put yours
earlier in the classpath (on disk OR in a jar) and it should be picked
up.
You can find the exact path/name of the file by looking inside the
embedded jar.

Joey Jarosz wrote:

I grabbed the latest promoted build the other day. Apparently
Server.setDefaultWebXml() went away and I can't figure out how to
specify the default-web.xml file to be used by my web-apps. Any
suggestions?

 

I kind of hoped that maybe if I just put it in
<installdir>/config/default-web.xml that it would be found but no such
luck.

--------------------------------------------
Joey Jarosz

Senior Architect

Chip Planning Solutions

Cadence Design Systems, Inc.
(408) 914-6269


Need some IP? Check out www.chipestimate.com
<http://www.chipestimate.com>

 





-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 -
Sun Microsystems, Inc.
--------------------------------------------------------------------- To
unsubscribe, e-mail: embedded-unsubscribe_at_glassfish.dev.java.net For
additional commands, e-mail: embedded-help_at_glassfish.dev.java.net