JobServer 7.1.1 fails to start as a Windows Service with the exception 'java.lang.ClassNotFoundException: org.talend.daikon.security.CryptoHelper'

Problem Description

Talend Remote Job Server 7.1.1 fails to start as a Windows Service.

 

In the file JOBSERVER_HOME\TalendServices\tmp\err_-2742800145553081779$1542053703739 you may see the following exception:

Exception in thread "main" java.lang.NoClassDefFoundError: org/talend/daikon/security/CryptoHelper
 at org.talend.remote.jobserver.server.ProductDateHelper.<init>(ProductDateHelper.java:58)
 at org.talend.remote.jobserver.server.ProductDateHelper.getInstance(ProductDateHelper.java:50)
 at org.talend.remote.jobserver.server.TalendJobServer.<init>(TalendJobServer.java:159)
 at org.talend.remote.jobserver.server.TalendJobServerMain.main(TalendJobServerMain.java:47)
Caused by: java.lang.ClassNotFoundException: org.talend.daikon.security.CryptoHelper
 at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 ... 4 more

 

Root Cause

Required JAR files are missing from the JobServer wrapper.conf file.

 

Solution

Edit the JOBSERVER_HOME\TalendServices\conf\wrapper.conf file and add the missing wrapper.java.classpath.xx lines.

After modification, the file should contain:

#********************************************************************
# genConfig: further Properties generated by genConfig
#********************************************************************
placeHolderSoGenPropsComeHere=
wrapper.java.command = C:/Program Files/Java/JDK18~1.0_1/jre/bin/java.exe
wrapper.java.additional.1 = -Dcom.sun.management.jmxremote
wrapper.java.additional.2 = -Djava.library.path=./sigar-bin/lib
wrapper.java.additional.3 = -Dtalend_props=C:\\talend\\7.1.1\\jobserver\\agent\\conf\\TalendJobServer.properties
wrapper.java.classpath.1 = ./
wrapper.java.classpath.2 = ./lib/slf4j-api-1.7.12.jar
wrapper.java.classpath.3 = ./lib/slf4j-log4j12-1.7.12.jar
wrapper.java.classpath.4 = ./lib/log4j-1.2.17.jar
wrapper.java.classpath.5 = ./lib/jmxremote_optional.jar
wrapper.java.classpath.6 = ./lib/commons-io-2.2.jar
wrapper.java.classpath.7 = ./lib/commons-lang-2.6.jar
wrapper.java.classpath.8 = ./lib/commons-logging-1.2.jar
wrapper.java.classpath.9 = ./lib/jeromq-0.4.2.jar
wrapper.java.classpath.10 = ./lib/httpclient-4.5.3.jar
wrapper.java.classpath.11 = ./lib/httpcore-4.4.6.jar
wrapper.java.classpath.12 = ./sigar-bin/lib/sigar.jar
wrapper.java.classpath.13 = ./lib/org.talend.libraries.jmx-7.1.1.jar
wrapper.java.classpath.14 = ./lib/org.talend.monitoring-7.1.1.jar
wrapper.java.classpath.15 = ./lib/org.talend.monitoring.server-7.1.1.jar
wrapper.java.classpath.16 = ./lib/org.talend.remote.commons-7.1.1.jar
wrapper.java.classpath.17 = ./lib/org.talend.remote.jobserver.commons-7.1.1.jar
wrapper.java.classpath.18 = ./lib/org.talend.remote.jobserver.server.standalone-7.1.1.jar
wrapper.java.classpath.19 = ./lib/org.talend.remote.server-7.1.1.jar
wrapper.java.classpath.20 = ./lib/org.talend.utils-7.1.1.jar
wrapper.java.classpath.21 = ./lib/org.talend.utils.minimal-7.1.1.jar
wrapper.java.classpath.22 = ./lib/daikon-0.27.0.jar
wrapper.java.classpath.23 = ./lib/daikon-signature-verifier-0.27.0.jar
wrapper.java.classpath.24 = ./lib/commons-codec-1.9.jar
wrapper.java.classpath.25 = ./lib/jeromq-0.4.2.jar
Version history
Revision #:
5 of 5
Last update:
‎11-26-2018 10:52 AM
Updated by:
 
Contributors