Spring Mule ESB-库是否覆盖任何应用程序库
我使用Mule Studio 3.2.1开发了一个Mule应用程序。在该应用程序中,我使用org.springframework.ws.client.core.WebServiceTemplate向另一个应用程序发送Webservice请求。 我使用了以下配置Spring Mule ESB-库是否覆盖任何应用程序库,spring,spring-security,mule,wss4j,Spring,Spring Security,Mule,Wss4j,我使用Mule Studio 3.2.1开发了一个Mule应用程序。在该应用程序中,我使用org.springframework.ws.client.core.WebServiceTemplate向另一个应用程序发送Webservice请求。 我使用了以下配置 <bean id="myWsTemplate" clsass="org.springframework.ws.client.core.WebServiceTemplate"> <constructor-arg
<bean id="myWsTemplate" clsass="org.springframework.ws.client.core.WebServiceTemplate">
<constructor-arg ref="messageFactory" />
<property name="defaultUri" value="${my.soap.endpoint}" />
<property name="interceptors">
<list>
<ref bean="acqSecurityInterceptor" />
</list>
</property>
现在Mule 3.2.0的lib/opt目录附带了wss4j-1.5.8-osgi.jar,WSSecurityutil上的方法签名是public static int decodeAction(字符串操作、向量操作)
而已尝试的是
decodeAction(Ljava/lang/String;Ljava/util/List;),它出现在wss4j.1.6.5中
我的问题是,即使我的应用程序中有wss4j-1.6.5.jar,为什么类加载器仍在尝试使用mule/lib/opt中的一个。应用程序中的一个不应优先覆盖吗?
如果没有,是否有办法让它以这种方式工作确定使用mule-deploy.properties中的以下配置 loader.override=-org.apache.ws.security.util.WSSecurityUtil 裁判 但是JAR作为插件在Mule Studio中构建,然后尝试在独立的Mule中部署,仍然存在很多问题。将在另一个线程中创建此类问题的分类列表
<bean id="acqSecurityInterceptor" class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor">
<property name="validationActions" value="NoSecurity"/>
<property name="securementActions" value="NoSecurity" />
</bean>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-security</artifactId>
<version>2.1.0.RELEASE</version>
</dependency>
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'validationActions' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.ws.security.util.WSSecurityUtil.decodeAction(Ljava/lang/String;Ljava/util/List;)I
PropertyAccessException 2: org.springframework.beans.MethodInvocationException: Property 'securementActions' threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.ws.security.util.WSSecurityUtil.decodeAction(Ljava/lang/String;Ljava/util/List;)I