tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Souther <bsout...@fwdco.com>
Subject Re: JSPs not compiling
Date Thu, 10 Jul 2003 12:39:20 GMT
Did you install the full SDK   (ie: j2sdk1.4.2) or just the runtime (JRE).

The full sdk is needed for running JSPs since they get compiled before being 
run.

If so, it's probably a path issue.

Type:
echo $JAVA_HOME
to see what it's set to.

Here is an example:
If your JDK is j2sdk1.4.2 and it's installed in the /usr/local directory, your 
JAVA_HOME variable should be:
/usr/local/j2sdk1.4.2

You also need to put the bin directory in your path.
Example:
PATH=$PATH:/usr/local/j2sdk1.4.2/bin in order 


On Thursday 10 July 2003 08:25 am, Thomas, Kevin wrote:
> Thanks for the reply Ben,
>
> I ran the $JAVA_HOME/bin/javac and got:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/sun/tools/javac/Main
>
> Does that narrow it down any?
>
> The directories are writable, so hopefully there's no problem there.
>
>
> -----Original Message-----
> From: Ben Souther [mailto:bsouther@fwdco.com]
> Sent: 10 July 2003 13:29
> To: Tomcat Users List
> Subject: Re: JSPs not compiling
>
>
> Test your evironment.
>
> Windows:
> %JAVA_HOME%\bin\javac
>
> Unix:
> $JAVA_HOME/bin/javac
>
>
> If you get a "program not found" error then your JAVA_HOME evironment
> variable
> is not properly set.
>
> You should also check to make sure that write permissions are available to
> what ever user is running Tomcat for the CATALINA_HOME/work directory.
>
> On Thursday 10 July 2003 08:12 am, Thomas, Kevin wrote:
> > Unfortunately, didn't help.
> >
> > I have JAVA_HOME/bin already defined in the PATH variable.
> >
> > -----Original Message-----
> > From: Tim Funk [mailto:funkman@joedog.org]
> > Sent: 10 July 2003 12:08
> > To: Tomcat Users List
> > Subject: Re: JSPs not compiling
> >
> >
> > Try this first
> > http://jakarta.apache.org/tomcat/faq/misc.html#compile
> >
> > -Tim
> >
> > Thomas, Kevin wrote:
> > > I've been searching for ages trying to find a solution to this problem.
> > > As far as I can tell it's definitely something to do with my paths
> > > being set correctly. I try to call the /admin/index.jsp page and get
> > > the following error (full error page shown):
> > >
> > > 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
> > > 	at org.apache.jasper.JspEngineContext.compile(Unknown Source)
> > > 	at org.apache.jasper.servlet.JspServletWrapper.service(Unknown
> > > Source)
> > > 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
> > > Source)
> > > 	at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
> > > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > 	at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknow
> > >n Source)
> > > 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
> > > Source)
> > > 	at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.StandardContextValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at
> > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown
> > > Source) at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> > > 	at
> > > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > > 	at
>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405
>
> > >) at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
>
> >e
> >
> > > ction(Http11Protocol.java:376)
> > > 	at
>
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508
>
> > >) at
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>
> >v
> >
> > > a:518)
> > > 	at java.lang.Thread.run(Thread.java:484)
> > >
> > >
> > > root cause
> > >
> > > org.apache.jasper.JasperException: Unable to compile class for JSP
> > >
> > > An error occurred at line: -1 in the jsp file: null
> > >
> > > Generated servlet error:
> > >
> > >
> > > 	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(Unknown
> > > Source)
> > > 	at org.apache.jasper.compiler.ErrorDispatcher.javacError(Unknown
> > > Source)
> > > 	at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
> > > 	at org.apache.jasper.JspEngineContext.compile(Unknown Source)
> > > 	at org.apache.jasper.servlet.JspServletWrapper.service(Unknown
> > > Source)
> > > 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
> > > Source)
> > > 	at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
> > > 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > 	at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknow
> > >n Source)
> > > 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
> > > Source)
> > > 	at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.StandardContextValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at
> > > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown
> > > Source) at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
> > > Source)
> > > 	at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> >k
> >
> > > eNext(Unknown Source)
> > > 	at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
> > > 	at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> > > 	at
> > > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > > 	at
>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405
>
> > >) at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
>
> >e
> >
> > > ction(Http11Protocol.java:376)
> > > 	at
>
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508
>
> > >) at
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>
> >v
> >
> > > a:518)
> > > 	at java.lang.Thread.run(Thread.java:484)
> > >
> > > My paths are set as:
> > >
> > > CATALINA_HOME=$HOME/ta_web/webserver/jakarta-tomcat-4.0 ; export
> > > CATALINA_HOME
> > > JAVA_HOME=$HOME/ta_web/webserver/j2sdk1_3_1_02 ; export JAVA_HOME
>
> CLASSPATH=$HOME/ta_web/webserver/j2sdk1_3_1_02/lib/classes111.jar:$HOME/ta_
>
> >w
>
> eb/webserver/j2sdk1_3_1_02/lib/tools.jar:$HOME/ta_web/webserver/j2sdk1_3_1_
>
> >0
> >
> > > 2/lib/htmlconverter.jar:$HOME/ta_web/webserver/j2sdk1_3_1_02/lib/dt.jar
> > >; export CLASSPATH
>
> PATH=$JAVA_HOME:$JAVA_HOME/bin:$HOME/ta_web/webserver/jakarta-tomcat-4.0/co
>
> >m
> >
> > > mon/lib:$PATH; export PATH
> > > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib; export LD_LIBRARY_PATH
> > >
> > > Can anyone assist please in helping me get these JSPs working.
> > >
> > > Many thanks,
> > > Kev
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

-- 
Ben Souther
F.W. Davison & Company, Inc.



REGISTER NOW FOR THE SCORPEO USER CONFERENCE!
September 18-19, 2003 in Boston/Brookline, MA
Additional Training Sessions held September 17, 2003
More info >> http://www.fwdco.com/services/Uconf03/default.shtm


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message