From: Guglielmo C. <gug...@ga...> - 2001-07-18 01:13:50
|
I have tried to make work BRL 2,1,26 using 3,2,2 Tomcat and the JDK the 1,3,1 for Linux following instructions contained in the mail of Steve Cockwell "Preliminary BRL-Tomcat HOWTO"; every time that I try to execute some file ending in ".brl", happens one strange problem: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet following is the output of one session of example: bash-2.04$ ./startup.sh Using classpath: /opt/Tomcat/jakarta-tomcat-3.2.2/classes:/opt/Tomcat/jakarta-tomcat-3.2.2/lib/ant.jar:/opt/Tomcat/jakarta-tomcat-3.2.2/lib/jasper.jar:/opt/Tomcat/jakarta-tomcat-3.2.2/lib/jaxp.jar:/opt/Tomcat/jakarta-tomcat-3.2.2/lib/parser.jar:/opt/Tomcat/jakarta-tomcat-3.2.2/lib/servlet.jar:/opt/Tomcat/jakarta-tomcat-3.2.2/lib/test:/opt/Tomcat/jakarta-tomcat-3.2.2/lib/webserver.jar:/usr/java/jdk1.3.1//lib/tools.jar::/usr/local/Java/classes/:/opt/Tomcat/jakarta-tomcat-3.2.2/lib/servlet.jar bash-2.04$ 2001-07-18 02:30:06 - ContextManager: Adding context Ctx( /examples ) 2001-07-18 02:30:06 - ContextManager: Adding context Ctx( /admin ) 2001-07-18 02:30:06 - Ctx( /bletch ): Set debug to 1 2001-07-18 02:30:06 - ContextManager: Adding context Ctx( /bletch ) Starting tomcat. Check logs/tomcat.log for error messages 2001-07-18 02:30:06 - ContextManager: Adding context Ctx( ) 2001-07-18 02:30:06 - ContextManager: Adding context Ctx( /test ) 2001-07-18 02:30:07 - Ctx( /bletch ): XmlReader - init /bletch /opt/apps/bletch 2001-07-18 02:30:07 - Ctx( /bletch ): Reading /opt/apps/bletch/WEB-INF/web.xml 2001-07-18 02:30:07 - Ctx( /bletch ): Loading -2147483646 jsp 2001-07-18 02:30:07 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-07-18 02:30:07 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 2001-07-18 02:30:14 - Ctx( /bletch ): Exception in: R( /bletch + /test.brl + null) - java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at java.lang.ClassLoader.loadClass(ClassLoader.java:290) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:446) at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) the strange thing is that the script "startup.sh" declares that is setting the CLASSPATH to contain "$TOMCAT_HOME/lib/servlet.jar"; some suggestion? may this problem depends on the version of Tomcat (3.2.2)? Thanks Guglielmo |