Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 44310 invoked by uid 500); 4 Apr 2001 06:43:35 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 44302 invoked from network); 4 Apr 2001 06:43:34 -0000 Received: from unknown (HELO zoom-ads.zoomnet.zoom.com.au) (203.111.111.246) by h31.sny.collab.net with SMTP; 4 Apr 2001 06:43:34 -0000 Received: by zoom-ads.zoomnet.zoom.com.au with Internet Mail Service (5.5.2650.21) id ; Wed, 4 Apr 2001 16:46:13 +1000 Message-ID: From: Warren Crossing To: "'tomcat-user@jakarta.apache.org'" Subject: RE: NoClassDefFoundError Date: Wed, 4 Apr 2001 16:45:54 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N so java -classpath /usr/local/jdk1.3/lib/tools.jar sun/tools/javac/Main should return the usage options -> Usage: javac ... try add java -bootclasspath usr/jdk1.3/lib/tools.jar:/usr/jdk1.3/jre/lib/rt.jar classpaths rfukt@best. -----Original Message----- From: Hossein Tahani [mailto:tahani@cs.nmhu.edu] Sent: Wednesday, 4 April 2001 4:20 PM To: tomcat-user@jakarta.apache.org Subject: Re: NoClassDefFoundError I am includeing the tools.jar. My classpath is /usr/tomcat/lib/ant.jar:/usr/tomcat/lib/jasper.jar: /usr/tomcat/lib/jaxp.jar:/usr/tomcat/lib/parser.jar: /usr/tomcat/lib/servlet.jar:/usr/tomcat/lib/webserver.jar: /usr/jdk1.3/lib/tools.jar:/usr/jdk1.3/lib/classes102.jar I added a -verbose to the JAVACMD in the tomcat.sh. It shows it loads all the above jar files and all of the runtime classes from /usr/jdk1.3/jre/lib/rt.jar Why is not loading the tools.jar? How can I force it to include it? Apparently it doesn't like to do it!!??? Has anyone had a similar problem? I even changed the CLASSPATH to CPATH in tomcat.sh and used the command java -cp $CPATH .... (rest of tomcat). Somehow java doesn't want to load the tools.jar and classes102.jar classes. Here is what I think: When we start java (options) org.apache.tomcat.startup.Tomcat tools.jar (even ant.jar) is not needed and is not loaded in the JVM. When we access a .jsp file, we need tools.jar, but JVM doesn't load try to load it. Does this make sense. Sorry for all the troubles. But, I have to get this working and I appreciate your patience and time. I am really interested to know if this works for anyone. I feel this is a bug in tomcat. I love to come to your web site and run a .jsp file :-) Thanks, Hossein Gustavo Munoz wrote: > > Just be sure about includying tools.jar in the classpath of tomcat. > > my two cents, > gus. > > # -----Original Message----- > # From: Hossein Tahani [mailto:tahani@cs.nmhu.edu] > # Sent: Martes, 03 de Abril de 2001 09:57 p.m. > # To: tomcat-user@jakarta.apache.org > # Subject: Re: NoClassDefFoundError > # > # > # > # I get > # JAVACMD is /usr/jdk1.3/bin/java > # > # Apparently, it doesn't find the > # /usr/jdk1.3/lib/tools.jar that has the > # sun.tools.javac.Main. But, tools.jar is in its > # classpath. > # > # Thanks! > # > # Warren Crossing wrote: > # > > # > hey it sounds like your tomcat is using the jre not the jdk! check the > # > JAVA_HOME value tomcat startup up script is using by putting > # an echo command > # > in the script.. > # > > # > -----Original Message----- > # > From: Hossein Tahani [mailto:tahani@cs.nmhu.edu] > # > Sent: Wednesday, 4 April 2001 12:08 PM > # > To: tomcat users > # > Subject: NoClassDefFoundError > # > > # > Hi all, > # > I just joined this list. If my question has been > # > answered before I would appreciate a link to the > # > answer. > # > > # > I have installed jakarta-tomcat3.2.1 on red hat 7.0. I > # > have integrated with apache1.3.19 with mod_jserv. > # > > # > I have no problem with servlets, but when I access some > # > of the .jsp files I get the following error message: > # > Root cause: > # > > # > java.lang.NoClassDefFoundError: sun/tools/javac/Main > # > at > # > > # org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompile > # r.java:128) > # > at > # > org.apache.jasper.compiler.Compiler.compile(Compiler.java:285) > # > at > # > org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478) > # > at > # > > # org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) > # > at > # > org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449) > # > ... > # > ... > # > ... > # > > # > Any idea is greatly appreciated. > # > > # > Hossein > # > > # > -- > # > Hossein Tahani, Ph.D. 505-454-3301 > # > Highlands University > # > # -- > # Hossein Tahani, Ph.D. 505-454-3301 > # Highlands University -- Hossein Tahani, Ph.D. 505-454-3301 Highlands University