I remember when I was using Tomcat 5.0.x.  It was giving me
headaches!  After changing JAVA_HOME, it was still necessary to do a
"service remove" and then "service install", or else Tomcat won't take
that into account.

   Try Tomcat 5.5.  You don't need to declare JAVA_HOME anymore, and
you could use the configure console to point Tomcat to the correct JRE.

Jan Fredrik Fallsen wrote:

>your java home is C:\jsdk1\Àppserver\jdk
>
>-----Original Message-----
>From: Arthur D'Alessandro [mailto:[EMAIL PROTECTED]
>Sent: 26. september 2005 00:16
>To: Tomcat Users List
>Subject: Re: What to put into JAVA_HOME on Windows xp
>
>Move it up one level, in your case:
>C:\JDK1.4\AppServer\jdk
>
> On 9/25/05, Markus Hapke <[EMAIL PROTECTED]> wrote:
>
>
>>Hello,
>>
>>I just installed tomcat 5.0.28 successfully.
>>
>>Then tested the samples in
>>C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked.
>>
>>Thed tried to test a .jsp of my own- getting the error msg in the
>>MS Internet-Explorer:
>>=================== BEGIN of error Msg ============================
>>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(
>>DefaultErrorHandler.java:97)
>>org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.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(JspCompilationContext.java
>>:511)
>>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.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(JspCompilationContext.java
>>:511)
>>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.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.
>>=================== END of error Msg===== ==========================
>>
>>I set the environment entry of JAVA_HOME to
>>C:\JDK1.4\AppServer\jdk\bin
>>
>>Is that correct?
>>
>>OK, nobody of you could know where I have my J2EE (1.4) :
>>it is 'mounted' under:
>>C:\JDK1.4\AppServer
>>and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin
>>
>>Is my entry of the JAVA_HOME correct?
>>
>>Is there another error?
>>
>>Thanx in advance, Markus
>>
>>--
>>,,
>>
>>


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

Reply via email to