tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik" <m...@filip.net>
Subject RE: Error Message with Tomcat-Apache
Date Tue, 19 Jun 2001 18:34:22 GMT
in the tomcat.sh script do a

export JAVA_HOME=/usr/java1.2; #or whatever your location of your java
installation is

the problem you are experiencing is that tools.jar located in JAVA_HOME/lib/
is not in your classpath, so Tomcat can not compile your servlets.

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
filip@filip.net
www.filip.net

>-----Original Message-----
>From: Dan Buckley [mailto:dbuckley@midland.cc.tx.us]
>Sent: Tuesday, June 19, 2001 11:27 AM
>To: tomcat-user@jakarta.apache.org
>Subject: Error Message with Tomcat-Apache
>
>
>Hello,
>I apologize for what must be a silly question but can anyone
>explain how I might fix the error below. I'm using Tomcat 3.2.1
>with Apache 1.3.19. on Redhat 7.0 - Someone had mentioned earlier
>about changing the JAVA_HOME environment variable but I'm not sure
>exactly what they meant by that. Thanks in advance for any HELP!
>
>Dan
>
>**********
>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.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(ContextManage
>r.java:797)
>	at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>	at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnect
>ion(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:484)
>
>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:245)
>	at
>org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
>	at
>org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
>	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
>	at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecess
>ary(JspServlet.java:152)
>	at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspS
>ervlet.java:164)
>	at
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: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.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(ContextManage
>r.java:797)
>	at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>	at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnect
>ion(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:484)
>
>
>
>


Mime
View raw message