Raphael,
The real problem is this:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
This means that the tools.jar file is not in Tomcat's classpath. Tomcat
will look for this file in the %JAVA_HOME%\lib directory. If there is no
tools.jar file in that directory, your problem is one of the following:
1. %JAVA_HOME% is set to the JDK's "jre" subdirectory - If this is the
case, reset %JAVA_HOME% to the parent directory of your current
%JAVA_HOME%.
2. %JAVA_HOME% points to a JRE installation - If this is the case (i.e.
if there is no javac.exe command in your %JAVA_HOME%\bin directory)
you need to install the full Java 2 SDK since Tomcat needs the javac
compiler.
Patrick
Raphael Di Cicco wrote:
> Hi,
>
> I have installed a Jakarta Tomcat web server on a Windows 2000 server
> machine.
> To do that I have installed the JDK 1.3.1 and added the environment
> variable.
> Then I installed Tomcat 4.0.2 and added the environment variable.
>
> I can properly load the server main page by going to http://localhost:8080/
> in this page I can test any servlet example : they are all working
>
> But when I try to use any JSP example I have an exception(http 500) :
>
>
> type Exception report
>
> message Internal Server Error
>
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: sun/tools/javac/Main
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>
> at
>
>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>
> at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>
> at
>
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>
> at .....
>
>
> root cause
>
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
> at
>
>
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
>
> at
>
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
>
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at ........
>
>
> It used to work well before and I don't see anything wrong with my install,
> do you ? Is it because I am using Windows 2000 where I used to run Windows NT
> ?
>
> Thanks for your help
> Raphael
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
--
________________________________________________________________
Patrick Luby Email: [EMAIL PROTECTED]
Sun Microsystems Phone: 408-276-7471
901 San Antonio Road, USCA14-303
Palo Alto, CA 94303-4900
________________________________________________________________
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>