Haven't seen any reply on this, since my post. Basically, I installed
tomcat 3.2.3 in $TOMCAT_HOME/tomcat-3.2.3. I have RedHat Linux 7.1 running,
and this installation included Tomcat's startup and shutdown scripts, which
an RPM version I have on a different machine did not. Not sure that's
relevant, but thought I'd throw it out.
Also, the RH 7.1 box is a completely clean install. I followed the
installation and "getting this thing running" steps in the user guide,
setting $JAVA_HOME, $TOMCAT_HOME and other config options. I also have
running the 1.3 JDK (not only the JRE, the entire JDK was downloaded and
installed).
Now the problem. The servlet examples work fine. However, stack trace I
included below is what I see whenever I try running the JSP examples.
I've double checked to make sure that the java command is working properly,
and the version which does work on a RH 6.1 (Linux 2.2 kernel) is working
with the same version of Tomcat, although installation was done through RPM
instead of tar.
Any ideas?
----- Original Message -----
From: "Charles Webber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 8:51 PM
Subject: Re: Problem with Tomcat
> It is the JDK.
>
> ----- Original Message -----
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 17, 2001 7:56 PM
> Subject: Re: Problem with Tomcat
>
>
> > You need to have the jdk - not the jre.
> >
> > btw - someone with access to the site - I'm constantly amazed that this
> > answer is not in the faq (unless I missed it)... perhaps its somewhere
> > else, but I would have thought it should be there.
> >
> > cheesr
> > dim
> >
> > On Mon, 17 Sep 2001, Charles Webber wrote:
> >
> > > I'm running into a strange problem with a new installation of Tomcat.
> > > I have 3.2.3 installed. I can use the startup script to start Tomcat
> and
> > > everything looks fine until I try to execute a JSP. When I try the JS
P
> > > examples supplied with Tomcat, I get the following errors - which is a
> > > partial stack trace. I have set the CLASSPATH, TOMCAT_HOME and
> JAVA_HOME
> > > environment variables, even though the startup script should do that
for
> me.
> > > What is wrong?
> > > Thanks
> > >
> > > Internal Servlet Error:
> > > javax.servlet.ServletException: sun/tools/javac/Main
> > > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
> > > at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > > at org.apache.tomcat.core.Handler.service(Handler.java:287)
> > > at
> > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > > at
> > >
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
> > > 2)
> > > at
> > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> > > at
> > >
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> > > onnectionHandler.java:213)
> > > at
> > >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > > at
> > >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
> > > at java.lang.Thread.run(Thread.java:484)
> > > 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:273)
> > > at
> > > org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
> > > at
> > >
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
> > > at
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
> > > at
> > >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> > > rvlet.java:258)
> > > at
> > >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> > > va:268)
> > > at
> > >
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> > > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> > > at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> > > at org.apache.tomcat.core.Handler.service(Handler.java:287)
> > > at
> > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > > at org.apache.tomcat.core.ContextManag
> > >
> > >
> >
>