Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#324472: Jetty needs class BuildException from ant?

1 view
Skip to first unread message

Johannes (groups)

unread,
Aug 22, 2005, 6:30:19 AM8/22/05
to
Package: jetty
Version: 5.0.0-2.1
Depends: j2re1.3 | j2sdk1.3 | j2re1.4 | j2sdk1.4 | java2-runtime, jikes
| j2sdk1.3 | j2sdk1.4 | java-compiler | java2-compiler, libxerces2-java,
libtomcat4-java, libmx4j-java, adduser, libservlet2.3-java,
libcommons-logging-java
Suggests: libapache2-mod-webapp | libapache-mod-jk
Filename: pool/contrib/j/jetty/jetty_5.0.0-2.1_all.deb
Size: 1614264
MD5sum: 97c03f52d0bc0e38df273fa3f48ea257

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

Philipp Meier

unread,
Aug 22, 2005, 9:00:08 AM8/22/05
to
Am Montag, den 22.08.2005, 11:58 +0200 schrieb Johannes (groups):
> Package: jetty
> Version: 5.0.0-2.1
> Depends: j2re1.3 | j2sdk1.3 | j2re1.4 | j2sdk1.4 | java2-runtime, jikes
> | j2sdk1.3 | j2sdk1.4 | java-compiler | java2-compiler, libxerces2-java,
> libtomcat4-java, libmx4j-java, adduser, libservlet2.3-java,
> libcommons-logging-java
> Suggests: libapache2-mod-webapp | libapache-mod-jk
> Filename: pool/contrib/j/jetty/jetty_5.0.0-2.1_all.deb
> Size: 1614264
> MD5sum: 97c03f52d0bc0e38df273fa3f48ea257
>
> 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?
>

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?

signature.asc

Johannes (groups)

unread,
Aug 22, 2005, 1:50:09 PM8/22/05
to
Ah, thanks for the hint!

It was actually another include, namely for /usr/share/java/ant-1.6.jar (out-of-the-box package configuration was looking for /usr/share/java/ant.jar)
Good luck with finding a solution for the library stuff!

It may be interesting to say that I doubt that ant is in the Depends-list of the jetty-package! (Maybe open a new bugreport or already fixed in your new package?)

Looking forward to the next release,
Johannes Boneschanscher

Philipp Meier

unread,
Aug 22, 2005, 3:50:03 PM8/22/05
to
Am Montag, den 22.08.2005, 19:30 +0200 schrieb Johannes (groups):

> Philipp Meier wrote:
> > 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.
> >
> >
> Ah, thanks for the hint!
>
> It was actually another include, namely
> for /usr/share/java/ant-1.6.jar (out-of-the-box package configuration
> was looking for /usr/share/java/ant.jar)
> Good luck with finding a solution for the library stuff!
>
> It may be interesting to say that I doubt that ant is in the
> Depends-list of the jetty-package! (Maybe open a new bugreport or
> already fixed in your new package?)

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.

signature.asc
0 new messages