You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "André Warnier (tomcat)" <aw...@ice-sa.com> on 2018/11/27 08:47:57 UTC

[slightly OT] Re: Tomcat 9 does not work with Java 11

On 27.11.2018 01:49, Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Andi,
>
> On 11/26/18 15:08, Andi Meister wrote:
>> Tomorrow I will try it on an other machine with no previous Tomcat
>> installed. But my problem is that I have to get it to run on this
>> machine. What could I do? First uninstall all jdks and Tomcats and
>> then install jdk11 and newest Tomcat?
>
> You might want to:
>
> 1. C:...\tomcat-7> bin\service.bat remove  (optional name parameter)
>
> 2. C:...\tomcat-9> bin\service.bat install (optional name parameter)
>
> Something might be broken in the service definition, and this should
> reset everything. Note that any of the system properties you might
> have defined in the existing service will be wiped-out by this
> process. So, you might want to take a few screenshots of the various
> configuration screens if you are using anything other than the plain
> defaults.
>
> Hmm... just realized that the service.bat file might not be included
> in the "installer" bundle. You might have to grab the ZIP bundle from
> the Tomcat downloads site to get those scripts.
>
> - -chris

This may be the right moment to suggest that this (these ?) ZIP bundle(s) could be 
included by default, when running the installer (not unpacked, just copied along and 
dropped somewhere).  For as long as I can remember (which is getting somewhat shorter 
these days, but still goes back to tomcat 4.x), this has been an issue which regularly 
crops up with the Windows versions : whenever something goes wrong, people are being 
referred to files that they do not have, and it always takes a while to explain, download 
etc..
It would be easier if the files were already there anyway.
In the past, there may have been a concern for the extra size of the download (nowadays 
about 11 MB for each 32/64 bit version), but compared to many other downloads nowadays, 
this is still quite reasonable.
(And in fact, there are many common files, so not everything would have to be downloaded. 
  Also the 32-bit version is less useful these days.)



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


RE: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by "Berneburg, Cris J. - US" <cb...@caci.com>.
Hi Ralf

am> What I did now:
am> - removed Tomcat services by service.bat
am> - uninstalled all Tomcats (7 and 9)
am> - uninstalled all Java (was only Version 11)
am> - server reboot
am> - Installed Java 11 (File: jdk-11.0.1_windows-x64_bin.exe)
am> - reboot
am> - Installed Tomcat 9 (File: apache-tomcat-9.0.13.exe)
am> - During installation I was asked for the path to Java (field was empty). I entered the path to the root of Java 11: C:\Program Files\Java\jdk-11.0.1
am> - Start Service at the end of the installation
am> 
am> And again this error:
am> [2018-11-27 10:56:50] [info]  [ 3208] Commons Daemon procrun (1.1.0.0
am>     64-bit) started
am> [2018-11-27 10:56:50] [info]  [ 3208] Running 'Tomcat9' Service...
am> [2018-11-27 10:56:50] [info]  [ 3060] Starting service...
am> [2018-11-27 10:56:50] [error] [ 3060] The specified procedure could not be found.
am> [2018-11-27 10:56:50] [error] [ 3060] Failed creating Java
am>     C:\Program Files\Java\jdk-11.0.1\bin\server\jvm.dll
am> [2018-11-27 10:56:50] [error] [ 3060] The specified procedure could not be found.
am> [2018-11-27 10:56:50] [error] [ 3060] ServiceStart returned 1
am> [2018-11-27 10:56:50] [error] [ 3060] The specified procedure could not be found.
am> [2018-11-27 10:56:50] [info]  [ 3208] Run service finished.
am> [2018-11-27 10:56:50] [info]  [ 3208] Commons Daemon procrun finished

Newbie point: My Tomcat Windows Service and Java problems were recently solved by running Tomcat8w.exe.  Would running Tomcat9w.exe and setting your Java location there be relevant to your situation?

--
Cris Berneburg
CACI Lead Software Engineer


Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Esther Montes <es...@gmail.com>.
Buenas noches nomás para q me deposite aki ok.npor fis

El mié., 28 de nov. de 2018 10:20 AM, Christopher Schultz <
chris@christopherschultz.net> escribió:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Andi,
>
> On 11/27/18 05:08, Andi Meister wrote:
> > What I did now: - removed Tomcat services by service.bat -
> > uninstalled all Tomcats (7 and 9) - uninstalled all Java (was only
> > Version 11) - server reboot - Installed Java 11 (File:
> > jdk-11.0.1_windows-x64_bin.exe) - reboot - Installed Tomcat 9
> > (File: apache-tomcat-9.0.13.exe)
>
> 32-bit or 64-bit?
>
> If you try to launch a 64-bit JVM from a 32-bit service-running, I'm
> fairly sure you'll get this type of error message.
>
> The installer should be detecting all of that, but at this point you
> are grasping at straws, anyway.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlv+3HwACgkQHPApP6U8
> pFjk8Q//U9dks12jh8bg/zQfCfLnyeEpCzegFAB6LywTXiwjJ2/6C1ATewVtId/7
> H+rWXUG95n0KSXxCDqRmZzBCjUQP7i90d+zTKyWa0qkwDL+VryKHyABkSRSOk6eR
> dkg+WeR6queq/tvnE7XGs1lsjoWqmRT4Ybgnb4WHTsJ5FgIp40GVdTayoWOE/dzv
> SV5NaO77guGt6XUfQdqsJmm+Cb0bhMcSQOuyl3cKceaAUFHF6bhxrVTWpbVCDB0Q
> h+AkrTAc9SAWWfNHmpRzUg72wAbwza6U2KaZzDhOZjhZFel76Vb7fCkrSNritJvK
> oiWBDJGXFKdO1w8Wtds/4FHEqBqkU+rsNm/qkEdMZSDj+9eHasmDg/HHv68L64Tf
> PaSDV7POO4gdiggsbCtsqPH4KLpk8zRHli0uThGDf/73zYwGWqZwPnPc9p0vZh01
> MeeIkZteyLFjh/PhU++vxUEJevbjCwGTI4hZn1Bs6gASwF/v5pY3Yjxx2m9Xd79G
> B3VGQ/Y3QL5WUZdEomnP0BLKn2q+sZ0hmHWjRCC0rr+xjiHtuMO+IRRRdhL4jOqv
> 5ZgeUZL8ShlGnhi5CQiMuTsCsqY122Yt7mQBOnE9yredlfre68z/tq1nFwIoyd+z
> 2VFk1coXosXjv8BHU/3rd+Uz0RnRSGK9Mfe67Wnz7Qu/iZnD1mU=
> =gTWT
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Andi Meister <bl...@googlemail.com.INVALID>.
Hi Cris,

thank you very much for your help!

Here are the answers to your questions:
- Tomcat Windows Service has problems during automatic startup AND manual
startup from the Service panel.
- Older Java Versions: Using C:\Program
Files\Java\jre1.8.0_181\bin\server\jvm.dll Tomcat services starts. No
problems then.
- Windows Event Log: Message is only " The Apache Tomcat 9.0 Tomcat9
service terminated with service-specific error Incorrect function.. "
- Tomcat Service Panel: I specified the location of jvm.dll and do NOT use
default.
- Windows Server 2008 is 64bit. And so is Java and Tomcat.

Best regards,
Andi


Am Mi., 12. Dez. 2018 um 19:54 Uhr schrieb Berneburg, Cris J. - US <
cberneburg@caci.com>:

> Hi Andi
>
> am> Another try on a third Windows Server 2008 R2 that never contained
> Java or Tomcat.
> am> I am logged in as local administrator.
> am> Installed Java 11 and Tomcat 9.
> am> And again same error :(
> am> I would really appreciate any help.
>
> Sorry you are going through all this trouble.  I have not tried Java 11
> yet.
>
> cs> The installer should be detecting all of that, but
> cs> at this point you are grasping at straws, anyway.
>
> Also, as long as you're "grasping at straws" :-) I have some basic
> questions:
>
> am> Since it works when I start Tomcat by startup.bat, it must be
> am> something with the service, right?
>
> I can't remember, does your Tomcat Windows Service have a problem during
> automatic startup *and* manual startup from the Services panel (not
> startup.bat)?
>
> Have you tried installing older versions of Java with Tomcat 9 on Windows
> Server 2008 to verify that the Tomcat Windows Service works with older Java
> versions?  Sorry, I can't remember if you tried that either.
>
> Does Windows Event Log say anything meaningful, other than "Error Code 1"
> (or something like that)?
>
> am> It also tried to change the START-MODE to Java.
> am> Then Tomcat service started! But it could not be stopped anymore. Only
> am> by killing Java.exe.
>
> When you run Tomcat9.exe, is the Java location specified, or do you have
> "use default" selected?  Hmm... if the Service started then that must not
> be the problem.
>
> am> When I start Tomcat by using startup.bat it works!
> [SNIP]
> am> - Installed Java 11 (File: jdk-11.0.1_windows-x64_bin.exe)
>
> Is your Windows Server 2008 32-bit or 64bit?  Hmm again... If 64-bit Java
> were installed on a 32-bit OS, Java would not run at all, so that's not it.
>
> Guess I'm grasping at straws too.  :-)
>
> --
> Cris Berneburg
> Tomcat Newbie
>
>

RE: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by "Rouse, Ed" <er...@milner.com>.
Did you check the user that the service is running as? Does it have adequate permissions?

> -----Original Message-----
> From: Berneburg, Cris J. - US <cb...@caci.com>
> Sent: Wed 12/12/18 1:54 PM
> To: Tomcat Users List <us...@tomcat.apache.org>
> Subject: RE: [slightly OT] Re: Tomcat 9 does not work with Java 11
> 
> Hi Andi
> 
> am> Another try on a third Windows Server 2008 R2 that never contained
> Java or Tomcat.
> am> I am logged in as local administrator.
> am> Installed Java 11 and Tomcat 9.
> am> And again same error :(
> am> I would really appreciate any help.
> 
> Sorry you are going through all this trouble.  I have not tried Java 11 yet.
> 
> cs> The installer should be detecting all of that, but at this point you
> cs> are grasping at straws, anyway.
> 
> Also, as long as you're "grasping at straws" :-) I have some basic questions:
> 
> am> Since it works when I start Tomcat by startup.bat, it must be
> am> something with the service, right?
> 
> I can't remember, does your Tomcat Windows Service have a problem during
> automatic startup *and* manual startup from the Services panel (not
> startup.bat)?
> 
> Have you tried installing older versions of Java with Tomcat 9 on Windows
> Server 2008 to verify that the Tomcat Windows Service works with older Java
> versions?  Sorry, I can't remember if you tried that either.
> 
> Does Windows Event Log say anything meaningful, other than "Error Code 1"
> (or something like that)?
> 
> am> It also tried to change the START-MODE to Java.
> am> Then Tomcat service started! But it could not be stopped anymore.
> am> Only by killing Java.exe.
> 
> When you run Tomcat9.exe, is the Java location specified, or do you have
> "use default" selected?  Hmm... if the Service started then that must not be
> the problem.
> 
> am> When I start Tomcat by using startup.bat it works!
> [SNIP]
> am> - Installed Java 11 (File: jdk-11.0.1_windows-x64_bin.exe)
> 
> Is your Windows Server 2008 32-bit or 64bit?  Hmm again... If 64-bit Java were
> installed on a 32-bit OS, Java would not run at all, so that's not it.
> 
> Guess I'm grasping at straws too.  :-)
> 
> --
> Cris Berneburg
> Tomcat Newbie
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org


RE: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by "Berneburg, Cris J. - US" <cb...@caci.com>.
Hi Andi

am> Another try on a third Windows Server 2008 R2 that never contained Java or Tomcat.
am> I am logged in as local administrator.
am> Installed Java 11 and Tomcat 9.
am> And again same error :(
am> I would really appreciate any help.

Sorry you are going through all this trouble.  I have not tried Java 11 yet.

cs> The installer should be detecting all of that, but 
cs> at this point you are grasping at straws, anyway.

Also, as long as you're "grasping at straws" :-) I have some basic questions:

am> Since it works when I start Tomcat by startup.bat, it must be 
am> something with the service, right?

I can't remember, does your Tomcat Windows Service have a problem during automatic startup *and* manual startup from the Services panel (not startup.bat)?

Have you tried installing older versions of Java with Tomcat 9 on Windows Server 2008 to verify that the Tomcat Windows Service works with older Java versions?  Sorry, I can't remember if you tried that either.

Does Windows Event Log say anything meaningful, other than "Error Code 1" (or something like that)?

am> It also tried to change the START-MODE to Java.
am> Then Tomcat service started! But it could not be stopped anymore. Only 
am> by killing Java.exe.

When you run Tomcat9.exe, is the Java location specified, or do you have "use default" selected?  Hmm... if the Service started then that must not be the problem.

am> When I start Tomcat by using startup.bat it works!
[SNIP]
am> - Installed Java 11 (File: jdk-11.0.1_windows-x64_bin.exe)

Is your Windows Server 2008 32-bit or 64bit?  Hmm again... If 64-bit Java were installed on a 32-bit OS, Java would not run at all, so that's not it.

Guess I'm grasping at straws too.  :-)

--
Cris Berneburg
Tomcat Newbie


Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Andi Meister <bl...@googlemail.com.INVALID>.
Another try on a third Windows Server 2008 R2 that never contained Java or
Tomcat.
I am logged in as local administrator.
Installed Java 11 and Tomcat 9.
And again same error :(

I would really appreciate any help.

Andi


Am Mi., 12. Dez. 2018 um 15:46 Uhr schrieb Andi Meister <
blackpump12@googlemail.com>:

> Hmm, ok. So tomcat9.exe and Java.exe are both 64-bit.
>
> I was able to install Java 11 and Tomcat 9 on Windows10. No problems.
> Then I tried another Windows2008 R2 server. Same problems as on the other
> Windows2008 server.
> It seems to me that it has something to do with this OS. But Chris wrote
> that he was able to get it to run there.
>
> Since it works when I start Tomcat by startup.bat, it must be something
> with the service, right?
>
> It also tried to change the START-MODE to Java.
> Then Tomcat service started! But it could not be stopped anymore. Only by
> killing Java.exe.
>
> Andi
>
>
> Am Mi., 12. Dez. 2018 um 14:51 Uhr schrieb Mark Thomas <ma...@apache.org>:
>
>> On 12/12/2018 13:48, Andi Meister wrote:
>> > Hi Chris,
>> >
>> > I think this is the right direction!
>> > I found out that tomcat9w (the windows GUI) is running as 32-bit
>> process.
>> > When I start Tomcat service from there, I can see the tomcat9.exe for a
>> > second in task manager (but without *32 - so it should be 64-bit?)
>>
>> No. tomcat9w.exe is always a 32-bit process. It is tomcat9.exe that
>> needs to match the JVM.
>>
>> Mark
>>
>> >
>> > When I start Tomcat by using startup.bat it works!
>> >
>> > Andi
>> >
>> >
>> > Am Mi., 28. Nov. 2018 um 19:20 Uhr schrieb Christopher Schultz <
>> > chris@christopherschultz.net>:
>> >
>> > Andi,
>> >
>> > On 11/27/18 05:08, Andi Meister wrote:
>> >>>> What I did now: - removed Tomcat services by service.bat -
>> >>>> uninstalled all Tomcats (7 and 9) - uninstalled all Java (was only
>> >>>> Version 11) - server reboot - Installed Java 11 (File:
>> >>>> jdk-11.0.1_windows-x64_bin.exe) - reboot - Installed Tomcat 9
>> >>>> (File: apache-tomcat-9.0.13.exe)
>> >
>> > 32-bit or 64-bit?
>> >
>> > If you try to launch a 64-bit JVM from a 32-bit service-running, I'm
>> > fairly sure you'll get this type of error message.
>> >
>> > The installer should be detecting all of that, but at this point you
>> > are grasping at straws, anyway.
>> >
>> > -chris
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> >> For additional commands, e-mail: users-help@tomcat.apache.org
>> >>
>> >>
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>

Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Andi Meister <bl...@googlemail.com.INVALID>.
Hmm, ok. So tomcat9.exe and Java.exe are both 64-bit.

I was able to install Java 11 and Tomcat 9 on Windows10. No problems.
Then I tried another Windows2008 R2 server. Same problems as on the other
Windows2008 server.
It seems to me that it has something to do with this OS. But Chris wrote
that he was able to get it to run there.

Since it works when I start Tomcat by startup.bat, it must be something
with the service, right?

It also tried to change the START-MODE to Java.
Then Tomcat service started! But it could not be stopped anymore. Only by
killing Java.exe.

Andi


Am Mi., 12. Dez. 2018 um 14:51 Uhr schrieb Mark Thomas <ma...@apache.org>:

> On 12/12/2018 13:48, Andi Meister wrote:
> > Hi Chris,
> >
> > I think this is the right direction!
> > I found out that tomcat9w (the windows GUI) is running as 32-bit process.
> > When I start Tomcat service from there, I can see the tomcat9.exe for a
> > second in task manager (but without *32 - so it should be 64-bit?)
>
> No. tomcat9w.exe is always a 32-bit process. It is tomcat9.exe that
> needs to match the JVM.
>
> Mark
>
> >
> > When I start Tomcat by using startup.bat it works!
> >
> > Andi
> >
> >
> > Am Mi., 28. Nov. 2018 um 19:20 Uhr schrieb Christopher Schultz <
> > chris@christopherschultz.net>:
> >
> > Andi,
> >
> > On 11/27/18 05:08, Andi Meister wrote:
> >>>> What I did now: - removed Tomcat services by service.bat -
> >>>> uninstalled all Tomcats (7 and 9) - uninstalled all Java (was only
> >>>> Version 11) - server reboot - Installed Java 11 (File:
> >>>> jdk-11.0.1_windows-x64_bin.exe) - reboot - Installed Tomcat 9
> >>>> (File: apache-tomcat-9.0.13.exe)
> >
> > 32-bit or 64-bit?
> >
> > If you try to launch a 64-bit JVM from a 32-bit service-running, I'm
> > fairly sure you'll get this type of error message.
> >
> > The installer should be detecting all of that, but at this point you
> > are grasping at straws, anyway.
> >
> > -chris
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Mark Thomas <ma...@apache.org>.
On 12/12/2018 13:48, Andi Meister wrote:
> Hi Chris,
> 
> I think this is the right direction!
> I found out that tomcat9w (the windows GUI) is running as 32-bit process.
> When I start Tomcat service from there, I can see the tomcat9.exe for a
> second in task manager (but without *32 - so it should be 64-bit?)

No. tomcat9w.exe is always a 32-bit process. It is tomcat9.exe that
needs to match the JVM.

Mark

> 
> When I start Tomcat by using startup.bat it works!
> 
> Andi
> 
> 
> Am Mi., 28. Nov. 2018 um 19:20 Uhr schrieb Christopher Schultz <
> chris@christopherschultz.net>:
> 
> Andi,
> 
> On 11/27/18 05:08, Andi Meister wrote:
>>>> What I did now: - removed Tomcat services by service.bat -
>>>> uninstalled all Tomcats (7 and 9) - uninstalled all Java (was only
>>>> Version 11) - server reboot - Installed Java 11 (File:
>>>> jdk-11.0.1_windows-x64_bin.exe) - reboot - Installed Tomcat 9
>>>> (File: apache-tomcat-9.0.13.exe)
> 
> 32-bit or 64-bit?
> 
> If you try to launch a 64-bit JVM from a 32-bit service-running, I'm
> fairly sure you'll get this type of error message.
> 
> The installer should be detecting all of that, but at this point you
> are grasping at straws, anyway.
> 
> -chris
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
> 


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


Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Andi Meister <bl...@googlemail.com.INVALID>.
Hi Chris,

I think this is the right direction!
I found out that tomcat9w (the windows GUI) is running as 32-bit process.
When I start Tomcat service from there, I can see the tomcat9.exe for a
second in task manager (but without *32 - so it should be 64-bit?)

When I start Tomcat by using startup.bat it works!

Andi


Am Mi., 28. Nov. 2018 um 19:20 Uhr schrieb Christopher Schultz <
chris@christopherschultz.net>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Andi,
>
> On 11/27/18 05:08, Andi Meister wrote:
> > What I did now: - removed Tomcat services by service.bat -
> > uninstalled all Tomcats (7 and 9) - uninstalled all Java (was only
> > Version 11) - server reboot - Installed Java 11 (File:
> > jdk-11.0.1_windows-x64_bin.exe) - reboot - Installed Tomcat 9
> > (File: apache-tomcat-9.0.13.exe)
>
> 32-bit or 64-bit?
>
> If you try to launch a 64-bit JVM from a 32-bit service-running, I'm
> fairly sure you'll get this type of error message.
>
> The installer should be detecting all of that, but at this point you
> are grasping at straws, anyway.
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlv+3HwACgkQHPApP6U8
> pFjk8Q//U9dks12jh8bg/zQfCfLnyeEpCzegFAB6LywTXiwjJ2/6C1ATewVtId/7
> H+rWXUG95n0KSXxCDqRmZzBCjUQP7i90d+zTKyWa0qkwDL+VryKHyABkSRSOk6eR
> dkg+WeR6queq/tvnE7XGs1lsjoWqmRT4Ybgnb4WHTsJ5FgIp40GVdTayoWOE/dzv
> SV5NaO77guGt6XUfQdqsJmm+Cb0bhMcSQOuyl3cKceaAUFHF6bhxrVTWpbVCDB0Q
> h+AkrTAc9SAWWfNHmpRzUg72wAbwza6U2KaZzDhOZjhZFel76Vb7fCkrSNritJvK
> oiWBDJGXFKdO1w8Wtds/4FHEqBqkU+rsNm/qkEdMZSDj+9eHasmDg/HHv68L64Tf
> PaSDV7POO4gdiggsbCtsqPH4KLpk8zRHli0uThGDf/73zYwGWqZwPnPc9p0vZh01
> MeeIkZteyLFjh/PhU++vxUEJevbjCwGTI4hZn1Bs6gASwF/v5pY3Yjxx2m9Xd79G
> B3VGQ/Y3QL5WUZdEomnP0BLKn2q+sZ0hmHWjRCC0rr+xjiHtuMO+IRRRdhL4jOqv
> 5ZgeUZL8ShlGnhi5CQiMuTsCsqY122Yt7mQBOnE9yredlfre68z/tq1nFwIoyd+z
> 2VFk1coXosXjv8BHU/3rd+Uz0RnRSGK9Mfe67Wnz7Qu/iZnD1mU=
> =gTWT
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Andi,

On 11/27/18 05:08, Andi Meister wrote:
> What I did now: - removed Tomcat services by service.bat -
> uninstalled all Tomcats (7 and 9) - uninstalled all Java (was only
> Version 11) - server reboot - Installed Java 11 (File:
> jdk-11.0.1_windows-x64_bin.exe) - reboot - Installed Tomcat 9
> (File: apache-tomcat-9.0.13.exe)

32-bit or 64-bit?

If you try to launch a 64-bit JVM from a 32-bit service-running, I'm
fairly sure you'll get this type of error message.

The installer should be detecting all of that, but at this point you
are grasping at straws, anyway.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlv+3HwACgkQHPApP6U8
pFjk8Q//U9dks12jh8bg/zQfCfLnyeEpCzegFAB6LywTXiwjJ2/6C1ATewVtId/7
H+rWXUG95n0KSXxCDqRmZzBCjUQP7i90d+zTKyWa0qkwDL+VryKHyABkSRSOk6eR
dkg+WeR6queq/tvnE7XGs1lsjoWqmRT4Ybgnb4WHTsJ5FgIp40GVdTayoWOE/dzv
SV5NaO77guGt6XUfQdqsJmm+Cb0bhMcSQOuyl3cKceaAUFHF6bhxrVTWpbVCDB0Q
h+AkrTAc9SAWWfNHmpRzUg72wAbwza6U2KaZzDhOZjhZFel76Vb7fCkrSNritJvK
oiWBDJGXFKdO1w8Wtds/4FHEqBqkU+rsNm/qkEdMZSDj+9eHasmDg/HHv68L64Tf
PaSDV7POO4gdiggsbCtsqPH4KLpk8zRHli0uThGDf/73zYwGWqZwPnPc9p0vZh01
MeeIkZteyLFjh/PhU++vxUEJevbjCwGTI4hZn1Bs6gASwF/v5pY3Yjxx2m9Xd79G
B3VGQ/Y3QL5WUZdEomnP0BLKn2q+sZ0hmHWjRCC0rr+xjiHtuMO+IRRRdhL4jOqv
5ZgeUZL8ShlGnhi5CQiMuTsCsqY122Yt7mQBOnE9yredlfre68z/tq1nFwIoyd+z
2VFk1coXosXjv8BHU/3rd+Uz0RnRSGK9Mfe67Wnz7Qu/iZnD1mU=
=gTWT
-----END PGP SIGNATURE-----

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


Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Andi Meister <bl...@googlemail.com.INVALID>.
Shawn, thank you for you hint regarding the license. I will keep an eye on
that.

And thanks for testing.

The mentioned jvm.dll IS in the location where the log tells.
And Tomcat service runs as "local system account". I did not change
anything to the default values in the installer.

Very strange...

Ralf


Am Di., 27. Nov. 2018 um 16:10 Uhr schrieb Shawn Heisey <apache@elyograg.org
>:

> On 11/27/2018 3:08 AM, Andi Meister wrote:
> > What I did now:
> > - removed Tomcat services by service.bat
> > - uninstalled all Tomcats (7 and 9)
> > - uninstalled all Java (was only Version 11)
> > - server reboot
> > - Installed Java 11 (File: jdk-11.0.1_windows-x64_bin.exe)
>
> That filename tells me you're installing the JDK from Oracle.
>
> I have a side note for you:  The license for Java from Oracle has
> changed dramatically in version 11 compared to previous versions.
>
> If your use of Oracle Java will be for commercial or production, you
> have to pay Oracle a license fee for that machine.  The only way you can
> use their Java for free is if you're developing your application.  Once
> you deploy it to production running with Oracle Java 11, they expect
> payment.
>
> You might think I'm trying to pull a fast one here.  I'm not.  Right
> there in the license mentioned on the Java download page, under the
> "Further, You may not" section, is this bullet point: "use the Programs
> for any data processing or any commercial, production, or internal
> business purposes other than developing, testing, prototyping, and
> demonstrating your Application;"
>
>
> https://www.oracle.com/technetwork/java/javase/terms/license/javase-license.html
>
> So if you want to use Java 11 for production, get OpenJDK.It is still free.
>
> > [2018-11-27 10:56:50] [error] [ 3060] Failed creating Java C:\Program
> > Files\Java\jdk-11.0.1\bin\server\jvm.dll
>
> I downloaded Java 11 from Oracle's website, same executable filename you
> mentioned, and installed it.  The exact DLL path mentioned in this log
> entry is there.  If that DLL is there when you open the mentioned
> directory ... this problem makes me wonder if maybe the Tomcat service
> is running as a user that does not have permission to access that
> directory location, so it cannot find the parts of Java that it needs.
>
> Thanks,
> Shawn
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Shawn Heisey <ap...@elyograg.org>.
On 11/27/2018 3:08 AM, Andi Meister wrote:
> What I did now:
> - removed Tomcat services by service.bat
> - uninstalled all Tomcats (7 and 9)
> - uninstalled all Java (was only Version 11)
> - server reboot
> - Installed Java 11 (File: jdk-11.0.1_windows-x64_bin.exe)

That filename tells me you're installing the JDK from Oracle.

I have a side note for you:  The license for Java from Oracle has 
changed dramatically in version 11 compared to previous versions.

If your use of Oracle Java will be for commercial or production, you 
have to pay Oracle a license fee for that machine.  The only way you can 
use their Java for free is if you're developing your application.  Once 
you deploy it to production running with Oracle Java 11, they expect 
payment.

You might think I'm trying to pull a fast one here.  I'm not.  Right 
there in the license mentioned on the Java download page, under the 
"Further, You may not" section, is this bullet point: "use the Programs 
for any data processing or any commercial, production, or internal 
business purposes other than developing, testing, prototyping, and 
demonstrating your Application;"

https://www.oracle.com/technetwork/java/javase/terms/license/javase-license.html

So if you want to use Java 11 for production, get OpenJDK.It is still free.

> [2018-11-27 10:56:50] [error] [ 3060] Failed creating Java C:\Program
> Files\Java\jdk-11.0.1\bin\server\jvm.dll

I downloaded Java 11 from Oracle's website, same executable filename you 
mentioned, and installed it.  The exact DLL path mentioned in this log 
entry is there.  If that DLL is there when you open the mentioned 
directory ... this problem makes me wonder if maybe the Tomcat service 
is running as a user that does not have permission to access that 
directory location, so it cannot find the parts of Java that it needs.

Thanks,
Shawn


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


Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Andi Meister <bl...@googlemail.com.INVALID>.
What I did now:
- removed Tomcat services by service.bat
- uninstalled all Tomcats (7 and 9)
- uninstalled all Java (was only Version 11)
- server reboot
- Installed Java 11 (File: jdk-11.0.1_windows-x64_bin.exe)
- reboot
- Installed Tomcat 9 (File: apache-tomcat-9.0.13.exe)
- During installation I was asked for the path to Java (field was empty). I
entered the path to the root of Java 11: C:\Program Files\Java\jdk-11.0.1
- Start Service at the end of the installation

And again this error:

[2018-11-27 10:56:50] [info]  [ 3208] Commons Daemon procrun (1.1.0.0
64-bit) started

[2018-11-27 10:56:50] [info]  [ 3208] Running 'Tomcat9' Service...

[2018-11-27 10:56:50] [info]  [ 3060] Starting service...

[2018-11-27 10:56:50] [error] [ 3060] The specified procedure could not be
found.

[2018-11-27 10:56:50] [error] [ 3060] Failed creating Java C:\Program
Files\Java\jdk-11.0.1\bin\server\jvm.dll

[2018-11-27 10:56:50] [error] [ 3060] The specified procedure could not be
found.

[2018-11-27 10:56:50] [error] [ 3060] ServiceStart returned 1

[2018-11-27 10:56:50] [error] [ 3060] The specified procedure could not be
found.

[2018-11-27 10:56:50] [info]  [ 3208] Run service finished.

[2018-11-27 10:56:50] [info]  [ 3208] Commons Daemon procrun finished


Am Di., 27. Nov. 2018 um 10:50 Uhr schrieb Andi Meister <
blackpump12@googlemail.com>:

> Chris,
> I tried your suggestions, but it did not help. Still the same error.
> I will now try a complete remove of Java and Tomcat.
> Then install Java11 and after that install Tomcat9.
>
> Andre,
> I can report that in Tomcat 7 there is no service.bat etc.
> But in Tomcat 9 everything is there in the bin folder.
>
> Ralf
>
>
> Am Di., 27. Nov. 2018 um 09:47 Uhr schrieb André Warnier (tomcat) <
> aw@ice-sa.com>:
>
>> On 27.11.2018 01:49, Christopher Schultz wrote:
>> > -----BEGIN PGP SIGNED MESSAGE-----
>> > Hash: SHA256
>> >
>> > Andi,
>> >
>> > On 11/26/18 15:08, Andi Meister wrote:
>> >> Tomorrow I will try it on an other machine with no previous Tomcat
>> >> installed. But my problem is that I have to get it to run on this
>> >> machine. What could I do? First uninstall all jdks and Tomcats and
>> >> then install jdk11 and newest Tomcat?
>> >
>> > You might want to:
>> >
>> > 1. C:...\tomcat-7> bin\service.bat remove  (optional name parameter)
>> >
>> > 2. C:...\tomcat-9> bin\service.bat install (optional name parameter)
>> >
>> > Something might be broken in the service definition, and this should
>> > reset everything. Note that any of the system properties you might
>> > have defined in the existing service will be wiped-out by this
>> > process. So, you might want to take a few screenshots of the various
>> > configuration screens if you are using anything other than the plain
>> > defaults.
>> >
>> > Hmm... just realized that the service.bat file might not be included
>> > in the "installer" bundle. You might have to grab the ZIP bundle from
>> > the Tomcat downloads site to get those scripts.
>> >
>> > - -chris
>>
>> This may be the right moment to suggest that this (these ?) ZIP bundle(s)
>> could be
>> included by default, when running the installer (not unpacked, just
>> copied along and
>> dropped somewhere).  For as long as I can remember (which is getting
>> somewhat shorter
>> these days, but still goes back to tomcat 4.x), this has been an issue
>> which regularly
>> crops up with the Windows versions : whenever something goes wrong,
>> people are being
>> referred to files that they do not have, and it always takes a while to
>> explain, download
>> etc..
>> It would be easier if the files were already there anyway.
>> In the past, there may have been a concern for the extra size of the
>> download (nowadays
>> about 11 MB for each 32/64 bit version), but compared to many other
>> downloads nowadays,
>> this is still quite reasonable.
>> (And in fact, there are many common files, so not everything would have
>> to be downloaded.
>>   Also the 32-bit version is less useful these days.)
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>

Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Andi Meister <bl...@googlemail.com.INVALID>.
Chris,
I tried your suggestions, but it did not help. Still the same error.
I will now try a complete remove of Java and Tomcat.
Then install Java11 and after that install Tomcat9.

Andre,
I can report that in Tomcat 7 there is no service.bat etc.
But in Tomcat 9 everything is there in the bin folder.

Ralf


Am Di., 27. Nov. 2018 um 09:47 Uhr schrieb André Warnier (tomcat) <
aw@ice-sa.com>:

> On 27.11.2018 01:49, Christopher Schultz wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA256
> >
> > Andi,
> >
> > On 11/26/18 15:08, Andi Meister wrote:
> >> Tomorrow I will try it on an other machine with no previous Tomcat
> >> installed. But my problem is that I have to get it to run on this
> >> machine. What could I do? First uninstall all jdks and Tomcats and
> >> then install jdk11 and newest Tomcat?
> >
> > You might want to:
> >
> > 1. C:...\tomcat-7> bin\service.bat remove  (optional name parameter)
> >
> > 2. C:...\tomcat-9> bin\service.bat install (optional name parameter)
> >
> > Something might be broken in the service definition, and this should
> > reset everything. Note that any of the system properties you might
> > have defined in the existing service will be wiped-out by this
> > process. So, you might want to take a few screenshots of the various
> > configuration screens if you are using anything other than the plain
> > defaults.
> >
> > Hmm... just realized that the service.bat file might not be included
> > in the "installer" bundle. You might have to grab the ZIP bundle from
> > the Tomcat downloads site to get those scripts.
> >
> > - -chris
>
> This may be the right moment to suggest that this (these ?) ZIP bundle(s)
> could be
> included by default, when running the installer (not unpacked, just copied
> along and
> dropped somewhere).  For as long as I can remember (which is getting
> somewhat shorter
> these days, but still goes back to tomcat 4.x), this has been an issue
> which regularly
> crops up with the Windows versions : whenever something goes wrong, people
> are being
> referred to files that they do not have, and it always takes a while to
> explain, download
> etc..
> It would be easier if the files were already there anyway.
> In the past, there may have been a concern for the extra size of the
> download (nowadays
> about 11 MB for each 32/64 bit version), but compared to many other
> downloads nowadays,
> this is still quite reasonable.
> (And in fact, there are many common files, so not everything would have to
> be downloaded.
>   Also the 32-bit version is less useful these days.)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Mark Thomas <ma...@apache.org>.
On 27/11/2018 14:08, Eduardo Quintanilla wrote:
> A follow up question. When the option "Use default" is selected in the Tomcatw manager. Where is that value configured? I assumed it was JAVA_HOME.

It is the default Java version configured in the registry. From memory
(it is a long time since I looked at this so I might have misremembered
/ Oracle might have changed how it works) there is a Java plug-in that
gets added to the control panel that lets you select the default version
from among the installed versions.

Mark


> 
> Eduardo Quintanilla
> Software Developer 
> Block Networks 
> 
> -----Original Message-----
> From: Mark Thomas <ma...@apache.org> 
> Sent: martes, 27 de noviembre de 2018 4:23 a. m.
> To: users@tomcat.apache.org
> Subject: Re: [slightly OT] Re: Tomcat 9 does not work with Java 11
> 
> On 27/11/2018 08:47, André Warnier (tomcat) wrote:
>> On 27.11.2018 01:49, Christopher Schultz wrote:
> 
> <snip/>
> 
>>> Hmm... just realized that the service.bat file might not be included 
>>> in the "installer" bundle. You might have to grab the ZIP bundle from 
>>> the Tomcat downloads site to get those scripts.
>>>
>>> - -chris
>>
>> This may be the right moment to suggest that this (these ?) ZIP
>> bundle(s) could be included by default, when running the installer 
>> (not unpacked, just copied along and dropped somewhere).  For as long 
>> as I can remember (which is getting somewhat shorter these days, but 
>> still goes back to tomcat 4.x), this has been an issue which regularly 
>> crops up with the Windows versions : whenever something goes wrong, 
>> people are being referred to files that they do not have, and it 
>> always takes a while to explain, download etc..
>> It would be easier if the files were already there anyway.
>> In the past, there may have been a concern for the extra size of the 
>> download (nowadays about 11 MB for each 32/64 bit version), but 
>> compared to many other downloads nowadays, this is still quite reasonable.
>> (And in fact, there are many common files, so not everything would 
>> have to be downloaded.  Also the 32-bit version is less useful these 
>> days.)
> 
> https://bz.apache.org/bugzilla/show_bug.cgi?id=56323
> 
> It wasn't back-ported to 7.0.x. I'm not aware of of causing issues in 8.5.x or 9.0.x so it could be back-ported.
> 
> Mark
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


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


RE: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Eduardo Quintanilla <eq...@bnext.mx>.
A follow up question. When the option "Use default" is selected in the Tomcatw manager. Where is that value configured? I assumed it was JAVA_HOME.

Eduardo Quintanilla
Software Developer 
Block Networks 

-----Original Message-----
From: Mark Thomas <ma...@apache.org> 
Sent: martes, 27 de noviembre de 2018 4:23 a. m.
To: users@tomcat.apache.org
Subject: Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

On 27/11/2018 08:47, André Warnier (tomcat) wrote:
> On 27.11.2018 01:49, Christopher Schultz wrote:

<snip/>

>> Hmm... just realized that the service.bat file might not be included 
>> in the "installer" bundle. You might have to grab the ZIP bundle from 
>> the Tomcat downloads site to get those scripts.
>>
>> - -chris
> 
> This may be the right moment to suggest that this (these ?) ZIP
> bundle(s) could be included by default, when running the installer 
> (not unpacked, just copied along and dropped somewhere).  For as long 
> as I can remember (which is getting somewhat shorter these days, but 
> still goes back to tomcat 4.x), this has been an issue which regularly 
> crops up with the Windows versions : whenever something goes wrong, 
> people are being referred to files that they do not have, and it 
> always takes a while to explain, download etc..
> It would be easier if the files were already there anyway.
> In the past, there may have been a concern for the extra size of the 
> download (nowadays about 11 MB for each 32/64 bit version), but 
> compared to many other downloads nowadays, this is still quite reasonable.
> (And in fact, there are many common files, so not everything would 
> have to be downloaded.  Also the 32-bit version is less useful these 
> days.)

https://bz.apache.org/bugzilla/show_bug.cgi?id=56323

It wasn't back-ported to 7.0.x. I'm not aware of of causing issues in 8.5.x or 9.0.x so it could be back-ported.

Mark

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


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


Re: [slightly OT] Re: Tomcat 9 does not work with Java 11

Posted by Mark Thomas <ma...@apache.org>.
On 27/11/2018 08:47, André Warnier (tomcat) wrote:
> On 27.11.2018 01:49, Christopher Schultz wrote:

<snip/>

>> Hmm... just realized that the service.bat file might not be included
>> in the "installer" bundle. You might have to grab the ZIP bundle from
>> the Tomcat downloads site to get those scripts.
>>
>> - -chris
> 
> This may be the right moment to suggest that this (these ?) ZIP
> bundle(s) could be included by default, when running the installer (not
> unpacked, just copied along and dropped somewhere).  For as long as I
> can remember (which is getting somewhat shorter these days, but still
> goes back to tomcat 4.x), this has been an issue which regularly crops
> up with the Windows versions : whenever something goes wrong, people are
> being referred to files that they do not have, and it always takes a
> while to explain, download etc..
> It would be easier if the files were already there anyway.
> In the past, there may have been a concern for the extra size of the
> download (nowadays about 11 MB for each 32/64 bit version), but compared
> to many other downloads nowadays, this is still quite reasonable.
> (And in fact, there are many common files, so not everything would have
> to be downloaded.  Also the 32-bit version is less useful these days.)

https://bz.apache.org/bugzilla/show_bug.cgi?id=56323

It wasn't back-ported to 7.0.x. I'm not aware of of causing issues in
8.5.x or 9.0.x so it could be back-ported.

Mark

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