I did had Java 8/15 already on my local system before Java 16,17 came out
and for my migrations the difference between 15, 16 or 17 doesn't really
matter. So I started with what I got instead of installing the latest LTS
version.

Anyway the issue was due to a bunch of JVM options that are no longer
supported since java 8.

Sincerely,

J.P.

-----Original Message-----
From: logo <l...@kreuser.name>
Sent: dinsdag 19 oktober 2021 15:45
To: Tomcat Users List <users@tomcat.apache.org>
Cc: Jean-Pierre Urkens <jean-pierre.urk...@devoteam.com.invalid>
Subject: Re: Issue running Tomcat-8.5.72 with JDK15 under windows as a
service

Hi Jean Pierre,


Am 2021-10-19 14:57, schrieb Jean-Pierre Urkens:
> I am verifying a migration from JDK8 to JDK15 and wanted to setup a
> Tomcat
> 8.5 server environment for this test (similar to the Tomcat8.5 with
> JDK8
> we have running for the moment).

certainly not related to your problem, but why are you trying an EOL
version?

Java 15 is out of support since September 2020. Java 17 is out now and the
new LTS version.

Just my 2cts.

Peter

> I installed the instance as a service under my local (test) windows
> environment and configured the JVM  through the java tab. When
> starting the service the tomcat deamon fails with:
>
>        CreateJavaVM Failed with error [-6], The system cannot find the
> file specified.
>
> References on the net seem to indicate that the problem is with the
> JVM setting but the location ' C:\Program
> Files\Java\jdk-15.0.1\bin\server\jvm.dll' is correct.
> Below the daemon log which shows all JVM options and -D environment
> variables set:
>
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:1892) [61340] Apache Commons
> Daemon procrun log initialized.
> [2021-10-19 14:35:23] [info]  ( prunsrv.c:1896) [61340] Apache Commons
> Daemon procrun (1.2.4.0 64-bit) started.
> [2021-10-19 14:35:23] [info]  ( prunsrv.c:1806) [61340] Running
> Service 'T8N6'...
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:1577) [59044] Inside
> ServiceMain...
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:1032) [59044]
> reportServiceStatusE: dwCurrentState = 2, dwWin32ExitCode = 0,
> dwWaitHint = 3000, dwServiceSpecificExitCode = 0.
> [2021-10-19 14:35:23] [info]  ( prunsrv.c:1325) [59044] Starting
> service...
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:496 ) [59044] Checking Java
> options for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Dcatalina.home=f:\Tools\apache-tomcat-8.5.72' for environment
> variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Dcatalina.base=f:\Tools\apache-tomcat-8.5.72\nodes\node6' for
> environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Dprofile=local' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Dspring.profiles.active=local' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djava.endorsed.dirs=' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djava.io.tmpdir=f:\Tools\apache-tomcat-8.5.72\nodes\node6\temp' for
> environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
> for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djava.util.logging.config.file=f:\Tools\apache-tomcat-8.5.72\nodes\n
> ode6 \conf\logging.properties' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.
> inte rnal.jaxp.DocumentBuilderFactoryImpl' for environment variable
> requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.intern
> al.j axp.SAXParserFactoryImpl' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.int
> erna l.xsltc.trax.TransformerFactoryImpl' for environment variable
> requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djdk.tls.ephemeralDHKeySize=2048' for environment variable
> requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djdk.tls.useExtendedMasterSecret=false' for environment variable
> requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djdk.tls.allowLegacyResumption=true' for environment variable
> requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Djdk.tls.allowLegacyMasterSecret=false' for environment variable
> requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Xms512m' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Xmx1024m' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-XX:CompileThreshold=8000' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-XX:+UseConcMarkSweepGC' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-XX:+CMSParallelRemarkEnabled' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-XX:+UseCMSInitiatingOccupancyOnly' for environment variable
> requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-XX:CMSInitiatingOccupancyFraction=70' for environment variable
> requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-XX:+ScavengeBeforeFullGC' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-XX:+CMSScavengeBeforeRemark' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-XX:+HeapDumpOnOutOfMemoryError' for environment variable
> requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-Xrunjdwp:transport=dt_socket,address=8282,server=y,suspend=n' for
> environment variable requirements
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:500 ) [59044] Checking
> '-XX:HeapDumpPath=f:\Tools\apache-tomcat-8.5.72\nodes\node6\logs\`date
> `.hp rof' for environment variable requirements
> [2021-10-19 14:35:23] [debug] ( javajni.c:216 ) [59044] Explicit
> RuntimeLib specified 'C:\Program
> Files\Java\jdk-15.0.1\bin\server\jvm.dll'
> [2021-10-19 14:35:23] [debug] ( javajni.c:280 ) [59044] Adding Java
> bin path to the PATH to fix loading of awt.dll: 'C:\Program
> Files\Java\jdk-15.0.1\bin'
> [2021-10-19 14:35:23] [debug] ( javajni.c:286 ) [59044] Loading JVM
> DLL 'C:\Program Files\Java\jdk-15.0.1\bin\server\jvm.dll'
> [2021-10-19 14:35:23] [debug] ( javajni.c:414 ) [59044] Loaded JVM DLL
> 'C:\Program Files\Java\jdk-15.0.1\bin\server\jvm.dll', home ''.
> [2021-10-19 14:35:23] [debug] ( javajni.c:419 ) [59044]
> JNI_GetCreatedJavaVMs...
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[0]
> -Dcatalina.home=f:\Tools\apache-tomcat-8.5.72
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[1]
> -Dcatalina.base=f:\Tools\apache-tomcat-8.5.72\nodes\node6
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[2]
> -Dprofile=local
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[3]
> -Dspring.profiles.active=local
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[4]
> -Djava.endorsed.dirs=
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[5]
> -Djava.io.tmpdir=f:\Tools\apache-tomcat-8.5.72\nodes\node6\temp
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[6]
> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[7]
> -Djava.util.logging.config.file=f:\Tools\apache-tomcat-8.5.72\nodes\no
> de6\
> conf\logging.properties
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[8]
> -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.i
> nter
> nal.jaxp.DocumentBuilderFactoryImpl
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[9]
> -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.interna
> l.ja
> xp.SAXParserFactoryImpl
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[10]
> -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.inte
> rnal
> .xsltc.trax.TransformerFactoryImpl
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[11]
> -Djdk.tls.ephemeralDHKeySize=2048
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[12]
> -Djdk.tls.useExtendedMasterSecret=false
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[13]
> -Djdk.tls.allowLegacyResumption=true
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[14]
> -Djdk.tls.allowLegacyMasterSecret=false
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[15]
> -Xms512m
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[16]
> -Xmx1024m
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[17]
> -XX:CompileThreshold=8000
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[18]
> -XX:+UseConcMarkSweepGC
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[19]
> -XX:+CMSParallelRemarkEnabled
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[20]
> -XX:+UseCMSInitiatingOccupancyOnly
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[21]
> -XX:CMSInitiatingOccupancyFraction=70
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[22]
> -XX:+ScavengeBeforeFullGC
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[23]
> -XX:+CMSScavengeBeforeRemark
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[24]
> -XX:+HeapDumpOnOutOfMemoryError
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[25]
> -Xrunjdwp:transport=dt_socket,address=8282,server=y,suspend=n
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[26]
> -XX:HeapDumpPath=f:\Tools\apache-tomcat-8.5.72\nodes\node6\logs\`date`
> .hpr
> of
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[27]
> -Djava.class.path=f:\Tools\apache-tomcat-8.5.72\bin\bootstrap.jar;f:\T
> ools
> \apache-tomcat-8.5.72\bin\tomcat-juli.jar;f:\Tools\apache-tomcat-8.5.7
> 2\no
> des\node6\lib\classes
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[28]
> exit
> [2021-10-19 14:35:23] [debug] ( javajni.c:817 ) [62700] Jvm Option[29]
> abort
> [2021-10-19 14:35:23] [error] ( javajni.c:828 ) [62700] CreateJavaVM
> Failed with error [-6]
> [2021-10-19 14:35:23] [error] ( javajni.c:828 ) [62700] The system
> cannot find the file specified.
> [2021-10-19 14:35:23] [debug] ( javajni.c:1087) [62700] Java worker
> thread finished : with status = 2
> [2021-10-19 14:35:23] [error] ( prunsrv.c:1386) [59044] Failed to
> start Java
> [2021-10-19 14:35:23] [error] ( prunsrv.c:1740) [59044] ServiceStart
> returned 4.
> [2021-10-19 14:35:23] [debug] ( prunsrv.c:1032) [59044]
> reportServiceStatusE: dwCurrentState = 1, dwWin32ExitCode = 1066,
> dwWaitHint = 0, dwServiceSpecificExitCode = 4.
> [2021-10-19 14:35:23] [info]  ( prunsrv.c:1808) [61340] Run service
> finished.
> [2021-10-19 14:35:23] [info]  ( prunsrv.c:1980) [61340] Apache Commons
> Daemon procrun finished.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org

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

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

Reply via email to