|
From: James L. <ca...@on...> - 2004-06-24 14:46:33
|
Using jetty-5.0.RC1
I've been trying to set the webdefaults for addWebApplications in my
server config file with no luck, it just ignores my web defaults
setting:
<Set name=3D"rootWebApp">root</Set>
<Call name=3D"addWebApplications">
<Arg>virtualhost</Arg>
<Arg>/the/path/to/my/web/apps/</Arg>
<Arg>/this/is/completely/ignored.xml</Arg>
<Arg type=3D"boolean">true</Arg>
</Call>
Looking at the code I see why, from src/org/mortbay/jetty/Server.java
// $Id: Server.java,v 1.32 2004/05/19 14:27:33 gregwilkins Exp $
public WebApplicationContext[] addWebApplications(String host,
String webapps,
String defaults,
boolean extract)
throws IOException
{
return addWebApplications(host,webapps,null,extract,true);
}
The workaround is to invoke the 5 arg form by adding another:
<Arg type=3D"boolean">true</Arg>
James Lee.
|