Problem with WebService job

One Star

Problem with WebService job

Hi,
I have created a Talend job that uses tWebService component.
When I run this job from TOS, it runs normaly.
But, when I export it in order to run on Linux, I get the following Error :
Exception in component tWebService_8
java.lang.IllegalStateException: Unable to create schema compiler
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:264)
at org.talend.webservice.helper.ServiceInvokerHelper.createClient(ServiceInvokerHelper.java:142)
at org.talend.webservice.helper.ServiceInvokerHelper.getClient(ServiceInvokerHelper.java:134)
at org.talend.webservice.helper.ServiceInvokerHelper.invoke(ServiceInvokerHelper.java:234)
at oasis.gereintervenant_0_1.GereIntervenant.tFileInputDelimited_3Process(GereIntervenant.java:2816)
at oasis.gereintervenant_0_1.GereIntervenant.runJobInTOS(GereIntervenant.java:3828)
at oasis.gereintervenant_0_1.GereIntervenant.main(GereIntervenant.java:3563)
Caused by: javax.xml.bind.JAXBException
- with linked exception:

at org.apache.cxf.jaxb.JAXBUtils.createSchemaCompiler(JAXBUtils.java:624)
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:262)
... 6 more
Caused by: java.lang.ClassNotFoundException: com.sun.tools.internal.xjc.api.XJC
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at org.apache.cxf.jaxb.JAXBUtils.createSchemaCompiler(JAXBUtils.java:617)
... 7 more

I use JDK 1.6.0_05 in TOS.
On Linux, java -version says : java version "1.6.0_01"
I don't know if I can change java version because others projects are hosted on this machine.
Do you have some ideas about my issue ?
Thanks a lot
best regards
Laurent
Moderator

Re: Problem with WebService job

Hi,
Could you please indicate the build version you are using? The required tools.jar file is missing, it seems you have problem during the export of job script.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Problem with WebService job

Hi,
I use TOS 5.0.2.r78327
thanks
Laurent
One Star

Re: Problem with WebService job

I specify : Build id: r78327-20120216-0244
Moderator

Re: Problem with WebService job

Hi,
Caused by: javax.xml.bind.JAXBException

Usually, this issue is caused by wrong environments configuration.
The tWebservice works with cxf.jar, and cxf must work with JDK.(not JRE).
Did you add the system environment variable PATH to include the default java directory path - C:\Program Files\Java\jdk1.6.xxx\bin\?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Problem with WebService job

Thanks a lot Sabrina,
Actually, WS is disable.
So, I can't check this proposed solution :-(
I modify my path and I run my job as soon as possible.
Best regards
Laurent
Moderator

Re: Problem with WebService job

Hi lcamou,
Any update for your issue?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Problem with WebService job

Hi lcamou,
Any update for your issue?
Best regards
Sabrina

Hi Sabrina ,
I am getting the same problem in windows environment?
My Build id: V5.6.1_20141207_1530.
Thanks and Regards
Jayant Jain
One Star

Re: Problem with WebService job

I'm experiencing the same issue on talend 6.1.0
Trying to push some changes through the SOAP Webservice getting an error :
Exception in component tWebService_1
java.lang.NullPointerException
    at org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:187)
    at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:141)
    at org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:136)
    at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.compileJavaSrc(DynamicClientFactory.java:611)
    at org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:370)
    at org.talend.webservice.helper.ServiceInvokerHelper.createClient(ServiceInvokerHelper.java:144)
    at org.talend.webservice.helper.ServiceInvokerHelper.getClient(ServiceInvokerHelper.java:135)
    at org.talend.webservice.helper.ServiceInvokerHelper.invoke(ServiceInvokerHelper.java:236)
    at alim_logicar.exportxml_0_1.exportXML.tMysqlInput_1Process(exportXML.java:2696)
    at alim_logicar.exportxml_0_1.exportXML.runJobInTOS(exportXML.java:3186)
    at alim_logicar.exportxml_0_1.exportXML.main(exportXML.java:2978)
disconnected