1

我有一个很好的工作包:一些 cxf 端点和一些骆驼路线。我在 servicemix 4.3.1 上工作得很好下面是一个典型的 cxf:endpoint:

 <cxf:cxfEndpoint id="adapter.Service"
                 serviceName="tns:Service"
                 wsdlURL="etc/transfer.wsdl">
    <cxf:properties>
        <entry key="dataFormat" value="PAYLOAD"/>
        <entry key="ws-security.ut.no-callbacks" value="true"/>
    </cxf:properties>
    <cxf:inInterceptors>
        <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
            <constructor-arg>
                <map>
                    <entry key="action" value="UsernameToken"/>
                    <entry key="passwordType" value="PasswordText"/>
                </map>
            </constructor-arg>
        </bean>
        <ref bean="authenticationInterceptor"/>
    </cxf:inInterceptors>
</cxf:cxfEndpoint>

但是当我尝试将 bundle 部署到 servicemix 4.3.1 时,我得到了下一个异常:

Unable to create message factory for SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found

麻烦的根源:提供安全性的拦截器。如果端点部署没有标签<cxf:inInterceptors>- 一切正常。
在 4.4.1 中使用输入/输出拦截器是否已更改?
有人有同样的烦恼吗?

4

0 回答 0