ClassCastException while calling tWebService

Five Stars

ClassCastException while calling tWebService



I have a twebservice component which runs fine with in the studio environment. However, when i deploy to a linux server, i get an ClassCastException which seems to be originating from the apache cxf component.


Stracktrace :


2018-01-25 18:54:01,192 WARN [org.apache.cxf.bus.extension.ExtensionManagerImpl] Loading Bus extensions via META-INF/cxf/bus-extensions.xml (found url jar:file:/data5/TalendEE/jboss-4.2.2.GA/server/default/tmp/deploy/tmp5616080712500284711tem.ear-contents/lib/z.cxf-2.2.5.jar!/META-INF/cxf/bus-extensions.xml) is deprecated. Use META-INF/cxf/bus-extensions.txt instead.
2018-01-25 18:54:01,464 WARN [org.apache.cxf.common.injection.ResourceInjector] method annotated by @PostConstruct throws exception when invoked
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.apache.cxf.common.injection.ResourceInjector.invokePostConstruct(
at org.apache.cxf.common.injection.ResourceInjector.construct(
at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(
at org.apache.cxf.bus.extension.ExtensionManagerImpl.initialize(
at org.apache.cxf.bus.extension.ExtensionManagerBus.doInitializeInternal(
at org.apache.cxf.bus.CXFBusImpl.initialize(
at org.apache.cxf.bus.CXFBusFactory.createBus(
at org.apache.cxf.bus.CXFBusFactory.createBus(
at org.apache.cxf.bus.CXFBusFactory.createBus(
at org.apache.cxf.BusFactory.getDefaultBus(
at org.apache.cxf.BusFactory.createThreadBus(
at org.apache.cxf.BusFactory.getThreadDefaultBus(
at org.apache.cxf.BusFactory.getThreadDefaultBus(


Re: ClassCastException while calling tWebService


The job design should be Ok without error if it runs fine with in the studio environment. It looks like a build problem.

Did you build your job as a standalone job and execute it (.sh file)on your linux server? Could you please show us your build job screenshot?

Best regards



Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: ClassCastException while calling tWebService

Here is the job screenshot.


screenshot_job.PNGoccurs in the twebservice component

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables


How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration


Downloads and Trials

Test drive Talend's enterprise products.