Set to Java's j2sdk path:
/usr/local/thirdparty/java/j2sdk
Martin, David S wrote:
Sunitha,
What is your JAVA_HOME environment variable set to?
------------------------------------------------------------------------
--------
David Martin
-----Original Message-----
From: Sunitha Kumar [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 29, 2004 1:19 PM
To: Sunitha Kumar
Cc: [EMAIL PROTECTED]
Subject: Re: Unable to deploy a JSP from tomcat
Also, looking at documentation at:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
It says, CLASSPATH is ignored. And, tools.jar should have been loaded?
* System - This class loader is normally initialized from the
contents of the CLASSPATH environment variable. All such classes
are visible to both Tomcat internal classes, and to web
applications. However, the standard Tomcat 4 startup scripts
($CATALINA_HOME/bin/catalina.sh or
%CATALINA_HOME%\bin\catalina.bat) totally ignore the contents of
the CLASSPATH environment variable itself, and instead build the
System class loader from the following repositories:
o $CATALINA_HOME/bin/bootstrap.jar - Contains the main()
method that is used to initialize the Tomcat 4 server, and
the class loader implementation classes it depends on.
o $JAVA_HOME/lib/tools.jar - Contains the "javac" compiler
used to convert JSP pages into servlet classes.
Sunitha Kumar wrote:
Folks:
I have defined CLASSPATH to have $JAVA_HOME/lib/tools.jar, in
catalina.sh
However, while deploying my .war file, it fails to find tools.jar.
Any pointers?
thanks,
-sunitha
Servlet threw load() exception
org.apache.jasper.JasperException: Unable to compile class for JSP
No Java compiler was found to compile the generated source for the
JSP.
This can usually be solved by copying manually
$JAVA_HOME/lib/tools.jar from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat
restart.
If using an alternate Java compiler, please check its installation and
access path.
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:127)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:351)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:415)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:553)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:291)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]