As this error indicates, Tomcat can not find javac
(java.lang.NoClassDefFoundError: sun/tools/javac/Main). This indicates that
you have not set your JAVA_HOME variable or have set it to the wrong path.
(It needs to point to the directory that contains lib/tools.jar).
Randy
-----Original Message-----
From: Bob Kersten [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 8:22 AM
To: [EMAIL PROTECTED]
Subject: error: 500
Hello,
I've installed Tomcat 3.2.1 (stand-alone) and the JDK1.3, and
started Tomcat using justGo and it all works well. When I connect
to http://localhost:8080/ it displays the default tomcat
homepage. Then I tried to use some of the examples, and it
appears that only the servlet examples work, not the JSP
examples. Each time I want to start one of the JSP examples I get
an error: 500 (complete error message below). What exactly goes
wrong and how can I solve it?
---
Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja
va: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(ContextMana
ger.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java
:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConne
ction(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j
ava:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.
java:498)
at java.lang.Thread.run(Unknown Source)
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:245)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:46
2)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.j
ava:146)
at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNece
ssary(JspServlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Js
pServlet.java:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja
va:318)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.ja
va: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(ContextMana
ger.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java
:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConne
ction(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.j
ava:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.
java:498)
at java.lang.Thread.run(Unknown Source)
Ajuus,
Bop.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]