Build engine windows service not starting
I can run the service in debug/run mode with no trouble at all. However when I install the service I get an authentication error.
I'm using the Java Service launcher v0.99.
java.lang.NoClassDefFoundError: com/roeschter/jsl/TelnetEcho
Caused by: java.lang.ClassNotFoundException: com.roeschter.jsl.TelnetEcho
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Mar 22, 2012 4:00:13 PM org.apache.commons.httpclient.HttpMethodDirector isAuthenticationNeeded
INFO: Authentication requested but doAuthentication is disabled
I'm using the Java Service launcher v0.99.
java.lang.NoClassDefFoundError: com/roeschter/jsl/TelnetEcho
Caused by: java.lang.ClassNotFoundException: com.roeschter.jsl.TelnetEcho
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Mar 22, 2012 4:00:13 PM org.apache.commons.httpclient.HttpMethodDirector isAuthenticationNeeded
INFO: Authentication requested but doAuthentication is disabled
Accepted answer
It's not in these instructions but, as I found out through trial and error, you also have to comment out the following sections:
I also had to change the jvmtype to be client (default is server) as my java jvm only had a client folder.
;Explicitely call this method and wait for it to return before setting the service to status running
;This method will be called before the main method
confirmrunclass=com.roeschter.jsl.TelnetEcho
confirmrunmethod=confirmRunning
confirmrunsignature=()V
confirmrunparams=
;Uncomment the premainclass to enable
;premainclass=com/roeschter/jsl/PreMainScheduler
premainmethod=run
premainsignature=()I
premain.modules=threaddump
premain.threaddump.class=com.roeschter.jsl.ThreadDumpListener
premain.threaddump.method=start
premain.threaddump.wait=3000
premain.threaddump.critical=no
premain.threaddump.interface=127.0.0.1
I also had to change the jvmtype to be client (default is server) as my java jvm only had a client folder.
;Be careful what JVM is actullay installed and used before you report a bug on this feature.
jvmtype=classic
;jvmtype=server,client,hotspot,classic
6 other answers
I was following these instructions:
https://jazz.net/wiki/bin/view/Main/JbeAsAWindowsService
When I run/debug the jsl.exe I do not get the message:
Mar 22, 2012 4:00:13 PM org.apache.commons.httpclient.HttpMethodDirector isAuthenticationNeeded
INFO: Authentication requested but doAuthentication is disabled
However when its run as a windows service it doesn't work.
https://jazz.net/wiki/bin/view/Main/JbeAsAWindowsService
When I run/debug the jsl.exe I do not get the message:
Mar 22, 2012 4:00:13 PM org.apache.commons.httpclient.HttpMethodDirector isAuthenticationNeeded
INFO: Authentication requested but doAuthentication is disabled
However when its run as a windows service it doesn't work.
Urgh! Why can't things ever be easy?
I'm now trying to install a service on a Win Server 2008 (64bit) machine and having trouble loading the JVM.dll. The only error I seem to be getting is 'Error loading: D:\Program Files\Java\jdk1.6.0_23\jre\bin\client\jvm.dll.
I verified the path to the file is correct.
Has anyone else been able to get this to work on a 64bit machine?
I'm now trying to install a service on a Win Server 2008 (64bit) machine and having trouble loading the JVM.dll. The only error I seem to be getting is 'Error loading: D:\Program Files\Java\jdk1.6.0_23\jre\bin\client\jvm.dll.
I verified the path to the file is correct.
Has anyone else been able to get this to work on a 64bit machine?
Environment Windows 7, JSL v0.99o, RTC 4.0.6
I followed the WiKi instructions and when starting I get this error message:
Now starting JVM
:1397740935: java starting 1
:1397740936: Searching for JVM path in ini file
:8344095282464544136: Searching for co-located JVM
:8344095282464544136: Searching JVM in sub directory
:8344095282464544136: Searching JVM in registry
Error opening registry key 'Software\JavaSoft\Java Runtime Environment'