<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260144#M41375</link>
    <description>Hi,
&lt;BR /&gt;This thread is from August 2012. Will you please create another one to address your specific issue?
&lt;BR /&gt;
&lt;BR /&gt;Kind Regards,
&lt;BR /&gt;Ben</description>
    <pubDate>Fri, 06 Dec 2013 14:33:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-06T14:33:36Z</dc:date>
    <item>
      <title>ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260134#M41365</link>
      <description>&lt;P&gt;I have deployed my first real world ESB Service to our production server. I can get the wsdl just fine, but calling the actual service doesn't work, instead I get the following error:&lt;BR /&gt;CurrentPriceListsOperation has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: org.dom4j.tree.DefaultDocument cannot be cast to org.dom4j.Document&lt;BR /&gt;What could be causing this? Is there some way I could figure out what step in my job is causing the error?&lt;BR /&gt;Here's the full exception&lt;BR /&gt;14:08:26,261 | WARN | qtp26362458-39 | ache.cxf.common.logging.LogUtils 405 | - - | Application {&lt;A href="http://www.talend.org/service/}CurrentPriceLists#{http://www.talend.org/service/}CurrentPriceListsOperation" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://www.talend.org/service/}CurrentPriceLists#{http://www.talend.org/service/}CurrentPriceListsOperation&lt;/A&gt; has thrown exception, unwinding now&lt;BR /&gt;org.apache.cxf.interceptor.Fault: org.dom4j.tree.DefaultDocument cannot be cast to org.dom4j.Document&lt;BR /&gt;at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)&lt;BR /&gt;at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:213)&lt;BR /&gt;at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128)&lt;BR /&gt;at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178)&lt;BR /&gt;at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:64)&lt;BR /&gt;at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)&lt;BR /&gt;at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)&lt;BR /&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)&lt;BR /&gt;at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(Unknown Source)&lt;BR /&gt;at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)&lt;BR /&gt;at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)&lt;BR /&gt;at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)&lt;BR /&gt;at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122)&lt;BR /&gt;at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)&lt;BR /&gt;at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)&lt;BR /&gt;at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)&lt;BR /&gt;at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:129)&lt;BR /&gt;at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:187)&lt;BR /&gt;at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:110)&lt;BR /&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)&lt;BR /&gt;at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:166)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)&lt;BR /&gt;at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)&lt;BR /&gt;at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)&lt;BR /&gt;at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)&lt;BR /&gt;at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)&lt;BR /&gt;at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)&lt;BR /&gt;at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72)&lt;BR /&gt;at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)&lt;BR /&gt;at org.eclipse.jetty.server.Server.handle(Server.java:349)&lt;BR /&gt;at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)&lt;BR /&gt;at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)&lt;BR /&gt;at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:588)&lt;BR /&gt;at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)&lt;BR /&gt;at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)&lt;BR /&gt;at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)&lt;BR /&gt;at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)&lt;BR /&gt;at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)&lt;BR /&gt;at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)&lt;BR /&gt;at java.lang.Thread.run(Unknown Source)&lt;BR /&gt;Caused by: java.lang.ClassCastException: org.dom4j.tree.DefaultDocument cannot be cast to org.dom4j.Document&lt;BR /&gt;at mycompanyesb.currentpricelistsoperation_0_1.CurrentPriceListsOperation.tESBProviderRequest_1_LoopProcess(CurrentPriceListsOperation.java:1496)&lt;BR /&gt;at mycompanyesb.currentpricelistsoperation_0_1.CurrentPriceListsOperation.runJobInTOS(CurrentPriceListsOperation.java:3584)&lt;BR /&gt;at org.talend.esb.job.controller.internal.RuntimeESBProviderCallback.run(RuntimeESBProviderCallback.java:120)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)&lt;BR /&gt;... 1 more&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 12:13:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260134#M41365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260135#M41366</link>
      <description>Hi,
&lt;BR /&gt;what version of OS, Java, TOS and ESB do you use?
&lt;BR /&gt;
&lt;PRE&gt;org.apache.cxf.interceptor.Fault: org.dom4j.tree.DefaultDocument cannot be cast to org.dom4j.Document&lt;/PRE&gt;
&lt;BR /&gt;this looks more like redundant library or something similar..
&lt;BR /&gt;
&lt;PRE&gt; at mycompanyesb.currentpricelistsoperation_0_1.CurrentPriceListsOperation.runJobInTOS(CurrentPriceListsOperation.java:3584)&lt;/PRE&gt;
&lt;BR /&gt;how did you deployed the service? are you sure you invoke the service on the server? (running on ESB)
&lt;BR /&gt;regards
&lt;BR /&gt; Gabriel</description>
      <pubDate>Tue, 21 Aug 2012 18:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260135#M41366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-21T18:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260136#M41367</link>
      <description>Here are the versions in use: 
&lt;BR /&gt;OS Version 
&lt;BR /&gt;Development : Windows 7 Enterprise SP1 
&lt;BR /&gt;Production : Windows Server 2008 R2 Datacenter 
&lt;BR /&gt; 
&lt;BR /&gt;Java version 
&lt;BR /&gt;Development : 
&lt;BR /&gt;java version "1.7.0_03" 
&lt;BR /&gt;Java(TM) SE Runtime Environment (build 1.7.0_03-b05) 
&lt;BR /&gt;Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode) 
&lt;BR /&gt;Production : 
&lt;BR /&gt;java version "1.6.0_21" 
&lt;BR /&gt;Java(TM) SE Runtime Environment (build 1.6.0_21-b07) 
&lt;BR /&gt;Java HotSpot(TM) 64-Bit Server VM (build 17.0-b17, mixed mode) 
&lt;BR /&gt; 
&lt;BR /&gt;ESB Version 
&lt;BR /&gt;Development : 
&lt;BR /&gt;Talend Open Studio for ESB 
&lt;BR /&gt;Version: 5.1.1 
&lt;BR /&gt;Build id: r84309-20120530-0614 
&lt;BR /&gt;Production : 
&lt;BR /&gt;Talend ESB Standard Edition 5.1.1 
&lt;BR /&gt;I deployed the service by selecting export from TOS ESB, then copying the resulting .kar file to servers \mycompany-container\deploy folder. I can see from the logs that the service has been installed properly, but calling it results in the error. 
&lt;BR /&gt;I can run sayHello example from the same environment.</description>
      <pubDate>Wed, 22 Aug 2012 06:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260136#M41367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-22T06:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260137#M41368</link>
      <description>just to reduce possible sources of error and simplify, I would suggest trying it with the same version of JDK on production and dev.  &lt;BR /&gt;You might also try a newer version of jdk 1.6.  There was one minor version that had some problems.  I know 1.6.0_25 and 1.6.0_30 worked fine.</description>
      <pubDate>Wed, 22 Aug 2012 12:38:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260137#M41368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-22T12:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260138#M41369</link>
      <description>I have production and development running the same java version now (1.6.0_31), but I still get the same error in production (development works fine).
&lt;BR /&gt;What other steps could I take in order to resolve this problem?</description>
      <pubDate>Fri, 24 Aug 2012 12:07:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260138#M41369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-24T12:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260139#M41370</link>
      <description>When you say it is working fine in development, do you mean it works fine in Studio and you can deploy it to a runtime in development, or is that it works in Studio and not on the runtime. I'm thinking the latter. In that case I think it may be a missing or conflicting jar. I'd file a JIRA ticket and post the JIRA ticket here. If the data is not sensitive, and you export the route by right clicking and select Export Items and post it as an attachment on the JIRA I will take a look and see if I can replicate the error.</description>
      <pubDate>Fri, 24 Aug 2012 16:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260139#M41370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-24T16:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260140#M41371</link>
      <description>Yes, the service works on studio but not on runtime. 
&lt;BR /&gt;I copied the file dom4j-1.6.1.jar to my containers lib folder, and now the error message changed to org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory. So I quess the problem is related to java libraries, especially this dom4j thingie. I don't have any idea how to fix it though &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 
&lt;BR /&gt;Full exception: 
&lt;BR /&gt;org.apache.cxf.interceptor.Fault: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory 
&lt;BR /&gt; at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162) 
&lt;BR /&gt; at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:213) 
&lt;BR /&gt; at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128) 
&lt;BR /&gt; at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178) 
&lt;BR /&gt; at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:64) 
&lt;BR /&gt; at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75) 
&lt;BR /&gt; at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) 
&lt;BR /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
&lt;BR /&gt; at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
&lt;BR /&gt; at java.util.concurrent.FutureTask.run(Unknown Source) 
&lt;BR /&gt; at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) 
&lt;BR /&gt; at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) 
&lt;BR /&gt; at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262) 
&lt;BR /&gt; at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122) 
&lt;BR /&gt; at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:129) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:187) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:110) 
&lt;BR /&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:166) 
&lt;BR /&gt; at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547) 
&lt;BR /&gt; at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480) 
&lt;BR /&gt; at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70) 
&lt;BR /&gt; at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) 
&lt;BR /&gt; at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) 
&lt;BR /&gt; at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) 
&lt;BR /&gt; at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941) 
&lt;BR /&gt; at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117) 
&lt;BR /&gt; at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) 
&lt;BR /&gt; at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) 
&lt;BR /&gt; at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875) 
&lt;BR /&gt; at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) 
&lt;BR /&gt; at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:72) 
&lt;BR /&gt; at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) 
&lt;BR /&gt; at org.eclipse.jetty.server.Server.handle(Server.java:349) 
&lt;BR /&gt; at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) 
&lt;BR /&gt; at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919) 
&lt;BR /&gt; at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:588) 
&lt;BR /&gt; at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) 
&lt;BR /&gt; at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51) 
&lt;BR /&gt; at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) 
&lt;BR /&gt; at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) 
&lt;BR /&gt; at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) 
&lt;BR /&gt; at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) 
&lt;BR /&gt; at java.lang.Thread.run(Unknown Source) 
&lt;BR /&gt;Caused by: java.lang.RuntimeException: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory 
&lt;BR /&gt; at org.talend.esb.job.controller.internal.GenericServiceProviderImpl.invoke(GenericServiceProviderImpl.java:110) 
&lt;BR /&gt; at org.talend.esb.job.controller.internal.GenericServiceProviderImpl.invoke(GenericServiceProviderImpl.java:42) 
&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
&lt;BR /&gt; at java.lang.reflect.Method.invoke(Unknown Source) 
&lt;BR /&gt; at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) 
&lt;BR /&gt; at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) 
&lt;BR /&gt; ... 44 more 
&lt;BR /&gt;Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory 
&lt;BR /&gt; at org.dom4j.io.SAXReader.read(SAXReader.java:484) 
&lt;BR /&gt; at org.dom4j.io.SAXReader.read(SAXReader.java:343) 
&lt;BR /&gt; at org.talend.esb.job.controller.internal.util.DOM4JMarshaller.sourceToDocument(DOM4JMarshaller.java:59) 
&lt;BR /&gt; at org.talend.esb.job.controller.internal.GenericServiceProviderImpl.invoke(GenericServiceProviderImpl.java:82) 
&lt;BR /&gt; ... 51 more</description>
      <pubDate>Tue, 28 Aug 2012 11:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260140#M41371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-28T11:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260141#M41372</link>
      <description>Hi, 
&lt;BR /&gt;The problem is that Dom4J and required bundles are embedded in OSGi bundle and re-imported from outside. To fix this problem please contact Support. 
&lt;BR /&gt;If you don't have a Support subscription, then you can do following: 
&lt;BR /&gt;1. Raise a JIRA about it. 
&lt;BR /&gt;2. Make sure that Dom4J bundles are not imported into OSGi bundle. 
&lt;BR /&gt;In your case Dom4J is embedded because of tFileInputXML component, so you need to go to the 
&lt;BR /&gt;TOS_HOME/plugins/org.talend.designer.components.localprovider_5.1.1.rXXXXX/components/tFileInputXML 
&lt;BR /&gt;There edit file tFileInputXML_java.xml 
&lt;BR /&gt;You need to change this: 
&lt;BR /&gt; 
&lt;PRE&gt;		&amp;lt;IMPORTS&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="Java_DOM4J1.6" MODULE="dom4j-1.6.1.jar"&lt;BR /&gt;				REQUIRED_IF="GENERATION_MODE == 'DOM4J'" /&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="Java_JAXEN1.1" MODULE="jaxen-1.1.1.jar"&lt;BR /&gt;				REQUIRED_IF="GENERATION_MODE == 'DOM4J'" /&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="Java_xercesImpl" MODULE="xercesImpl.jar"&lt;BR /&gt;				REQUIRED_IF="GENERATION_MODE == 'XERCES'" /&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="Java_talendSAX" MODULE="TalendSAX.jar"&lt;BR /&gt;				REQUIRED_IF="GENERATION_MODE == 'SAX'" /&amp;gt;&lt;BR /&gt;		&amp;lt;/IMPORTS&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;Into this: 
&lt;BR /&gt; 
&lt;PRE&gt;		&amp;lt;IMPORTS&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="Java_DOM4J1.6" MODULE="dom4j-1.6.1.jar"&lt;BR /&gt;				BundleID="org.apache.servicemix.bundles.dom4j"&lt;BR /&gt;				REQUIRED_IF="GENERATION_MODE == 'DOM4J'" /&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="Java_JAXEN1.1" MODULE="jaxen-1.1.1.jar"&lt;BR /&gt;				BundleID="org.apache.servicemix.bundles.dom4j"&lt;BR /&gt;				REQUIRED_IF="GENERATION_MODE == 'DOM4J'" /&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="Java_xercesImpl" MODULE="xercesImpl.jar"&lt;BR /&gt;				BundleID=""&lt;BR /&gt;				REQUIRED_IF="GENERATION_MODE == 'XERCES'" /&amp;gt;&lt;BR /&gt;			&amp;lt;IMPORT NAME="Java_talendSAX" MODULE="TalendSAX.jar"&lt;BR /&gt;				BundleID=""&lt;BR /&gt;				REQUIRED_IF="GENERATION_MODE == 'SAX'" /&amp;gt;&lt;BR /&gt;		&amp;lt;/IMPORTS&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;Note the new BundleID attributes. 
&lt;BR /&gt;After that you need to make sure code generator re-indexed Java files (better do this modification on the fresh Studio before it's first start). After that your exported OSGi bundle will no longer contain Dom4J JAR files. 
&lt;BR /&gt;Renat</description>
      <pubDate>Thu, 30 Aug 2012 09:55:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260141#M41372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-30T09:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260142#M41373</link>
      <description>I faced the problem, where I created talend esb service in open studio.&lt;BR /&gt;To consume this service I created a client in route which will accept input from activemq.&lt;BR /&gt;There it was working in talend open studio, but when i deployed it in talend esb runtime I was getting faults like&lt;BR /&gt;org.apache.cxf.interceptor.Fault: Provider net.sf.saxon.TransformerFactoryImpl not found&lt;BR /&gt;org.apache.cxf.interceptor.Fault: Could not initialize class org.talend.esb.job.controller.internal.util.DOM4JMarshaller&lt;BR /&gt;Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.talend.esb.job.controller.internal.util.DOM4JMarshaller&lt;BR /&gt;&lt;BR /&gt;Also wsdl url in browser was generating 500 error in browser.&lt;BR /&gt;But when I copied saxon9.jar and saxon9-dom.jar in talend - karaf - libs folder, it was working fine. Also generating proper wsdl in browser.</description>
      <pubDate>Mon, 18 Mar 2013 12:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260142#M41373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-18T12:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260143#M41374</link>
      <description>I have a similar issue, 
&lt;BR /&gt;Both the jars are in the bundle, and the issue is intermittent, sometimes I see no errors, and sometimes I see this error. I suspect the server start up sometimes loads the jars, and sometimes does not. 
&lt;BR /&gt;For now, I have used the suggestion above and have placed both the libraries in the karaf lib, and problems has disappeared. 
&lt;BR /&gt;I think this is a defect which needs to be addressed. I am using version 5.3.1. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="http://www.talend.org/service/}ProcessMessage" rel="nofollow noopener noreferrer"&gt;http://www.talend.org/service/}ProcessMessage&lt;/A&gt; has thrown exception, unwinding now 
&lt;BR /&gt;org.apache.cxf.interceptor.Fault: Provider net.sf.saxon.TransformerFactoryImpl not found 
&lt;BR /&gt; at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162) 
&lt;BR /&gt; at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:213) 
&lt;BR /&gt; at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128) 
&lt;BR /&gt; at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:178) 
&lt;BR /&gt; at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:68) 
&lt;BR /&gt; at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75) 
&lt;BR /&gt; at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) 
&lt;BR /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) 
&lt;BR /&gt; at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
&lt;BR /&gt; at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) 
&lt;BR /&gt; at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:107) 
&lt;BR /&gt; at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) 
&lt;BR /&gt; at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) 
&lt;BR /&gt; at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:158) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:243) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:163) 
&lt;BR /&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) 
&lt;BR /&gt; at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:219) 
&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</description>
      <pubDate>Fri, 06 Dec 2013 02:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260143#M41374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-06T02:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: ESB Service doesn't work on server (..DefaultDocument cannot be cast t</title>
      <link>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260144#M41375</link>
      <description>Hi,
&lt;BR /&gt;This thread is from August 2012. Will you please create another one to address your specific issue?
&lt;BR /&gt;
&lt;BR /&gt;Kind Regards,
&lt;BR /&gt;Ben</description>
      <pubDate>Fri, 06 Dec 2013 14:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/ESB-Service-doesn-t-work-on-server-DefaultDocument-cannot-be/m-p/2260144#M41375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-06T14:33:36Z</dc:date>
    </item>
  </channel>
</rss>

