Hi,
I have exported a Job created with TIS 4.2.2|r63143.
When I deployed my Job inside my server and when I launch it ( with a cron tasks ) I have this 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: projet_albin.my_job.my_job. Program will exit.
That's very strange because when I make the same export with a TOS version, I have no problem when I execute my Job.
Some idea ?
Thanks.
Hi all, there is a bug in the 4.2.2 job's extraction !! If you choose only Unix version, the classpath.jar is incorrect !! To by pass the pb you can generate both (win + unix) then the classpath.jar generated will be ok !!!! Regards, etl_talend
Hi albin
The job is not exported completely, some of class file are missing. To check if the job runs fine in a TIS studio and try to regenerate it again.
Best regards
Shong
Hi all, there is a bug in the 4.2.2 job's extraction !! If you choose only Unix version, the classpath.jar is incorrect !! To by pass the pb you can generate both (win + unix) then the classpath.jar generated will be ok !!!! Regards, etl_talend
Am trying to export a job but files are missing??? I tried to export it as UNIX project, Windows or Any but I still get the same issue!!!! Is there a way to export only the files you need including java files????????????? Thank you in advance, Bujar