I seem to miss a class to be able to build&run my jsp test page. (Or I
misinterpret the log beneath)
org/apache/tools/ant/BuildException
Does anyone know what is going wrong here?
Excerpt from /var/log/jetty/jetty_2005_08_22_.log
09:19:14.740 INFO [SocketListener0-9]
org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:985)
>20> JspEngine --> /test2.jsp
09:19:14.744 INFO [SocketListener0-9]
org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:985)
>20> ServletPath: /test2.jsp
09:19:14.747 INFO [SocketListener0-9]
org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:985)
>20> PathInfo: null
09:19:14.753 INFO [SocketListener0-9]
org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:985)
>20> RealPath: /usr/share/jetty/webapps/root/test2.jsp
09:19:14.757 INFO [SocketListener0-9]
org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:985)
>20> RequestURI: /test2.jsp
09:19:14.760 INFO [SocketListener0-9]
org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:985)
>20> QueryString: null
09:19:14.764 INFO [SocketListener0-9]
org.mortbay.jetty.servlet.ServletHandler$Context.log(ServletHandler.java:985)
>20> Request Params:
09:19:15.057 WARN!! [SocketListener0-9]
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:551)
>11> /test2.jsp:
javax.servlet.ServletException: org/apache/tools/ant/BuildException
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:195)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:472)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1457)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:514)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1409)
at org.mortbay.http.HttpServer.service(HttpServer.java:889)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:829)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:998)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:846)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:345)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:530)
getRootCause():
java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
at
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:156)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:424)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:405)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:472)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1457)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:514)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1409)
at org.mortbay.http.HttpServer.service(HttpServer.java:889)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:829)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:998)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:846)
at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:345)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:530)
EOF
I'm running everything from unstable and am using this JVM: (sun latest
j2se)
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
Sorry I have not yet figured out what is wrong here, maybe the package
builder/maintainer has some idea?
Thanks in advance,
Johannes Boneschanscher
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
This is due to a wrong configuration of the servlet and jsp libaries
in /etc/jetty/start.conf. Please check
if /usr/share/java/servlet-api.jar and /usr/share/java/jsp-api.jar are
included correctly. The jar names had changed with libservlet-2.4-java
which does not conflict with jetty-5.0.0-2.1.
BTW, a new upstream release of jetty (5.1.4) is beeing uploaded in the
next days.
--
Philipp Meier - me...@fnogol.de
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?
jetty depends on libtomcat4-java which itself depends on libant6-java. I
must admit that the (even transitive) dependency of jetty on ant is not
very obvious.
-billy.