提问者:小点点

骆驼cxf肥皂和卡拉夫问题


嗨,我面临这个问题-配置问题:无法找到Spring NamespaceHandlerXML架构命名空间[http://camel.apache.org/schema/spring]违规资源:URL[bundle://2888.0:0/META-INF/Spring/camel-context.xml],同时将bundle部署到karaf中。

我的代码如下。

<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"/>

共2个答案

匿名用户

您必须在容器上安装驼峰Spring功能

匿名用户

如果你对骆驼有意见