Remove the extra '/' in your classpath at (/usr/java/jdk//lib/tools.jar) and
try again.

--Srikanth

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 5:20 PM
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/tomcat/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