简体   繁体   中英

camel cxf soap and karaf issue

Hi I'm facing this issue -Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [ http://camel.apache.org/schema/spring] Offending resource: URL [bundle://2888.0:0/META-INF/spring/camel-context.xml] while deploying bundle into karaf.

My code is like below.

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:cxf="http://camel.apache.org/schema/cxf"
xsi:schemaLocation="http://www.springframework.org/schema/beans        
http://www.springframework.org/schema/beans/spring-beans.xsd               
http://camel.apache.org/schema/spring        
http://camel.apache.org/schema/spring/camel-spring.xsd       
http://www.springframework.org/schema/context            
http://www.springframework.org/schema/context/spring-context.xsd
http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd">

<camelContext id="SOAPSERVICE" xmlns="http://camel.apache.org/schema/spring">
   <routeBuilder id="soapRouter" ref="soapRoute"/>
</camelContext>
<bean class="com.example.router.SoapRouter" id="soapRoute"/>

 <!-- setting up a Camel CXF web-service -->
 <cxf:cxfEndpoint id="exampleServiceEndPoint"
               address="http://localhost:9000/example/"
                  wsdlURL="http://localhost:9000/example?wsdl"
               serviceClass="com.example.ExampleServiceEndpoint"/>

您必须在容器上安装骆驼弹簧功能

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM