|
From: Christian B. <Chr...@br...> - 2004-02-23 16:31:13
|
hello, i have a problem starting a webapplication allthough i think i configured jetty.xml correctly. myjetty.xml: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd"> <Configure class="org.mortbay.jetty.Server"> <Set name="Debug" class="org.mortbay.util.Code" type="boolean">false</Set> <Set name="Verbose" class="org.mortbay.util.Code" type="int">1</Set> <Set name="DebugPatterns" class="org.mortbay.util.Code" type="String"></Set> <Call name="instance" class="org.mortbay.util.Log"> <Call name="disableLog"/> <Call name="add"> <Arg> <New class="org.mortbay.util.OutputStreamLogSink"> <Arg><SystemProperty name="jetty.log" default="./logs"/>/yyyy_mm_dd.log</Arg> <Set name="RetainDays">90</Set> <Set name="Append">true</Set> <Call name="start"/> </New> </Arg> </Call> </Call> <!-- Configure the listeners --> <Call name="addListener"> <Arg> <New class="org.mortbay.http.SocketListener"> <Set name="Port"><SystemProperty name="jetty.port" default="8080"/></Set> <Set name="MinThreads">5</Set> <Set name="MaxThreads">255</Set> <Set name="MaxIdleTimeMs">30000</Set> <Set name="LowResourcePersistTimeMs">2000</Set> <Set name="confidentialPort">8443</Set> </New> </Arg> </Call> <Call name="addWebApplication"> <Arg>/DigitalTacho/*</Arg> <Arg>D:/DATEN/CVS/digitalerTacho/Implementierung/Java/digitaltacho/web</Arg> </Call> <Set name="RequestLog"> <New class="org.mortbay.http.NCSARequestLog"> <Arg><SystemProperty name="jetty.log" default="./logs"/>/yyyy_mm_dd.request.log</Arg> <Set name="retainDays">90</Set> <Set name="append">true</Set> <Set name="extended">true</Set> <Set name="LogTimeZone">GMT</Set> </New> </Set> </Configure> but when i call my webapp i get the following log messages: 7:14:31.665 EVENT [main]org.mortbay.http.HttpServer.start(HttpServer.java:639)02> Starting Jetty/4.2.14 17:14:31.675 EVENT [main]org.mortbay.http.HttpServer.start(HttpServer.java:654)02> Started org.mortbay.http.NCSARequestLog@dfef8 17:14:32.095 EVENT [main]org.mortbay.http.HttpContext.start(HttpContext.java:1869)04> Started WebApplicationContext[/DigitalTacho,D:/DATEN/CVS/digitalerTacho/Implementierung/Java/digitaltacho/web] 17:14:32.145 EVENT [main]javax.servlet.GenericServlet.init(GenericServlet.java:257)08> jsp: init 17:14:32.236 EVENT [main]javax.servlet.GenericServlet.init(GenericServlet.java:257)07> default: init 17:14:32.246 EVENT [main]javax.servlet.GenericServlet.init(GenericServlet.java:257)07> invoker: init 17:14:32.306 EVENT [main]javax.servlet.GenericServlet.init(GenericServlet.java:257)08> WafInitServlet: init 17:14:34.749 EVENT [main]javax.servlet.GenericServlet.init(GenericServlet.java:257)08> Log4JServlet: init 17:14:34.749 EVENT [main]javax.servlet.GenericServlet.init(GenericServlet.java:257)08> ProtokollServlet: init 17:14:34.789 EVENT [main]javax.servlet.GenericServlet.init(GenericServlet.java:257)07> action: init 17:14:38.294 EVENT [main]org.mortbay.http.SocketListener.start(SocketListener.java:154)03> Started SocketListener on 0.0.0.0:8080 17:14:38.294 EVENT [main]org.mortbay.http.HttpServer.start(HttpServer.java:675)02> Started org.mortbay.jetty.Server@7a3ac1 17:14:53.456 WARN!! [PoolThread-4]org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:611)11> Error for /DigitalTacho/ java.lang.NoSuchMethodError at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:157) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:133) at org.mortbay.jetty.servlet.Default.handleGet(Default.java:300) at org.mortbay.jetty.servlet.Default.service(Default.java:215) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:356) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1776) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:514) at org.mortbay.http.HttpContext.handle(HttpContext.java:1726) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.mortbay.http.HttpConnection.service(HttpConnection.java:790) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:196) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:487) and the browser shows this when i call http://localhost:8080/DigitalTacho/ HTTP ERROR: 500 Internal Server ErrorRequestURI=/DigitalTacho/ Powered by Jetty:// please help i have struggled a whole day with this problem and did not find a solution so far. thanks chris |