Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 64250 invoked from network); 4 Jan 2011 17:20:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jan 2011 17:20:39 -0000 Received: (qmail 68429 invoked by uid 500); 4 Jan 2011 17:20:38 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 68300 invoked by uid 500); 4 Jan 2011 17:20:38 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 68292 invoked by uid 99); 4 Jan 2011 17:20:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jan 2011 17:20:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cmoulliard@gmail.com designates 209.85.161.45 as permitted sender) Received: from [209.85.161.45] (HELO mail-fx0-f45.google.com) (209.85.161.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jan 2011 17:20:32 +0000 Received: by fxm12 with SMTP id 12so14641135fxm.32 for ; Tue, 04 Jan 2011 09:20:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=Cr4wO4Em8+KQa01QIwu6j7jQXI/rtc9LRGnm+GVQwIc=; b=uYUBjE9xzhbpxg+eblCOKfHdysFtJKaWzXWHxx/jGhl6DKeAaS7zdeTnNR1/wdIbzr xUz1c212YSextO0FJgJN3RHJMgElz/JFB3cv0sVFeWsdCxDngAjDnit8KX5Q9uAjsVyj V19seW201r1aBYPbMj1gznZErNQCZMBPvon9U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=bs6BMV0oLonxbEtmaYg48pCXiHGJ99BdQBtwX6AZ8uwz8HbqxLAFjFmCjABin4bxiO Gcl0cYfY5bdoZO/KoWlde17mM4EjyhotYBMl5hpb7yJRCeD6geAgo4GtNYtZMtVw81B9 FRBSIGrm3KqXBuNI61NQ8gRf6bAomfxM8eTTU= MIME-Version: 1.0 Received: by 10.223.96.195 with SMTP id i3mr4996418fan.77.1294161612007; Tue, 04 Jan 2011 09:20:12 -0800 (PST) Received: by 10.223.73.199 with HTTP; Tue, 4 Jan 2011 09:20:11 -0800 (PST) In-Reply-To: References: Date: Tue, 4 Jan 2011 18:20:11 +0100 Message-ID: Subject: Re: Issue with camel-soap on Karaf From: Charles Moulliard To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I already do that but without success. org.osgi.framework.bootdelegation=3Dorg.apache.karaf.jaas.boot,sun.*,javax.= transaction,javax.transaction.* On Tue, Jan 4, 2011 at 6:10 PM, Guillaume Nodet wrote: > Can you remove the boot delegation on com.sun.* and retry ? > > On Tue, Jan 4, 2011 at 18:04, Charles Moulliard wr= ote: >>> =A0* which jaxb bundle is/are deployed ? >> [ 200] [Active =A0 =A0 ] [ =A0 =A0 =A0 =A0 =A0 =A0] [ =A0 =A0 =A0 ] [ = =A0 60] Apache >> ServiceMix :: Bundles :: jaxb-impl (2.1.13.1) >> >>> =A0* does the system bundle export the sun packages ? >> No >> >> 200 com.sun.xml.bind.v2 >> =A0 200 com.sun.xml.bind.v2.model.annotation >> =A0 200 com.sun.xml.bind.unmarshaller >> =A0 200 com.sun.xml.bind.api.impl >> =A0 200 com.sun.xml.bind.v2.schemagen.episode >> =A0 200 com.sun.xml.bind.v2.util >> =A0 200 com.sun.xml.bind.v2.runtime.unmarshaller >> =A0 200 com.sun.xml.bind.marshaller >> =A0 200 com.sun.xml.bind.v2.model.runtime >> =A0 200 com.sun.xml.bind.v2.runtime.reflect.opt >> =A0 200 com.sun.xml.bind.v2.schemagen.xmlschema >> =A0 200 com.sun.xml.bind >> =A0 200 com.sun.xml.bind.v2.model.core >> =A0 200 com.sun.xml.bind.v2.runtime.output >> =A0 200 com.sun.xml.bind.v2.bytecode >> =A0 200 com.sun.xml.bind.api >> =A0 200 com.sun.xml.bind.v2.model.impl >> =A0 200 com.sun.xml.bind.v2.model.nav >> =A0 200 com.sun.xml.bind.v2.schemagen >> =A0 200 com.sun.xml.bind.util >> =A0 200 com.sun.xml.bind.v2.runtime.reflect >> =A0 200 com.sun.xml.bind.v2.runtime >> =A0 200 com.sun.xml.bind.annotation >> =A0 200 com.sun.xml.bind.v2.runtime.property >> >>> =A0* is there a boot delegation on the com.sun.* packages from the jre = ? >> Yes (karaf - 2.1-SNAPSHOT) >> >> On Tue, Jan 4, 2011 at 5:58 PM, Guillaume Nodet wrote= : >>> Looks like the wrong implementation is used for jaxb. >>> =A0* which jaxb bundle is/are deployed ? >>> =A0* does the system bundle export the sun packages ? >>> =A0* is there a boot delegation on the com.sun.* packages from the jre = ? >>> >>> >>> On Tue, Jan 4, 2011 at 17:40, Charles Moulliard = wrote: >>>> Hi, >>>> >>>> I would like to use camel-soap into the following camel route >>>> >>>> =A0 =A0>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 address=3D"http://localhost:82= 82/cxf/serviceFinder" >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 serviceClass=3D"fr.client.prox= y.Services"> >>>> =A0 =A0 >>>> >>>> =A0 =A0 >>>> >>>> =A0 =A0 =A0 =A0 >>>> =A0 =A0 =A0 =A0 =A0 =A0 >>>> =A0 =A0 =A0 =A0 >>>> >>>> =A0 =A0 =A0 =A0 >>>> =A0 =A0 =A0 =A0 =A0 =A0 >>>> =A0 =A0 =A0 =A0 =A0 =A0 >>>> =A0 =A0 =A0 =A0 =A0 =A0 >>>> =A0 =A0 =A0 =A0 =A0 =A0 >>>> =A0 =A0 =A0 =A0 =A0 =A0... >>>> >>>> but I get the following error in karaf when CXF extract the content >>>> and parse it with JAXB >>>> >>>> as thrown exception, unwinding now >>>> org.apache.cxf.interceptor.Fault: Unable to create context >>>> =A0 =A0 =A0 =A0at org.apache.camel.component.cxf.CxfConsumer$1.checkFa= ilure(CxfConsumer.java:223)[600:org.apache.camel.camel-cxf:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.component.cxf.CxfConsumer$1.setResp= onseBack(CxfConsumer.java:200)[600:org.apache.camel.camel-cxf:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.component.cxf.CxfConsumer$1.asyncIn= voke(CxfConsumer.java:113)[600:org.apache.camel.camel-cxf:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.component.cxf.CxfConsumer$1.invoke(= CxfConsumer.java:68)[600:org.apache.camel.camel-cxf:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.cxf.interceptor.ServiceInvokerInterceptor= $1.run(ServiceInvokerInterceptor.java:58)[598:org.apache.cxf.bundle:2.2.11] >>>> =A0 =A0 =A0 =A0at java.util.concurrent.Executors$RunnableAdapter.call(= Executors.java:441)[:1.6.0_22] >>>> =A0 =A0 =A0 =A0at java.util.concurrent.FutureTask$Sync.innerRun(Future= Task.java:303)[:1.6.0_22] >>>> =A0 =A0 =A0 =A0at java.util.concurrent.FutureTask.run(FutureTask.java:= 138)[:1.6.0_22] >>>> =A0 =A0 =A0 =A0at org.apache.cxf.workqueue.SynchronousExecutor.execute= (SynchronousExecutor.java:37)[598:org.apache.cxf.bundle:2.2.11] >>>> =A0 =A0 =A0 =A0at org.apache.cxf.interceptor.ServiceInvokerInterceptor= .handleMessage(ServiceInvokerInterceptor.java:106)[598:org.apache.cxf.bundl= e:2.2.11] >>>> =A0 =A0 =A0 =A0at org.apache.cxf.phase.PhaseInterceptorChain.doInterce= pt(PhaseInterceptorChain.java:243)[598:org.apache.cxf.bundle:2.2.11] >>>> =A0 =A0 =A0 =A0at org.apache.cxf.transport.ChainInitiationObserver.onM= essage(ChainInitiationObserver.java:111)[598:org.apache.cxf.bundle:2.2.11] >>>> =A0 =A0 =A0 =A0at org.apache.cxf.transport.http_jetty.JettyHTTPDestina= tion.serviceRequest(JettyHTTPDestination.java:311)[598:org.apache.cxf.bundl= e:2.2.11] >>>> =A0 =A0 =A0 =A0at org.apache.cxf.transport.http_jetty.JettyHTTPDestina= tion.doService(JettyHTTPDestination.java:275)[598:org.apache.cxf.bundle:2.2= .11] >>>> =A0 =A0 =A0 =A0at org.apache.cxf.transport.http_jetty.JettyHTTPHandler= .handle(JettyHTTPHandler.java:70)[598:org.apache.cxf.bundle:2.2.11] >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.handler.ContextHandler.handle(Cont= extHandler.java:765)[569:org.apache.servicemix.bundles.jetty-bundle:6.1.22.= 1] >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.handler.ContextHandlerCollection.h= andle(ContextHandlerCollection.java:230)[569:org.apache.servicemix.bundles.= jetty-bundle:6.1.22.1] >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.handler.HandlerWrapper.handle(Hand= lerWrapper.java:152)[569:org.apache.servicemix.bundles.jetty-bundle:6.1.22.= 1] >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.Server.handle(Server.java:326)[569= :org.apache.servicemix.bundles.jetty-bundle:6.1.22.1] >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpConnection.handleRequest(HttpC= onnection.java:542)[569:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1= ] >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpConnection$RequestHandler.cont= ent(HttpConnection.java:938)[569:org.apache.servicemix.bundles.jetty-bundle= :6.1.22.1] >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpParser.parseNext(HttpParser.ja= va:755)[569:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1] >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpParser.parseAvailable(HttpPars= er.java:218)[569:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1] >>>> =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpConnection.handle(HttpConnecti= on.java:404)[569:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1] >>>> =A0 =A0 =A0 =A0at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectC= hannelEndPoint.java:409)[569:org.apache.servicemix.bundles.jetty-bundle:6.1= .22.1] >>>> =A0 =A0 =A0 =A0at org.mortbay.thread.QueuedThreadPool$PoolThread.run(Q= ueuedThreadPool.java:582)[569:org.apache.servicemix.bundles.jetty-bundle:6.= 1.22.1] >>>> Caused by: java.io.IOException: Unable to create context >>>> =A0 =A0 =A0 =A0at org.apache.camel.util.IOHelper.createIOException(IOH= elper.java:80)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.util.IOHelper.createIOException(IOH= elper.java:72)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.converter.jaxb.JaxbDataFormat.unmar= shal(JaxbDataFormat.java:151)[602:org.apache.camel.camel-jaxb:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.dataformat.soap.SoapJaxbDataFormat.= unmarshal(SoapJaxbDataFormat.java:226)[603:org.apache.camel.camel-soap:2.5.= 0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.UnmarshalProcessor.proces= s(UnmarshalProcessor.java:51)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.impl.converter.AsyncProcessorTypeCo= nverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter= .java:50)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.util.AsyncProcessorHelper.process(A= syncProcessorHelper.java:70)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.DelegateAsyncProcessor.pr= ocessNext(DelegateAsyncProcessor.java:98)[202:org.apache.camel.camel-core:2= .5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.DelegateAsyncProcessor.pr= ocess(DelegateAsyncProcessor.java:89)[202:org.apache.camel.camel-core:2.5.0= ] >>>> =A0 =A0 =A0 =A0at org.apache.camel.management.InstrumentationProcessor= .process(InstrumentationProcessor.java:68)[202:org.apache.camel.camel-core:= 2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.util.AsyncProcessorHelper.process(A= syncProcessorHelper.java:70)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.DelegateAsyncProcessor.pr= ocessNext(DelegateAsyncProcessor.java:98)[202:org.apache.camel.camel-core:2= .5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.DelegateAsyncProcessor.pr= ocess(DelegateAsyncProcessor.java:89)[202:org.apache.camel.camel-core:2.5.0= ] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.interceptor.TraceIntercep= tor.process(TraceInterceptor.java:174)[202:org.apache.camel.camel-core:2.5.= 0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.util.AsyncProcessorHelper.process(A= syncProcessorHelper.java:70)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.RedeliveryErrorHandler.pr= ocessErrorHandler(RedeliveryErrorHandler.java:299)[202:org.apache.camel.cam= el-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.RedeliveryErrorHandler.pr= ocess(RedeliveryErrorHandler.java:208)[202:org.apache.camel.camel-core:2.5.= 0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.DefaultChannel.process(De= faultChannel.java:256)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.util.AsyncProcessorHelper.process(A= syncProcessorHelper.java:70)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.Pipeline.process(Pipeline= .java:143)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.Pipeline.process(Pipeline= .java:78)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.UnitOfWorkProcessor.proce= ss(UnitOfWorkProcessor.java:99)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.util.AsyncProcessorHelper.process(A= syncProcessorHelper.java:70)[202:org.apache.camel.camel-core:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.DelegateAsyncProcessor.pr= ocessNext(DelegateAsyncProcessor.java:98)[202:org.apache.camel.camel-core:2= .5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.processor.DelegateAsyncProcessor.pr= ocess(DelegateAsyncProcessor.java:89)[202:org.apache.camel.camel-core:2.5.0= ] >>>> =A0 =A0 =A0 =A0at org.apache.camel.management.InstrumentationProcessor= .process(InstrumentationProcessor.java:68)[202:org.apache.camel.camel-core:= 2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.component.cxf.CxfConsumer$1.asyncIn= voke(CxfConsumer.java:80)[600:org.apache.camel.camel-cxf:2.5.0] >>>> =A0 =A0 =A0 =A0... 23 more >>>> Caused by: javax.xml.bind.JAXBException: Unable to create context >>>> =A0- with linked exception: >>>> [java.lang.NoSuchMethodException: >>>> com.sun.xml.bind.v2.ContextFactory.createContext(java.lang.String, >>>> java.lang.ClassLoader)] >>>> =A0 =A0 =A0 =A0at javax.xml.bind.ContextFinder.find(ContextFinder.java= :72)[198:org.apache.servicemix.specs.jaxb-api-2.1:1.5.0] >>>> =A0 =A0 =A0 =A0at javax.xml.bind.JAXBContext.newInstance(JAXBContext.j= ava:77)[198:org.apache.servicemix.specs.jaxb-api-2.1:1.5.0] >>>> =A0 =A0 =A0 =A0at javax.xml.bind.JAXBContext.newInstance(JAXBContext.j= ava:73)[198:org.apache.servicemix.specs.jaxb-api-2.1:1.5.0] >>>> =A0 =A0 =A0 =A0at javax.xml.bind.JAXBContext.newInstance(JAXBContext.j= ava:69)[198:org.apache.servicemix.specs.jaxb-api-2.1:1.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.dataformat.soap.SoapJaxbDataFormat.= createContext(SoapJaxbDataFormat.java:286)[603:org.apache.camel.camel-soap:= 2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.converter.jaxb.JaxbDataFormat.getCo= ntext(JaxbDataFormat.java:183)[602:org.apache.camel.camel-jaxb:2.5.0] >>>> =A0 =A0 =A0 =A0at org.apache.camel.converter.jaxb.JaxbDataFormat.unmar= shal(JaxbDataFormat.java:126)[602:org.apache.camel.camel-jaxb:2.5.0] >>>> =A0 =A0 =A0 =A0... 47 more >>>> Caused by: java.lang.NoSuchMethodException: >>>> com.sun.xml.bind.v2.ContextFactory.createContext(java.lang.String, >>>> java.lang.ClassLoader) >>>> =A0 =A0 =A0 =A0at java.lang.Class.getMethod(Class.java:1605)[:1.6.0_22= ] >>>> =A0 =A0 =A0 =A0at javax.xml.bind.ContextFinder.find(ContextFinder.java= :69)[198:org.apache.servicemix.specs.jaxb-api-2.1:1.5.0] >>>> =A0 =A0 =A0 =A0... 53 more >>>> >>>> >>>> Regards, >>>> >>>> >>>> Charles Moulliard >>>> >>>> Sr. Principal Solution Architect - FuseSource >>>> Apache Committer >>>> >>>> Blog : http://cmoulliard.blogspot.com >>>> Twitter : http://twitter.com/cmoulliard >>>> Linkedin : http://www.linkedin.com/in/charlesmoulliard >>>> Skype: cmoulliard >>>> >>> >>> >>> >>> -- >>> Cheers, >>> Guillaume Nodet >>> ------------------------ >>> Blog: http://gnodet.blogspot.com/ >>> ------------------------ >>> Open Source SOA >>> http://fusesource.com >>> >> > > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > Open Source SOA > http://fusesource.com >