from your original post:

> org.apache.jasper.JasperException: Unable to compile
> class for JSP
> root cause 
> Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK

in other words, TC is unable to compile your JSP page class because it
cannot find a compiler. to me this means that the most likely reasons are
these ones that Ben listed

> > Did you install a full j2sdk or just a jre?
> > Tomcat 5.0 and lower needs a full j2sdk.
> > 
> > Did you set your JAVA_HOME enviornment variable?
> > Have you tested it to make sure it's right?
> > or..
> > If you installed as a Windows Service, did you make sure that the
> > installer found the full j2sdk on your system and not another JRE?


> -----Original Message-----
> From: Ben Souther [mailto:[EMAIL PROTECTED] 
> Sent: Friday 05 November 2004 02:38
> To: Tomcat Users List
> Subject: Re: dear friend i'm in a big trouble
> 
> 
> >http://localhost:3030/servlet/HelloClientServlet
> 
> Looks like you are depending on the invoker servlet to 
> instanciate your
> servlet. The invoker servlet is no longer active by default.
> 
> You will need to map your servlet in web.xml.
> Again, your servlets need to be packaged.
> 
> 
> 
> 
> 
> 
> On Thu, 2004-11-04 at 21:29, Ben Souther wrote:
> > First, is your servlet in a package?
> > Non-packaged servlets will not work.
> > 
> > Did you map your servlet in web.xml?
> > What is the URL you are using to call the servlet?
> > 
> > You don't need to set a classpath environment variable
> > Tomcat sets it's own.
> > 
> > Did you install a full j2sdk or just a jre?
> > Tomcat 5.0 and lower needs a full j2sdk.
> > 
> > Did you set your JAVA_HOME enviornment variable?
> > Have you tested it to make sure it's right?
> > or..
> > If you installed as a Windows Service, did you make sure that the
> > installer found the full j2sdk on your system and not another JRE?
> > 
> > 
> > 
> > 
> > On Thu, 2004-11-04 at 20:49, Raasi Potluri wrote:
> > > I'm just a beginner and     IhaveinstalledTomcat5.0and
> > > try to run a simple servlet. I have copied the
> > > compiled servlet on the webapps/root/WEB-INF/classes
> > > and added the servlet name and servlet mapping in the
> > > web.xml file. I'm trying to call my HelloClientServlet
> > > from http://localhost:3030/servlet/HelloClientServlet
> > > from the web browser, after restarting the tomcat http
> > > server it says the follwing
> > > 
> > > my tomcat server is listening at port 3030
> > > ***************************************************
> > > 
> > > HTTP Status 404 - /servlet
> > > 
> > > 
> --------------------------------------------------------------
> ------------------
> > > 
> > > type Status report
> > > 
> > > message /servlet
> > > 
> > > description The requested resource (/servlet) is not
> > > available.
> > > 
> > > 
> > > 
> --------------------------------------------------------------
> ------------------
> > > 
> > > Apache Tomcat/5.0.28
> > > 
> > > ***************************************************
> > > 
> > > and I have tried to run a simple example JSP already
> > > in the examples folder, it gives me the follwing error
> > > 
> > > *****************************************************
> > > 
> > > HTTP Status 500 - 
> > > 
> > > 
> --------------------------------------------------------------
> ------------------
> > > 
> > > type Exception report
> > > 
> > > message 
> > > 
> > > description The server encountered an internal error
> > > () that prevented it from fulfilling this request.
> > > 
> > > exception 
> > > 
> > > org.apache.jasper.JasperException: Unable to compile
> > > class for JSP
> > > 
> > > 
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(Defa
> ultErrorHandler.java:97)
> > > 
> > > 
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDis
> patcher.java:346)
> > > 
> > > 
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
> > > 
> > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
> > > 
> > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> > > 
> > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
> > > 
> > > 
> org.apache.jasper.JspCompilationContext.compile(JspCompilation
> Context.java:511)
> > > 
> > > 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:295)
> > > 
> > > 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:292)
> > > 
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > 
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > 
> > > 
> > > root cause 
> > > 
> > > Unable to find a javac compiler;
> > > com.sun.tools.javac.Main is not on the classpath.
> > > Perhaps JAVA_HOME does not point to the JDK
> > > 
> > > 
> org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory
> .getCompiler(CompilerAdapterFactory.java:106)
> > > 
> > > org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
> > > 
> > > org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
> > > 
> > > 
> org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
> > > 
> > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
> > > 
> > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> > > 
> > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
> > > 
> > > 
> org.apache.jasper.JspCompilationContext.compile(JspCompilation
> Context.java:511)
> > > 
> > > 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServlet
> Wrapper.java:295)
> > > 
> > > 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:292)
> > > 
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > > 
> > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > 
> > > 
> > > note The full stack trace of the root cause is
> > > available in the Apache Tomcat/5.0.28 logs.
> > > 
> > > 
> > > 
> --------------------------------------------------------------
> ------------------
> > > 
> > > Apache Tomcat/5.0.28
> > > 
> > > *****************************************************
> > > 
> > > please help me, i'm troubling with this error since
> > > three days and I have read lot of manuals and changed
> > > the class path and set the jdk home and catalina home
> > > as environment variable, still this error, please help
> > > me
> > > 
> > > regards, raasi
> > > 
> > > 
> > >           
> > > __________________________________ 
> > > Do you Yahoo!? 
> > > Check out the new Yahoo! Front Page. 
> > > www.yahoo.com
> > > 
> > > 
> > > 
> > > 
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to