This article explains the common causes of this problem and offers troubleshooting advice and possible solutions.
By default, scripts (start_rs.bat for Windows or stop_rs.sh for Linux) must be run from the Job server-install-dir directory. If you run the script from another location, you will get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger at org.talend.remote.jobserver.server.TalendJobServer
The problem is that the required Java class cannot be found because the script is being run from another location.
To fix the problem, set the variable MY_ROOT_PATH with the full path of the Jobserver directory following these steps:
Open the script file (start_rs.bat for Windows or stop_rs.sh for Linux) and search for the following line in the file:
Edit this line so that MY_ROOT_PATH is set to your Job Server installation directory.
set MY_ROOT_PATH=your Job Server install dir\
Be sure to include the final delimiter in the file path (backslash "\" for Windows or forward slash "/" for Linux).