Answering myself, my apologies:

I found a solution: checking the "Auto" box (unchecked by default) makes Tomcat
work as expected, with the -server option.

Since without it, Tomcat does not use the correct SDK, as it should from the
quote below, I think this could be either a bug, or at least wrong default
parameters. 

"Java location: The installer will use the registry or the JAVA_HOME environment
variable to determine the base path of the JDK or a JRE. If only a JRE (or an
incorrect path) is specified, Tomcat will run but will be unable to compile JSP
pages at runtime. Either all webapps will need to be precompiled (this can be
easily done using the Tomcat deployer), or the lib\tools.jar file from a JDK
installation must be copied to the common\lib path of the Tomcat installation."
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html

Am I right there?

Laurent

Selon Laurent Blume <[EMAIL PROTECTED]>:

> 
> Hello all, 
> 
> I'm trying to check if the -server option of the VM would improve
> performance.
> However, I'm running into weird problems.
> 
> My platform is Windows 2000, J2SDK 1.4.2_02, Tomcat 5.0.16.
> 
> Java was installed with the default options (it installed the JRE
> automatically).
> Tomcat was installed with the "Service" option checked, and correctly
> detected
> the path for the SDK.
> JAVA_HOME is set to c:\j2sdk1.4.2_02
> PATH is set to C:\j2sdk1.4.2_02\bin;%SystemRoot%\system32;etc...
> 
> Using the "Configure Tomcat" tool, I've set the Java options to:
> -Dcatalina.home="C:\Program Files\Apache Software Foundation\Tomcat 5.0"
> -Djava.endorsed.dirs="C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\common\endorsed"
> -server
> 
> But then, when I try to run the service, I get that:
> $ net start "apache tomcat"
> The Apache Tomcat service is starting.
> The Apache Tomcat service could not be started.
> 
> The service did not report an error.
> 
> More help is available by typing NET HELPMSG 3534.
> 
> 
> Nothing in Windows' logs, and Tomcat stderr is truncated:
> $ more stderr.log
> Err
> 
> I tried several times, and sometimes got only the first letter, and once
> more
> information, and the error is the same as when running:
> C:\>c:\winnt\system32\java -server
> Error: no `server' JVM at `C:\Program
> Files\Java\j2re1.4.2_02\bin\server\jvm.dll'.
> 
> Runnin c:\j2sdk1.4.2_02\bin\java -server does not give that error, so it
> seems
> that Tomcat is somehow picking the wrong java.exe.
> 
> If I run "Configure Tomcat" again, and put C:\j2sdk1.4.2_02\bin\java.exe
> instead
> of the default java.exe, then the problem gets worse:
> $ net start "apache tomcat"
> The service is not responding to the control function.
> 
> More help is available by typing NET HELPMSG 2186.
> 
> And the "Configure Tomcat" tool does not start anymore, I have to modify the
> value in the registry.
> 
> This is using clean installs for the J2SDK and Tomcat.
> 
> I've glanced at the Tomcat 5.0.18 changelog, and didn't notice anything that
> could relate to that, but I haven't tried installing it yet.
> 
> Does anybody know if I'm doing something wrong, or if there is a problem in
> Tomcat 5.0.16 install?
> 
> TIA,
> 
> Laurent
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
  - 9, rue du Sentier -
  - 78400 Chatou      -
  - France            -

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

Reply via email to