Have you tried changing JAVA_HOME to point directly to the folder?  It's
worth the try.

Another thing I would like to know is how you are starting Tomcat up.
Are you doing it with the shell script or through something like ant?

Regards, Stefan.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 28. mars 2001 22:20
To: [EMAIL PROTECTED]
Subject: error 500, cannot find sun.tools.javac.Main


I've seen that this problem has been addressed several times in the 
listserv logs but none of the solutions seem to fit my problem.

Tomcat will start and will work with servlet's but it will not run JSP's
when I try to run a JSP I get an class not found exception that cannot
fine 
sun.tools.javac.Main, the full text of the error message is included at
the 
end of this message.

I have included tools.jar and the other jar files that are needed in my 
classpath, TOMCAT_HOME and JAVA_HOME have been set. My path does include

jdk/bin. I am using IBM's jdk rather htan sun's but I dont' think that 
should cause any problems. Running under Linux, debian, kernel 2.4.2.

Using 
classpath:
/usr/java/tomcat/lib/ant.jar:/usr/java/tomcat/lib/jasper.jar:/usr
/java/tomcat/lib/jaxp.jar:/usr/java/tomcat/lib/parser.jar:/usr/java/tomc
at/l
ib/servlet.jar:/usr/java/tomcat/lib/test:/usr/java/tomcat/lib/webserver.
jar:
/usr/java/jdk//lib/tools.jar:.

$TOMCAT_HOME=/usr/java/tomat
$JAVA_HOME-/usr/java/jdk/

I don't think it should matter, but the folder jdk is a symlink 
to /usr/java/IBMJava2-13/



tomcat error message:

digitalsorcery:/usr/java/tomcat# 2001-03-28 04:35:04 - Ctx( /examples ):

Exception in: R( /examples + /jsp/num/numguess.jsp + null) - 
javax.servlet.ServletException: sun/tools/javac/Main
        at java.lang.Throwable.<init>(Throwable.java:96)
        at java.lang.Exception.<init>(Exception.java:44)
        at
javax.servlet.ServletException.<init>(ServletException.java:158)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:388)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService
(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        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:210)
        at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:416)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:498)
Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
        at org.apache.jasper.compiler.SunJavaCompiler.compile
(SunJavaCompiler.java:128)
        at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:240)
        at org.apache.jasper.servlet.JspServlet.doLoadJSP
(JspServlet.java:448)
        at org.apache.jasper.servlet.JasperLoader12.loadJSP
(JasperLoader12.java:146)
        at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419)
        at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
(JspServlet.java:151)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:163)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:307)
        at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService
(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        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:210)
        at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:416)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:498)


Reply via email to