|
add tools.jar from your jdk lib dir to tomcat lib
directory or place tools.jar in the classpath of tomcat.
sachin
----- Original Message -----
Sent: Friday, September 14, 2001 4:12
PM
Subject: JSP problem-- Serious
Dear all,
i am hving a serious prob using JSP's in Tomcat,
even the example/sample JSP's fail to work..the tomcat window has this error
stack trace..
Unhandled error! You might want to consider
having an error page to report such errors more
gracefully java.lang.NoClassDefFoundError:
sun/tools/javac/Main at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.ja va:128)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:238)
at
org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessar y(JspServlet.java:149)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer vlet.java:161)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2 61)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja va:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559 )
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio n(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j ava:338)
at java.lang.Thread.run(Thread.java:484)
But i am not facing any problem in running
servlets or serving HTML files..its only with the jsp's.
Any help in this respect is very
appreciated,
thanks,
Anoop Kumar
|