From: Thahir <tha...@ex...> - 2004-02-29 16:09:41
|
Thanks Tony for the quick reply my project.xml is so small. Given below.. --------------------------------- <Configure class="org.mortbay.jetty.Server"> <Call name="addListener"> <Arg> <New class="org.mortbay.http.SocketListener"> <Set name="Port"><SystemProperty name="jetty.port" default="8090"/> </Set> <Set name="MinThreads">5</Set> <Set name="MaxThreads">100</Set> <Set name="MaxIdleTimeMs">30000</Set> </New> </Arg> </Call> <Call name="addWebApplication"> <Arg>/</Arg> <Arg><SystemProperty name="project.home" default="."/> /project/Studio</Arg> </Call> <Call name="addRealm"> <Arg> <New class="com.resource.realm.MyRealm"> <Arg>JDBC Digest Realm</Arg> <Arg><SystemProperty name="project.home" default="."/> /etc/project.properties</Arg> </New> </Arg> </Call> </Configure> --------------------------------- When I try to add the section to my project.xml... <Call name="addContext"> <Arg>/studio/*</Arg> <Call name="addServlet"> <Arg>org.mortbay.jetty.servlet.Default</Arg> <Call name="setInitParameter"><Arg>dirAllowed</Arg> <Arg>true</Arg></Call> <Call name="setInitParameter"> <Arg>resourceBase</Arg> <Arg><SystemProperty name="project.home" default="."/> /etc/project.properties</Arg> </Call> </Call> </Call> I get these errors... 18:42:37.674 WARN!! java.lang.IllegalStateException: No Method: <Call name="addServlet"> <Arg>org.mortbay.jetty.servlet.Default</Arg>< Call name="setInitParameter"> <Arg>dirAllowed</Arg><Arg>true</Arg></Call> <Call name="setInitParameter"> <Arg>resourceBase</Arg><Arg><SystemProperty name= "project.home" default="."/> /etc/project.properties</Arg></Call></Call> on class org.mortbay.jetty.servlet.ServletHttpContext at org.mortbay.xml.XmlConfiguration.call (XmlConfiguration.java:530) at org.mortbay.xml.XmlConfiguration.configure( XmlConfiguration.java:231) at org.mortbay.xml.XmlConfiguration.call (XmlConfiguration.java:525) at org.mortbay.xml.XmlConfiguration.configure( XmlConfiguration.java:231) at org.mortbay.xml.XmlConfiguration.configure( XmlConfiguration.java:163) at org.mortbay.jetty.Server.<init>(Server.java:89) at org.mortbay.jetty.Server.<init>(Server.java:63) at org.mortbay.jetty.Server.main(Server.java:428) at sun.reflect.NativeMethodAccessorImpl. invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.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) 18:42:37.674 WARN!! java.io.IOException: Jetty configuration problem: java.lang.IllegalStateException: No Method: <Call name="addServlet"><Arg>org.mortbay.jetty.servlet. Default</Arg> <Call name="setInitParameter"><Arg>dir Allowed</Arg><Arg>true</Arg></Call><Call name="setInitParameter"> <Arg>resourceBase </Arg><Arg><SystemProperty name="project.home" default="."/>/etc/ project.properties </Arg></Call></Call> on class or g.mortbay.jetty.servlet.ServletHttpContext at org.mortbay.jetty.Server.<init>(Server.java:98) at org.mortbay.jetty.Server.<init>(Server.java:63) at org.mortbay.jetty.Server.main(Server.java:428) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Demo.xml says <!-- Build a demo context manually. --> what in case I do not want to build one manually but just add the listing part alone how to do it any idea.? Thanks and regards Thahir |