我想設置使用彈簧的JAX-WS客戶端。我有下面的bean定義。下面的錯誤。springframework /遠程處理類未找到
<bean id="someClient" class="org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean">
<property name="serviceInterface" value="somePortType" />
<property name="wsdlDocumentUrl" value="file:///someWSDL.wsdl"/>
<property name="namespaceUri" value="soemNS" />
<property name="serviceName" value="Services201006" />
</bean>
所致:org.springframework.beans.factory.CannotLoadBeanClassException:錯誤加載類[org.springframework.remoting.jaxws.JaxWsPortProxyFactoryBean用於與名稱豆 'someClient' 在ServletContext的資源定義[/ WEB-INF /jax-ws.xml]:類文件或相關類的問題;嵌套異常是java.lang.NoClassDefFoundError:無法鏈接org/springframework/remoting/jaxws/JaxWsPortProxyFactoryBean(模塊「deployment.JbossEAP_WS_WebServiceEAR.ear.JBossEap_WS_SpringService.war:main」from Service Module Loader):無法鏈接org/springframework/remoting/JAXWS/JaxWsPortClientInterceptor(模塊 「deployment.JbossEAP_WS_WebServiceEAR.ear.JBossEap_WS_SpringService.war:主」 從服務模塊加載器):組織/ aopalliance /截距/的MethodInterceptor