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:[EMAIL PROTECTED]]
# Sent: Martes, 03 de Abril de 2001 09:57 p.m.
# To: [EMAIL PROTECTED]
# 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:[EMAIL PROTECTED]]
# 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