Subject: tomcat issues
To: None <netbsd-help@netbsd.org>
From: Pierre-Philipp Braun <ppwb@club-internet.fr>
List: netbsd-help
Date: 01/27/2003 13:36:24
Hi all,

when i run "/etc/rc.d/tomcat start" script i get some errors similar to
the ones reported here:

http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=18252

in fact, i have the
java.lang.ClassNotFoundException: org.apache.tomcat.loader.AdaptiveClassLoader12
and the
java.lang.ClassNotFoundException: org.apache.jasper.servlet.JasperLoader12
error.

The real difficulty i occur is that when i try to access to a
helloworld.jsp using a http client, i get a error 500 with this server-side trace:

2003-01-27 13:31:06 - Ctx(  ): Exception in: R(  + /helloworld.jsp + null) - javax.servlet.ServletException: try to access method org/apache/tomcat/logging/Logger.realLog(Ljava/lang/String;)V from class org/apache/jasper/servlet/JspServlet
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
        at org.apache.tomcat.core.Handler.service(Handler.java)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
        at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.IllegalAccessError: try to access method org/apache/tomcat/logging/Logger.realLog(Ljava/lang/String;)V from class org/apache/jasper/servlet/JspServlet
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java)
        at org.apache.tomcat.core.Handler.service(Handler.java)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java)
        at java.lang.Thread.run(Thread.java:484)

Any help would be appreciated.


BTW,

CLASSPATH=${CLASSPATH}:${PREFIX}/lib/java/servlet.jar:${PREFIX}/lib/java/jaxp.jar:${PREFIX}/lib/java/parser.jar:${PREFIX}/lib/java/crimson.jar:${PREFIX}/lib/java/ant.jar

source: /etc/rc.d/tomcat

i don't have the ${PREFIX}/lib/java/jaxp.jar and
${PREFIX}/lib/java/parser.jar files specified here, and i don't know how
to get them.

Thanks in advance.

-- 
Pierre-Philipp