dcsimg
500 Server Error
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sean_K
Posted On:   Thursday, May 31, 2001 04:12 PM

Hi, I have just setup Tomcat 3.2 on Win NT, I am having a little trouble running .jsp files on the server, servlets are working fine but when I try to execute .jsp pages I receive the following error. Could somone help me out with this error, I am only relatively new to Tomcat. Sean <----------------------------------------------------------------------------------- Error: 500 Location: /examples/jsp/dates/date.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.ServletWrapp   More>>

Hi,

I have just setup Tomcat 3.2 on Win NT, I am having a little trouble running .jsp files on the server, servlets are working fine but when I try to execute .jsp pages I receive the following error. Could somone help me out with this error, I am only relatively new to Tomcat.

Sean

<-----------------------------------------------------------------------------------
Error: 500
Location: /examples/jsp/dates/date.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(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(Unknown Source)

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.loadIfNecessary(JspServlet.java:152)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.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(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(Unknown Source)

   <<Less

It's a classpath thing

Posted By:   Alex_Chaffee  
Posted On:   Monday, July 16, 2001 05:32 PM

java.lang.NoClassDefFoundError: sun/tools/javac/Main

means that your classpath is not set correctly. Make sure your JAVA_HOME is set up right. If that doesn't do it, see these FAQs:
About | Sitemap | Contact