Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

1 vote


Accepted answer

Permanent link
It's not in these instructions but, as I found out through trial and error, you also have to comment out the following sections:

;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
Jeff Foege selected this answer as the correct answer

0 votes


6 other answers

Permanent link
I just installed the service for jsl64.exe on Windows Server 2012 and it processed a build request.
First I got the message Exception in thread: "Thread-1" but after commenting out the additional lines mentioned in this post it went fine.

1 vote


Permanent link
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.

0 votes


Permanent link
I wanted to thank your for your reply!! It did the trick! I'm not sure if it did anything but I also increased the string buffer.

I wanted to leave a comment on the wiki page that has these instructions but there wasn't a way to do it.

0 votes


Permanent link
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?

0 votes


Permanent link
There might be a problem using the jsl64.exe. Running the windows service as 32bit seems to work just fine.

0 votes


Permanent link
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'

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 22 '12, 6:20 p.m.

Question was seen: 8,179 times

Last updated: Apr 17 '14, 9:25 a.m.

Confirmation Cancel Confirm