【问题标题】:camel cxf soap and karaf issue骆驼 cxf 肥皂和 karaf 问题
【发布时间】:2019-02-01 19:15:43
【问题描述】:

您好,我遇到了这个问题 - 配置问题:无法找到 XML 模式命名空间的 Spring NamespaceHandler [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"/>

【问题讨论】:

    标签: spring apache-camel


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2018-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多