[resolved] TOS: Export Job, Exception in thread "main" java.lang.NoClassDefFound
Hello
Since I am using TOS 4.2.2, it is not possible to run an exported job. I always get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/api/TalendJob
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
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)
Caused by: java.lang.ClassNotFoundException: routines.system.api.TalendJob
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)
... 12 more
Could not find the main class: ted.exporttest_0_1.exporttest. Program will exit.
I tried also the version 5.0.0.M1_r64233, but the same error appears.
Thanks for any hint to get this working... I need as soon as possible a solution.
Cu, Roger
Exception in thread "main" java.lang.NoClassDefFoundError: routines/system/api/TalendJob
Is it a custom routine? Before you export the job script, right click on the job name, and select 'set up dependencies routine' option, and see if the user routine is imported.
Best regards
Shong
Hi shong
No, It is no customer routine. I do not use dependencies for this job at all... It is only a test job with a generator and tLogRow on it... (see screenshot)
The missing file is actually present in the lib/systemRoutines.jar file, but it could not be found... sounds like a classpath issue. How can I fix this?