Hi:

I got similar error while trying to execute build.bat file to compile my 
servlets.

I have solved is by making sure that the following are in the CLASSPATH.

jdk's tools.jar -- (needed if you running ant) jaxp.jar -- (needed if you 
are running ant) parser.jar -- server.jar -- servlet.jar

Trust this helps.

Cheers,
Rk

>From: "Gregor v. Bochmann" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: NoClassDefFoundError in Tomcat installation
>Date: Fri, 17 Nov 2000 10:45:56 -0500
>
>I have just installed the tomcat system under Windows NT and want to serve
>some jsp pages. When the first jsp page is executed, I get the
>NoClassDefFoundError message (the error message is given below).
>
>Does somebody have an idea what is wrong ?
>
>Can somebody tell me how to obtain a more detailed error log ?
>
>I got the error message below by executing the
>     /examples/jsp/sessions/carts.html
>page in the examples provided with the tomcat system and then by clicking
>on the ADD button.
>
>Thanks for any help
>
>Gregor v. Bochmann
>----------------------
>
>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.java: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.loadIfNecessary(JspSe
>rvlet.java:149)
>         at
>org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
>va:161)
>         at
>org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
>         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.java:503)
>         at
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>         at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
>onnectionHandler.java:160)
>         at
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
>         at java.lang.Thread.run(Unknown Source)
>--------------------------------
>Gregor v. Bochmann          Tel (613) 562-5800 ext. 6205, Fax 562-5175
>School of Information Technology & Engineering,   University of Ottawa
>161 Louis Pasteur(CBY A617),PO.Box 450,Stn A,Ottawa,Ont,K1N 6N5,Canada
>email:[EMAIL PROTECTED]  <http://www.site.uottawa.ca/~bochmann>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.

Reply via email to