Hi Felip,
I hit this same problem earlier today. I fixed the problem by adding:
c:\jdk1.2\lib\tools.jar
to my CLASSPATH variable. The exception happens because the JSP server
cannot find the compiler. When tools.jar is in CLASSPATH, then the JSP
server can find the java compiler.
Thanks, -Mark
At 07:17 PM 6/3/99 -0400, Felip Miralles wrote:
>Hi,
>
>Well, just starting to play with this.
>
>When i try to execute any JSP example provided in the release 1.0, i get
>
>-----------------------------------
>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)
> 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)
>
>-----------------------------------
>
>I started the tiny web server provided with the release and accessed the
>web pages through the 8080 port of my localhost web server.
>
>Any help?
>Thanks,
>Felip
>
>===========================================================================
>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".
===========================================================================
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".