You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Markus Hapke <ma...@gmx.de> on 2005/09/25 22:27:24 UTC
What to put into JAVA_HOME on Windows xp
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
--
,,
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: What to put into JAVA_HOME on Windows XP
Posted by Leon Rosenberg <ro...@googlemail.com>.
can you compile classes?
I mean just normal java classes out of the command prompt.
Do you start tomcat as service or with bin\catalina.bat run / bin\startup.bat?
On 9/25/05, Markus Hapke <ma...@gmx.de> 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
>
>
> --
> GMX DSL = Maximale Leistung zum minimalen Preis!
> 2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
>
> ---------------------------------------------------------------------
> 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
What to put into JAVA_HOME on Windows XP
Posted by Markus Hapke <ma...@gmx.de>.
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
--
GMX DSL = Maximale Leistung zum minimalen Preis!
2000 MB nur 2,99, Flatrate ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: What to put into JAVA_HOME on Windows xp
Posted by Anto Paul <an...@gmail.com>.
On 9/28/05, Markus Hapke <ma...@gmx.de> wrote:
> Hi Jan and all Others,
>
> i changed the JAVA_HOME, but still facing the same problem:
> "Perhaps JAVA_HOME does not point to the JDK"
>
> How can I test what Tomcat tries to read when it calls the
> javac command?
Edit startup.bat and put the following lines at the top
@echo on
echo %JAVA_HOME%
It should point to C:\JDK1.4\AppServer\jdk
>
> thanx in advance , Markus
>
> > --- Ursprüngliche Nachricht ---
> > Von: Jan Fredrik Fallsen <jf...@start.no>
> > An: 'Tomcat Users List' <to...@jakarta.apache.org>, 'Arthur
> > D'Alessandro' <ar...@gmail.com>
> > Betreff: RE: What to put into JAVA_HOME on Windows xp
> > Datum: Mon, 26 Sep 2005 10:50:49 +0200
> >
> > your java home is C:\jsdk1\Àppserver\jdk
> >
> > -----Original Message-----
> > From: Arthur D'Alessandro [mailto:art.dalessandro@gmail.com]
> > 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 <ma...@gmx.de> 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
> > >
> > > --
> > > ,,
> > >
> > > 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> > > +++ GMX - die erste Adresse für Mail, Message, More +++
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
> >
> >
> > --
> > -Art D'Alessandro
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
> --
> Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
> Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
rgds
Anto Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: What to put into JAVA_HOME on Windows xp
Posted by Markus Hapke <ma...@gmx.de>.
Hi Jan and all Others,
i changed the JAVA_HOME, but still facing the same problem:
"Perhaps JAVA_HOME does not point to the JDK"
How can I test what Tomcat tries to read when it calls the
javac command?
thanx in advance , Markus
> --- Ursprüngliche Nachricht ---
> Von: Jan Fredrik Fallsen <jf...@start.no>
> An: 'Tomcat Users List' <to...@jakarta.apache.org>, 'Arthur
> D'Alessandro' <ar...@gmail.com>
> Betreff: RE: What to put into JAVA_HOME on Windows xp
> Datum: Mon, 26 Sep 2005 10:50:49 +0200
>
> your java home is C:\jsdk1\Àppserver\jdk
>
> -----Original Message-----
> From: Arthur D'Alessandro [mailto:art.dalessandro@gmail.com]
> 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 <ma...@gmx.de> 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
> >
> > --
> > ,,
> >
> > 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> > +++ GMX - die erste Adresse für Mail, Message, More +++
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
> --
> -Art D'Alessandro
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: What to put into JAVA_HOME on Windows xp
Posted by Jan Fredrik Fallsen <jf...@start.no>.
your java home is C:\jsdk1\Àppserver\jdk
-----Original Message-----
From: Arthur D'Alessandro [mailto:art.dalessandro@gmail.com]
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 <ma...@gmx.de> 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
>
> --
> ,,
>
> 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> +++ GMX - die erste Adresse für Mail, Message, More +++
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
-Art D'Alessandro
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: What to put into JAVA_HOME on Windows xp
Posted by Arthur D'Alessandro <ar...@gmail.com>.
Move it up one level, in your case:
C:\JDK1.4\AppServer\jdk
On 9/25/05, Markus Hapke <ma...@gmx.de> 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
>
> --
> ,,
>
> 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> +++ GMX - die erste Adresse für Mail, Message, More +++
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
--
-Art D'Alessandro