Hello Karsten, This think that "home '(null)'." in the line:
[debug] ( javajni.c:419 :apxCreateJava ) [11428] Loaded JVM DLL 'C:\Program Files\Eclipse Adoptium\jdk-21.0.3.9-hotspot\bin\server\jvm.dll', home '(null)'. means the JAVA_HOME environment variable is not set. Try setting it and see if that helps. Gary On Thu, Apr 10, 2025 at 4:04 PM Rost, Karsten <karsten.r...@aconnic.com> wrote: > > Hello all, > > I hope this reaches to intended audience, please advise if this is the wrong > channel. > I'm currently updating an application to tomcat 10 which runs as a service on > Windows. During service startup the JVM fails to load: > > [debug] ( prunsrv.c:2076:main ) [11376] Apache Commons > Daemon procrun log initialized. > [info] ( prunsrv.c:2084:main ) [11376] Apache Commons > Daemon procrun (1.4.1.0 64-bit) started. > [info] ( prunsrv.c:1930:docmdRunService ) [11376] Running Service > 'my_service'... > [debug] ( prunsrv.c:1681:serviceMain ) [11428] Inside > serviceMain()... > [debug] ( prunsrv.c:1127:reportServiceStatusE ) [11428] > reportServiceStatusE: dwCurrentState = 2 (SERVICE_START_PENDING), > dwWin32ExitCode = 0, dwWaitHint = 3000 milliseconds, > dwServiceSpecificExitCode = 0. > [info] ( prunsrv.c:1426:serviceStart ) [11428] Starting > service... > [debug] ( prunsrv.c:499 :setInprocEnvironmentOptions) [11428] Checking Java > options for environment variable requirements > ... > [debug] ( javajni.c:216 :__apxLoadJvmDll ) [11428] Explicit > RuntimeLib specified 'C:\Program Files\Eclipse > Adoptium\jdk-21.0.3.9-hotspot\bin\server\jvm.dll' > [debug] ( javajni.c:285 :__apxLoadJvmDll ) [11428] Adding Java bin > path to the PATH to fix loading of awt.dll: 'C:\Program Files\Eclipse > Adoptium\jdk-21.0.3.9-hotspot\bin' > [debug] ( javajni.c:291 :__apxLoadJvmDll ) [11428] Loading JVM DLL > 'C:\Program Files\Eclipse Adoptium\jdk-21.0.3.9-hotspot\bin\server\jvm.dll' > [debug] ( javajni.c:419 :apxCreateJava ) [11428] Loaded JVM DLL > 'C:\Program Files\Eclipse Adoptium\jdk-21.0.3.9-hotspot\bin\server\jvm.dll', > home '(null)'. > [debug] ( javajni.c:424 :apxCreateJava ) [11428] > JNI_GetCreatedJavaVMs... > [debug] ( javajni.c:822 :apxJavaInitialize ) [14284] JVM Option[0] > -Dcatalina.base=C:\application\apache-tomcat > ... > [error] ( javajni.c:833 :apxJavaInitialize ) [14284] CreateJavaVM > Failed with error [-6] > [error] ( javajni.c:833 :apxJavaInitialize ) [14284] Das System kann > die angegebene Datei nicht finden. <File Not Found> > [debug] ( javajni.c:1092:__apxJavaWorkerThread ) [14284] Java worker > thread finished : with status = 2 > [error] ( prunsrv.c:1487:serviceStart ) [11428] Failed to start > Java > [error] ( prunsrv.c:1862:serviceMain ) [11428] ServiceStart > returned 4. > ... > > I have already verified the Paths and can even confirm that this specific > jvm.dll contains 'JNI_CreateJavaVM'. This issue can be reproduced on Windows > 11 and Windows Server 2019. > I'd be grateful for any advice on the matter, to me is appears like it should > work. > > Best regards, > Karsten > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org