Hello,

> -----Ursprüngliche Nachricht-----
> Von: Heidt, Larry <larry.he...@dematic.com.INVALID>
> Gesendet: Montag, 19. September 2022 23:15
> An: users@tomcat.apache.org
> Betreff: which missing file prevents tomcat 10 from starting as windows
> service ?
> 
> The "...\apache-tomcat-10.0.23\bin\service.bat install" command succeeds,
> however starting Tomcat from Windows Services fails, with the
> commons_daemon logging below indicating "The system cannot find the file
> specified."
> 
> Notes:
> 
> 
>   1.  All files/folders referenced in the logging below exist, except the
> "endorsed" subfolder specified in the following:   '-
> Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'
> 
> 
>   1.  Adding "--JavaHome "C:\Dematic\Programs\AmazonCorretto\jdk11" to
> the "service.bat install" command line does not eliminate the "'(null)'" 
> below,
> and the service fails with the same error
> 
> 
>   *   "Loaded JVM DLL
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home
> '(null)'"
> 
> 
>   1.  Starting Tomcat10.exe in console mode fails with the same error and
> very similar logging, except mainly for the following:
> 
> 
>   *   "Loaded JVM DLL
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home
> 'C:\Dematic\Programs\AmazonCorretto\jdk11'"
> 
> 
>   1.  The exact Java version used is 11.0.16.8.1
> 
> 
> Is there any way to determine exactly which file cannot be found ?
> 
> Are there one or more likely culprits for the file which cannot be found ?
> 
> Thank you in advance for any assistance.
> 
> 
> commons_daemon.yyyy-mm-dd.log:
> 
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:1994) [11004] Apache Commons
> Daemon procrun log initialized.
> [2022-09-19 13:09:06] [info]  ( prunsrv.c:2002) [11004] Apache Commons
> Daemon procrun (1.3.1.0 64-bit) started.
> [2022-09-19 13:09:06] [info]  ( prunsrv.c:1906) [11004] Running Service
> 'Tomcat10'...
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:1677) [10552] Inside
> serviceMain()...
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:1123) [10552]
> reportServiceStatusE: dwCurrentState = 2 (SERVICE_START_PENDING),
> dwWin32ExitCode = 0, dwWaitHint = 3000 milliseconds,
> dwServiceSpecificExitCode = 0.
> [2022-09-19 13:09:06] [info]  ( prunsrv.c:1422) [10552] Starting service...
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:497 ) [10552] Checking Java
> options for environment variable requirements
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-Dcatalina.base=c:\Dematic\apache-
> tomcat-10.0.23'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for '-
> Djava.util.logging.config.file=c:\Dematic\apache-tomcat-
> 10.0.23\conf\logging.properties'
> [2022-09-19 13:09:06] [debug] ( prunsrv.c:501 ) [10552] Checking
> environment variable requirements for ' -
> Dirista.log.dir=C:\Dematic\Foundation\Source\log -DSERVER_ID=Enterprise'
> [2022-09-19 13:09:06] [debug] ( javajni.c:216 ) [10552] Explicit RuntimeLib
> specified 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
> [2022-09-19 13:09:06] [debug] ( javajni.c:280 ) [10552] Adding Java bin path
> to the PATH to fix loading of awt.dll:
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin'
> [2022-09-19 13:09:06] [debug] ( javajni.c:286 ) [10552] Loading JVM DLL
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll'
> [2022-09-19 13:09:06] [debug] ( javajni.c:414 ) [10552] Loaded JVM DLL
> 'C:\Dematic\Programs\AmazonCorretto\jdk11\bin\server\jvm.dll', home
> '(null)'.
> [2022-09-19 13:09:06] [debug] ( javajni.c:419 ) [10552]
> JNI_GetCreatedJavaVMs...
> [2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[0] -
> Dcatalina.home=c:\Dematic\apache-tomcat-10.0.23
> [2022-09-19 13:09:06] [debug] ( javajni.c:817 ) [ 7652] JVM Option[1] -
> Dcatalina.base=c:\Dematic\apache-tomcat-10.0.23
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[2] -
> Dignore.endorsed.dirs=c:\Dematic\apache-tomcat-10.0.23\endorsed
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[3] -
> Djava.io.tmpdir=c:\Dematic\apache-tomcat-10.0.23\temp
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[4] -
> Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[5] -
> Djava.util.logging.config.file=c:\Dematic\apache-tomcat-
> 10.0.23\conf\logging.properties
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[6]  -
> Dirista.log.dir=C:\Dematic\Foundation\Source\log -DSERVER_ID=Enterprise
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[7] --add-
> opens=java.base/java.lang=ALL-UNNAMED
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[8] --add-
> opens=java.base/java.io=ALL-UNNAMED
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[9] --add-
> opens=java.base/java.util=ALL-UNNAMED
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[10] --add-
> opens=java.base/java.util.concurrent=ALL-UNNAMED
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[11] --add-
> opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[12] -
> Djava.class.path=c:\Dematic\apache-tomcat-
> 10.0.23\bin\bootstrap.jar;c:\Dematic\apache-tomcat-10.0.23\bin\tomcat-
> juli.jar
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[13] exit
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[14] abort
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[15] -
> Xms128m
> [2022-09-19 13:09:07] [debug] ( javajni.c:817 ) [ 7652] JVM Option[16] -
> Xmx256m
> [2022-09-19 13:09:07] [error] ( javajni.c:828 ) [ 7652] CreateJavaVM Failed
> with error [-1]
> [2022-09-19 13:09:07] [error] ( javajni.c:828 ) [ 7652] The system cannot find
> the file specified.
> [2022-09-19 13:09:07] [debug] ( javajni.c:1087) [ 7652] Java worker thread
> finished : with status = 2
> [2022-09-19 13:09:07] [error] ( prunsrv.c:1483) [10552] Failed to start Java
> [2022-09-19 13:09:07] [error] ( prunsrv.c:1840) [10552] ServiceStart returned
> 4.
> [2022-09-19 13:09:07] [debug] ( prunsrv.c:1123) [10552]
> reportServiceStatusE: dwCurrentState = 1 (SERVICE_STOPPED),
> dwWin32ExitCode = 1066, dwWaitHint = 0 milliseconds,
> dwServiceSpecificExitCode = 4.
> [2022-09-19 13:09:07] [info]  ( prunsrv.c:1908) [11004] Run service finished.
> [2022-09-19 13:09:07] [info]  ( prunsrv.c:2086) [11004] Apache Commons
> Daemon procrun finished.


You could use procmon to figure out which file is missing. You need to add 
filters to prevent getting overwhelmed by the number of file IOs.
Does calling java.exe succeed?

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

Reply via email to