Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie - Problems running jsp pages (Variables problem)

Status
Not open for further replies.

Jasonic

Technical User
Jun 20, 2001
69
GB
Dear All

Having search and read several threads regarding similar problems, I have tried all suggested resolutions but I still have my problem :-(

My Variables are setup as follows :-
CATALINA_HOME = C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin
CLASSPATH = C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib
JAVA_HOME = C:\j2sdk1.4.2_08
PATH = %JAVA_HOME%\bin

when I try to access an index.jsp page I get the following error message
005-05-10 17:49:19 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
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
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)


I am running WinXP Pro, j2sdk 1.4.2_08 and Tomcat 5.0.02

Any ideas

Thanks

Jason Thomas
AssetCenter Consultant
Jason Thomas Consultancy Limited
[rolf]
 
Are you sure that is your entire PATH var ? Type "set PATH" in a DOS console (as the user you are running Tomcat as) ...

You also do not mention if you are running tomcat as a Windoze service or from the console ...

--------------------------------------------------
Free Database Connection Pooling Software
 
I'll check the 'PATH' variable tonight when I get home.

I'm running the Tomcat as a Microshaft service.

Thanks for the response.

Jason Thomas
AssetCenter Consultant
Jason Thomas Consultancy Limited
[rolf]
 
Sedj

I have checked on the entire PATH is C:\j2sdk1.4.2_08\bin

I have also moved PATH and JAVA_HOME from user variables to system variables

Unfortunately, I still get the same error message as before.

Additional Infromation:-
I am running Windows XP Pro on a VMWare Machine, so it is a fresh install, with only the M$ service/bug updates installed along with Java and Tomcat.

Any help is greatly appreciated.



Jason Thomas
AssetCenter Consultant
Jason Thomas Consultancy Limited
[rolf]
 
I notice your CATALINA_HOME points to :

C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin

but it should point to :

C:\Program Files\Apache Software Foundation\Tomcat 5.0

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top