Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 750E519FE2 for ; Thu, 28 Apr 2016 14:02:13 +0000 (UTC) Received: (qmail 97667 invoked by uid 500); 28 Apr 2016 14:02:13 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 97387 invoked by uid 500); 28 Apr 2016 14:02:13 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 97377 invoked by uid 99); 28 Apr 2016 14:02:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Apr 2016 14:02:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EF3822C1F60 for ; Thu, 28 Apr 2016 14:02:12 +0000 (UTC) Date: Thu, 28 Apr 2016 14:02:12 +0000 (UTC) From: "John Yin (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-9643) CXF SOAP consumer fails when running in Karaf MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15262178#comment-15262178 ] John Yin commented on CAMEL-9643: --------------------------------- Hi Claus, Thanks for reaching out and following up on this issue. With 2.17.0, I have not been able to install it successfully in Karaf 4.0.4. When I install my application bundle, I received an error: Exception: Configuration problem: Failed to import bean definitions from URL location [classpath:META-INF/spring/camel-cxf.xml] Offending resource: URL [bundle://188.0:0/META-INF/spring/camel-context.xml]; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://camel.apache.org/schema/cxf] Offending resource: OSGi resource[classpath:META-INF/spring/camel-cxf.xml|bnd.id=188|bnd.sym=TestCxfWs] In the release notes, there was a mentioning about camel-spring not installed by default. But camel-spring is brought in by camel-cxf automatically. Here is what I installed in karaf 4.0.4: feature:repo-add cxf 3.1.6 feature:install cxf cxf-rt-security feature:repo-add camel 2.17.0 feature:install camel-core camel-cxf camel-groovy bundle:install -s file:/.../TestCxfWs-1.0-SNAPSHOT.jar Thank you for your help! > CXF SOAP consumer fails when running in Karaf > --------------------------------------------- > > Key: CAMEL-9643 > URL: https://issues.apache.org/jira/browse/CAMEL-9643 > Project: Camel > Issue Type: Bug > Components: camel-cxf, karaf > Affects Versions: 2.16.2 > Environment: Windows 10 Pro. Java 1.8. Karaf 4.0.4. CXF 3.1.4 > Reporter: John Yin > Attachments: TestCxfWs-submit.zip > > > A simple Camel CXF SOAP web services consumer (server) works fine in standalone mode. But when deploying it in Karaf, it would fail if Camel 2.16.x is used. It would work fine if 2.15.x is used. streamCache is set to true. The following error was received. A zip file is attached containing a maven project (along with Karaf config info) that can reproduce this issue. This is critical because we cannot move to 2.16.x until this issue is resolved. > javax.xml.transform.TransformerException: Can't transform a Source of type javax.xml.transform.stax.StAXSource > at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:419) > at org.apache.camel.converter.jaxp.XmlConverter.toResult(XmlConverter.java:132) > at org.apache.camel.converter.jaxp.XmlConverter.toResult(XmlConverter.java:116) > at org.apache.camel.component.cxf.converter.CachedCxfPayload.(CachedCxfPayload.java:75) > at org.apache.camel.component.cxf.converter.CxfPayloadConverter.cxfPayLoadToStreamCache(CxfPayloadConverter.java:118) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_60] > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_60] > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_60] > at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_60] > at org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:1243)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.impl.converter.StaticMethodTypeConverter.convertTo(StaticMethodTypeConverter.java:59)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.impl.converter.BaseTypeConverterRegistry.doConvertTo(BaseTypeConverterRegistry.java:293)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:120)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.core.osgi.OsgiTypeConverter.convertTo(OsgiTypeConverter.java:117)[171:org.apache.camel.camel-spring:2.16.2] > at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:72)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:47)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.impl.DefaultStreamCachingStrategy.cache(DefaultStreamCachingStrategy.java:189)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.processor.CamelInternalProcessor$StreamCachingAdvice.before(CamelInternalProcessor.java:765)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.processor.CamelInternalProcessor$StreamCachingAdvice.before(CamelInternalProcessor.java:744)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:138)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.processor.Pipeline.process(Pipeline.java:121)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.processor.Pipeline.process(Pipeline.java:83)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190)[164:org.apache.camel.camel-core:2.16.2] > at org.apache.camel.component.cxf.CxfConsumer$1.asyncInvoke(CxfConsumer.java:95)[165:org.apache.camel.camel-cxf:2.16.2] > at org.apache.camel.component.cxf.CxfConsumer$1.invoke(CxfConsumer.java:75)[165:org.apache.camel.camel-cxf:2.16.2] > at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[63:org.apache.cxf.cxf-core:3.1.4] > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_60] > at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60] > at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126)[63:org.apache.cxf.cxf-core:3.1.4] > at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)[63:org.apache.cxf.cxf-core:3.1.4] > at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131)[63:org.apache.cxf.cxf-core:3.1.4] > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)[63:org.apache.cxf.cxf-core:3.1.4] > at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[63:org.apache.cxf.cxf-core:3.1.4] > at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[88:org.apache.cxf.cxf-rt-transports-http:3.1.4] > at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:234)[89:org.apache.cxf.cxf-rt-transports-http-jetty:3.1.4] > at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)[89:org.apache.cxf.cxf-rt-transports-http-jetty:3.1.4] > at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1129)[140:org.eclipse.jetty.server:9.2.14.v20151106] > at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1065)[140:org.eclipse.jetty.server:9.2.14.v20151106] > at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[140:org.eclipse.jetty.server:9.2.14.v20151106] > at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)[140:org.eclipse.jetty.server:9.2.14.v20151106] > at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[140:org.eclipse.jetty.server:9.2.14.v20151106] > at org.eclipse.jetty.server.Server.handle(Server.java:499)[140:org.eclipse.jetty.server:9.2.14.v20151106] > at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[140:org.eclipse.jetty.server:9.2.14.v20151106] > at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[140:org.eclipse.jetty.server:9.2.14.v20151106] > at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[132:org.eclipse.jetty.io:9.2.14.v20151106] > at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[143:org.eclipse.jetty.util:9.2.14.v20151106] > at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[143:org.eclipse.jetty.util:9.2.14.v20151106] > at java.lang.Thread.run(Thread.java:745)[:1.8.0_60] -- This message was sent by Atlassian JIRA (v6.3.4#6332)