I updated the FAQ to include this:
40) Help! JSP Reference implementation doesn't work!
There is a problem with the startserver.bat file that comes with the
Reference implementation when it goes to try and compile JSPs. The problem is
that
the tools.jar file is missing from the classpath. The symptom occurs as a
page like:
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 com.sun.jsp.compiler.Main.compile(Main.java:194)
at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:114)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.
java:69)
at
com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:77)
at
com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125)
at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
To fix it, you need to add the tools.jar file from your JDK 1.2 LIB
directory to the classpath that is in the startserver.bat file (or just add it
to your
environment variables).
Fredrik Bj�rklund wrote:
> Hi, I've just installed JSP1.0 from the EarlyAcess. The servlet-examples
> execute fine but the JSP-examples give me this:
>
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at com.sun.jsp.compiler.Main.compile(Main.java:194)
> at com.sun.jsp.runtime.JspLoader.loadJSP(JspLoader.java:114)
> at
> com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.
> java:69)
> at
> com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:77)
> at com.sun.jsp.runtime.JspServlet.serviceJspFile(JspServlet.java:125)
> at com.sun.jsp.runtime.JspServlet.service(JspServlet.java:152)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
> at com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
> at com.sun.web.core.Context.handleRequest(Context.java:382)
> at com.sun.web.server.ConnectionHandler.run(Compiled Code)
>
> Please help.
>
> /Fredrik
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JSP-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
--
Richard Vowles, Senior Systems Engineer,
Inprise New Zealand, MAIL: [EMAIL PROTECTED], [EMAIL PROTECTED]
The Esperanto Group, http://www.esperanto.org.nz
[my messages contain my own opinions, not those of my employer]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".