Re: --Jvm option trouble with Windows service

2011-03-16 Thread André Warnier
Olivier Lefevre wrote: On 3/15/2011 7:44 PM, Konstantin Kolinko wrote: Windows versions of JDK do have server JVM, while JREs do not. Saying it does not make so. I assure you that both the JRE and the JDK include the bin/server/jvm.dll. -1 I have both standard Sun JDK 6 and JRE 6 installed

Re: --Jvm option trouble with Windows service

2011-03-16 Thread Olivier Lefevre
On 3/16/2011 2:07 PM, Caldarale, Charles R wrote: The above would indicate something's seriously wrong with the installed JDK. That can't be: it's a recent download of jdk-6u24-windows-i586.exe and I just performed a clean reinstall. I made sure the c:\Java\j2sdk1.6.0 was empty first. What ha

Re: --Jvm option trouble with Windows service

2011-03-16 Thread Olivier Lefevre
On 3/16/2011 2:33 PM, Mladen Turk wrote: OK, that seems fine. However I wonder from where the first one comes? [2011-03-16 06:12:39] [info] ( :0 ) Starting service... [2011-03-16 06:12:39] [debug] ( javajni.c:195 ) Invalid RuntimeLib 'C:\Java\j2sdk1.6.0\bin\server\jvm.dll' It seems that you hav

Re: --Jvm option trouble with Windows service

2011-03-16 Thread Mladen Turk
On 03/16/2011 11:29 AM, Olivier Lefevre wrote: On 3/16/2011 7:14 AM, Mladen Turk wrote: What's the debug output with client VM? [2011-03-16 11:21:52] [info] ( :0 ) Starting service... [2011-03-16 11:21:52] [debug] ( javajni.c:206 ) loading jvm 'C:\Programme\Java\jre6\bin\client\jvm.dll' OK

RE: --Jvm option trouble with Windows service

2011-03-16 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: --Jvm option trouble with Windows service > Is it possible this is a 64-bit JDK on a 32-bit XP? For that matter, is this a 32- or 64-bit version of XP? (You told us your JRE is 32-bit, but said nothing about the OS or the JDK.) The servic

RE: --Jvm option trouble with Windows service

2011-03-16 Thread Caldarale, Charles R
> From: Olivier Lefevre [mailto:lefev...@yahoo.com] > Subject: Re: --Jvm option trouble with Windows service > [2011-03-16 06:12:39] [debug] ( javajni.c:195 ) Invalid RuntimeLib > 'C:\Java\j2sdk1.6.0\bin\server\jvm.dll' The above would indicate something's serious

Re: --Jvm option trouble with Windows service

2011-03-16 Thread Olivier Lefevre
On 3/16/2011 7:14 AM, Mladen Turk wrote: What's the debug output with client VM? [2011-03-16 11:21:52] [debug] ( prunsrv.c:1494) Commons Daemon procrun log initialized [2011-03-16 11:21:52] [info] ( :0 ) Commons Daemon procrun (1.0.5.0 32-bit) started [2011-03-16 11:21:52] [info]

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Mladen Turk
On 03/16/2011 06:17 AM, Olivier Lefevre wrote: I get this: [2011-03-16 06:12:39] [debug] ( javajni.c:195 ) Invalid RuntimeLib 'C:\Java\j2sdk1.6.0\bin\server\jvm.dll' [2011-03-16 06:12:39] [debug] ( javajni.c:197 ) Using Jre JavaHome 'C:\Programme\Java\jre6' [2011-03-16 06:12:39] [debug] ( java

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
To be absolutely sure I uninstalled both JRE and JDK, manually removing anything left behind, and reinstalled. This time the JRE did not have a server JVM indeed, so maybe another program had copied it. However the JDK has one and if I use it for the Tomcat server and later try to start it (with d

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
On 3/16/2011 2:50 AM, Konstantin Kolinko wrote: What version of JRE are you using? The latest 6u24 one does not have the file. It is 6u24. I did not copy anything. In addition, I already told you that I get the same error if I use the server JVM from the JDK. -- O.L. --

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > On 3/15/2011 8:28 PM, Konstantin Kolinko wrote: >>> >>> Saying it does not make so. I assure you that both the JRE and the >>> JDK include the bin/server/jvm.dll. >> >> On Linux yes. On Windows no. Have you looked there? Or you have a 64-bit >> JRE? > > Of course I hav

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
On 3/15/2011 8:28 PM, Konstantin Kolinko wrote: Saying it does not make so. I assure you that both the JRE and the JDK include the bin/server/jvm.dll. On Linux yes. On Windows no. Have you looked there? Or you have a 64-bit JRE? Of course I have looked there! And no I don't have a 64bit JRE.

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > On 3/15/2011 7:44 PM, Konstantin Kolinko wrote: >> >> Windows versions of JDK do have server JVM, while JREs do not. > > Saying it does not make so. I assure you that both the JRE and the > JDK include the bin/server/jvm.dll. > On Linux yes. On Windows no. Have you lo

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
On 3/15/2011 7:44 PM, Konstantin Kolinko wrote: Windows versions of JDK do have server JVM, while JREs do not. Saying it does not make so. I assure you that both the JRE and the JDK include the bin/server/jvm.dll. In any case this is a red herring because repointing --Jvm to the JDK sever jvm.

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Konstantin Kolinko
2011/3/15 Olivier Lefevre : > On 3/15/2011 4:56 PM, Caldarale, Charles R wrote: >> >> You have a *server* JVM installed on Windows XP?  Want to verify that? > > Like I said, $JAVA_HOME/bin/server/jvm.dll is there. I did nothing > special: I just ran the installer. > --Jvm "C:\Programme\Java\jre6\b

Re: --Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
On 3/15/2011 4:56 PM, Caldarale, Charles R wrote: You have a *server* JVM installed on Windows XP? Want to verify that? Like I said, $JAVA_HOME/bin/server/jvm.dll is there. I did nothing special: I just ran the installer. If --StartPath is omitted Tomcat attempts to start in the local direct

RE: --Jvm option trouble with Windows service

2011-03-15 Thread Caldarale, Charles R
> From: Olivier Lefevre [mailto:lefev...@yahoo.com] > Subject: --Jvm option trouble with Windows service > --Jvm "C:\Programme\Java\jre6\bin\server\jvm.dll" > If instead --Jvm is set to auto all works well. Why? The DLL > exists, is readable/executable by all and I

--Jvm option trouble with Windows service

2011-03-15 Thread Olivier Lefevre
My Tomcat service (since 7.0.8) would die with "Commons Daemon procrun stdout initializedError occurred during initialization of VM Unable to load native library" when I tried to start it. I finally traced got fed up with starting it from the command line and traced it down to this option that is