|
From: David C. <Dav...@di...> - 2005-07-27 21:23:50
|
Hi, there:
As a newbie to Jetty, currently I'm using Jetty-4.2.24, and running Jetty by
using:
java -jar start.jar etc\jetty.xml; And to deploy some war files copied from
Apache Struts, I added following in etc\jetty.xml:
<Call name="addWebApplication">
<Arg>/struts/struts-examples/*</Arg>
<Arg><SystemProperty name="jetty.home"
default="."/>/webapps/struts/struts-examples.war</Arg>
<Arg><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml</Arg>
<Arg type="boolean">true</Arg> <!-- if true, expand war in temp dir -->
</Call>
However, I just noticed that if I set <Arg type="boolean"> as "true",
everything works fine, however, if I set it as "false", Jetty failed to
deploy it with exception like:
14:19:03.243 WARN!! Configuration error on
jar:file:/C:/jetty-4.2.24/webapps/str
uts/struts-examples.war!/
java.lang.IllegalArgumentException: name
at sun.misc.URLClassPath$Loader.findResource(URLClassPath.java:450)
at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
at java.net.URLClassLoader$2.run(URLClassLoader.java:352)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:349)
at
org.mortbay.http.ContextLoader.getResource(ContextLoader.java:234)
at org.mortbay.util.Resource.newSystemResource(Resource.java:146)
at
org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationC
ontext.java:380)
at org.mortbay.http.HttpServer.start(HttpServer.java:663)
at org.mortbay.jetty.Server.main(Server.java:429)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.mortbay.start.Main.invokeMain(Main.java:153)
at org.mortbay.start.Main.start(Main.java:483)
at org.mortbay.start.Main.main(Main.java:91)
So, what's the problem? anything wrong from what I did? what should I do?
Thanks a lot in advance
David
|