Yes - the TOMCAT_HOME points exactly to /usr/local/tomcat
----- Original Message -----
From: "Martin Mauri" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 30, 2001 12:44 PM
Subject: Re: Strange JSP problems with Tomcat
> Did you check your TOMCAT_HOME environment variable?
>
> > Thanks for the help. JAVA_HOME was not set up correctly. Now it's set up
> > correctly but it still doesn't work. I'm getting the following error:
> >
> > Error: 500
> > Location: /examples/jsp/simpletag/foo.jsp
> > Internal Servlet Error:
> >
> > org.apache.jasper.compiler.CompileException:
> > /usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0) Unable to
> > load class examples.FooTag
> > at
> >
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
> > Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
> > rseEventListener.java, Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
> > istener.java, Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
> > tListener.java, Compiled Code)
> > at
> >
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> > ner.java, Compiled Code)
> > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java, Compiled
> Code)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
> > at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
> > Code)
> > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
> Compiled
> > Code)
> > at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
> > Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
Compiled
> > Code)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> > rvlet.java, Compiled Code)
> > at
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> > va, Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
> > Compiled Code)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled
> > Code)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
> > at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> > Compiled Code)
> > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
> > at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> > Compiled Code)
> > at
> >
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> > Compiled Code)
> > at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> > Compiled Code)
> > at
> >
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > (Ajp12ConnectionHandler.java, Compiled Code)
> > at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> > Compiled Code)
> > at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> > Compiled Code)
> > at java.lang.Thread.run(Thread.java, Compiled Code)
> >
> > Any suggestions about that?
> > Thanks
> > Nick
> >
> > ----- Original Message -----
> > From: "Randy Layman" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, March 30, 2001 10:29 AM
> > Subject: RE: Strange JSP problems with Tomcat
> >
> >
> > >
> > > This is not a storage error message at all. A little searching
> > > through the archives or reading of the installation guide would have
> saved
> > > you some time and trouble - your JAVA_HOME is not set correctly. Some
> > > people will probably tell you that tools.jar is not in your classpath,
> but
> > > this is a side effect of not setting the JAVA_HOME variable correctly.
> (It
> > > should point to the JDK's root so that lib\tools.jar is an actual
file.
> > >
> > > Randy
> > > -----Original Message-----
> > > From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 30, 2001 1:06 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Strange JSP problems with Tomcat
> > >
> > >
> > > Hi everybody,
> > >
> > > I have a strange problem with serving JSPs with Tomcat with mod_jk on
> > Linux
> > > Apache.
> > > I'm really new at Tomcat configuration - so I guess I'm doing
something
> > > wrong.
> > > Anyway - when I start the sample servlets that come with Tomcat - they
> > work
> > > fine. But when I start a JSP I get the following errors:
> > >
> >
>
> --------------------------------------------------------------------------
> > --
> >
>
> --------------------------------------------------------------------------
> > --
> > > ----------
> > > Error: 500
> > > Location: /examples/jsp/num/numguess.jsp
> > > Internal Servlet Error:
> > >
> > > javax.servlet.ServletException: sun/tools/javac/Main
> > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> > > Compiled Code)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
> > > Code)
> > > at
> > > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> > > Compiled Code)
> > > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
> > > Code)
> > > at
> > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> > Compiled
> > > Code)
> > > at
> > >
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> > > Compiled Code)
> > > at
> > > org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> > Compiled
> > > Code)
> > > at
> > >
> >
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > > (Ajp12ConnectionHandler.java, Compiled Code)
> > > at
> > > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> > > Compiled Code)
> > > at
> > > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> > > Compiled Code)
> > > at java.lang.Thread.run(Thread.java, Compiled Code)
> > >
> > > Root cause:
> > > java.lang.NoClassDefFoundError: sun/tools/javac/Main
> > > at
> > >
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java,
> > > Compiled Code)
> > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
> > > Compiled Code)
> > > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
> > > Compiled Code)
> > > at
> > > org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
> > > Compiled Code)
> > > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
> > > Compiled Code)
> > > at
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> > > rvlet.java, Compiled Code)
> > > at
> > >
> >
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> > > va, Compiled Code)
> > > at
> > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
> > > Compiled Code)
> > > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
> > > Compiled Code)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
> > > Code)
> > > at
> > > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
> > > Compiled Code)
> > > at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
> > > Code)
> > > at
> > > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
> > Compiled
> > > Code)
> > > at
> > >
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
> > > Compiled Code)
> > > at
> > > org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> > Compiled
> > > Code)
> > > at
> > >
> >
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> > > (Ajp12ConnectionHandler.java, Compiled Code)
> > > at
> > > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
> > > Compiled Code)
> > > at
> > > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
> > > Compiled Code)
> > > at java.lang.Thread.run(Thread.java, Compiled Code)
> >
>
> --------------------------------------------------------------------------
> > --
> >
>
> --------------------------------------------------------------------------
> > --
> > > ----------
> > > I will really appreciate if somebody can help me.
> > > Thanks
> > > Nick Stoianov