You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rolf Howarth <ro...@squarebox.co.uk> on 2003/05/21 13:17:10 UTC

Tomcat 4.1.24 for Windows broken?

Hi,

I feel like I must be missing something when it comes to installing 
Tomcat 4.1.24 under Windows 2000. On a clean system I first installed 
the Java 1.3.1 SDK, then Tomcat. Visiting http://localhost:8080 
fails, giving the following error when it tries to compile index.jsp:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.

Now, I *can* get it to work by editing the Path environment variable 
and adding c:\jdk1.3.1_08\bin to it so Tomcat can find javac.exe. 
Should this be necessary though, given that Tomcat clearly knows 
where the JDK is installed, because that's the first thing it says 
during the installation, and I have no intention of running javac 
from the command line myself?

Is manually editing the environment (something I don't think most 
users under Windows would want to do) really required to get Tomcat 
to work?? If so, why doesn't the Tomcat installer do it for you, or 
tell you that you need to do so? Or am I missing something very 
obvious here?

This problem is a shame because apart from that the Windows installer 
and the NT Service works very well.

Regards,

-Rolf
-- 
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.

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


Re: Tomcat 4.1.24 for Windows broken?

Posted by Rolf Howarth <ro...@squarebox.co.uk>.
>Hi,
>
>RH> Now, I *can* get it to work by editing the Path environment variable
>RH> and adding c:\jdk1.3.1_08\bin to it so Tomcat can find javac.exe.
>RH> Should this be necessary though, given that Tomcat clearly knows
>RH> where the JDK is installed, because that's the first thing it says
>RH> during the installation, and I have no intention of running javac
>RH> from the command line myself?
>
>RH> Is manually editing the environment (something I don't think most
>RH> users under Windows would want to do) really required to get Tomcat
>RH> to work?? If so, why doesn't the Tomcat installer do it for you, or
>RH> tell you that you need to do so? Or am I missing something very
>RH> obvious here?
>
>When I install java VM i read install instruction & I find solution in
>that document. set JAVA_HOME environment variable which point to home
>directory of JVM.
>
>========
>With best wishes
>Roman "Blade" Velichko [mailto:blade@ivc.tagmet.ru]

 From http://java.sun.com/j2se/1.3/install-windows.html:
"You can run the Java 2 SDK without setting the PATH variable, or you 
can optionally set it as a convenience."

There's no mention of setting JAVA_HOME, and setting the PATH only 
seems to be recommended if you're planning to run the tools from the 
command line.

However, you're right that the *Tomcat* ReadMe mentions setting 
JAVA_HOME. I'm used to doing that (and setting the PATH) on 
development machines but I overlooked the necessity of doing that for 
deployment. I guess I was lulled into a false sense of security by 
the Tomcat installer telling me where the JDK was installed - it 
didn't occur to me I'd still have to set JAVA_HOME to tell it 
something it already knew :-)

Thanks for the feedback,

-Rolf
-- 
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.

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


Re: Tomcat 4.1.24 for Windows broken?

Posted by "Roman \"Blade\" Velichko" <bl...@ivc.tagmet.ru>.
Hi, 

RH> Now, I *can* get it to work by editing the Path environment variable
RH> and adding c:\jdk1.3.1_08\bin to it so Tomcat can find javac.exe. 
RH> Should this be necessary though, given that Tomcat clearly knows 
RH> where the JDK is installed, because that's the first thing it says 
RH> during the installation, and I have no intention of running javac 
RH> from the command line myself?

RH> Is manually editing the environment (something I don't think most 
RH> users under Windows would want to do) really required to get Tomcat 
RH> to work?? If so, why doesn't the Tomcat installer do it for you, or 
RH> tell you that you need to do so? Or am I missing something very 
RH> obvious here?

When I install java VM i read install instruction & I find solution in
that document. set JAVA_HOME environment variable which point to home
directory of JVM.

========
With best wishes
Roman "Blade" Velichko [mailto:blade@ivc.tagmet.ru]

Chance favour to prepared mind


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


RE: Tomcat 4.1.24 for Windows broken?

Posted by John Corrigan <jo...@johncorrigan.net>.
Something did change in Tomcat 4.1.24.  Instead of changing the path, you
can change the JVM Library setting in the registry.  For some reason the
JVM.DLL in
"client" doesn't get along with Tomcat.  Try changing the value of "JVM
Library" to "C:\j2sdk1.4.1_02\jre\bin\server\jvm.dll" in the registry for
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Apache Tomcat
4.1/Parameters.

-----Original Message-----
From: Rolf Howarth [mailto:rolf@squarebox.co.uk]
Sent: Wednesday, May 21, 2003 4:17 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 4.1.24 for Windows broken?


Hi,

I feel like I must be missing something when it comes to installing
Tomcat 4.1.24 under Windows 2000. On a clean system I first installed
the Java 1.3.1 SDK, then Tomcat. Visiting http://localhost:8080
fails, giving the following error when it tries to compile index.jsp:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.

Now, I *can* get it to work by editing the Path environment variable
and adding c:\jdk1.3.1_08\bin to it so Tomcat can find javac.exe.
Should this be necessary though, given that Tomcat clearly knows
where the JDK is installed, because that's the first thing it says
during the installation, and I have no intention of running javac
from the command line myself?

Is manually editing the environment (something I don't think most
users under Windows would want to do) really required to get Tomcat
to work?? If so, why doesn't the Tomcat installer do it for you, or
tell you that you need to do so? Or am I missing something very
obvious here?

This problem is a shame because apart from that the Windows installer
and the NT Service works very well.

Regards,

-Rolf
--
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.

---------------------------------------------------------------------
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