Andrei Biketov [
http://community.jboss.org/people/kmv2000] created the discussion
"Spring-WS 1.5.9 on JBoss AS 7"
To view the discussion, visit:
http://community.jboss.org/message/633180#633180
--------------------------------------------------------------
Hi,
I'm getting the following exception trying to deploy web application that uses
spring-ws 1.5.9. This application works without any problem on tomcat and other web app.
servers. I suspect that there is a conflict between jdk1.6 soap implementation and jboss 7
implementatin in JAR
*jboss-saaj-api_1.3_spec-1.0.1.Final.jar*. I tried to exclude jboss module
*javax.xml.soap.api* using jboss-deployment-structure.xml file
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
<deployment>
<exclusions>
<module name="javax.xml.soap.api"/>
</exclusions>
</deployment>
</jboss-deployment-structure>
but it didn't help.
Anyone had a similar problem or knows work around?
Thnaks,
Caused by: org.springframework.beans.factory.BeanCreationException: Invocation of init
method failed; nested exception is
org.springframework.ws.soap.SoapMessageCreationException: Could not create SAAJ
MessageFactory: Unable to create message factory for SOAP:
java.lang.reflect.InvocationTargetException; nested exception is
javax.xml.soap.SOAPException: Unable to create message factory for SOAP:
java.lang.reflect.InvocationTargetException
at
org.springframework.ws.support.DefaultStrategiesHelper.instantiateBean(DefaultStrategiesHelper.java:169)
[spring-ws-core-1.5.9.jar:]
at
org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategies(DefaultStrategiesHelper.java:115)
[spring-ws-core-1.5.9.jar:]
at
org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategy(DefaultStrategiesHelper.java:200)
[spring-ws-core-1.5.9.jar:]
at
org.springframework.ws.support.DefaultStrategiesHelper.getDefaultStrategy(DefaultStrategiesHelper.java:184)
[spring-ws-core-1.5.9.jar:]
at
org.springframework.ws.client.core.WebServiceTemplate.initMessageFactory(WebServiceTemplate.java:315)
[spring-ws-core-1.5.9.jar:]
at
org.springframework.ws.client.core.WebServiceTemplate.initDefaultStrategies(WebServiceTemplate.java:304)
[spring-ws-core-1.5.9.jar:]
at
org.springframework.ws.client.core.WebServiceTemplate.<init>(WebServiceTemplate.java:133)
[spring-ws-core-1.5.9.jar:]
at
org.springframework.ws.client.core.support.WebServiceGatewaySupport.<init>(WebServiceGatewaySupport.java:65)
[spring-ws-core-1.5.9.jar:]
at
com.nrx.adg.messaging.gateway.xforms.SisXFromsClientGateway.<init>(SisXFromsClientGateway.java:8)
[messaging-6.1_SP3-SNAPSHOT.jar:]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [:1.6.0_25]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[:1.6.0_25]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[:1.6.0_25]
at java.lang.reflect.Constructor.newInstance(Constructor.java:513) [:1.6.0_25]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
[spring-beans-3.0.6.RELEASE.jar:]
... 49 more
Caused by: org.springframework.ws.soap.SoapMessageCreationException: Could not create SAAJ
MessageFactory: Unable to create message factory for SOAP:
java.lang.reflect.InvocationTargetException; nested exception is
javax.xml.soap.SOAPException: Unable to create message factory for SOAP:
java.lang.reflect.InvocationTargetException
at
org.springframework.ws.soap.saaj.SaajSoapMessageFactory.afterPropertiesSet(SaajSoapMessageFactory.java:147)
[spring-ws-core-1.5.9.jar:]
at
org.springframework.ws.support.DefaultStrategiesHelper.instantiateBean(DefaultStrategiesHelper.java:166)
[spring-ws-core-1.5.9.jar:]
... 62 more
*Caused by: javax.xml.soap.SOAPException: Unable to create message factory for SOAP:
java.lang.reflect.InvocationTargetException*
* at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:112)
[jboss-saaj-api_1.3_spec-1.0.1.Final.jar:1.0.1.Final]*
* at
org.springframework.ws.soap.saaj.SaajSoapMessageFactory.afterPropertiesSet(SaajSoapMessageFactory.java:133)
[spring-ws-core-1.5.9.jar:]*
... 63 more
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/633180#633180]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]