Getting java.lang.IllegalArgumentException: SAAJ 1.1 and 1.2 only support SOAP 1.1 when migrating SpringWS
Issue
- Upgrading the application from JBoss EAP 4.2.3 to JBoss EAP 5.2 and from Java 5 to Java 7.
- While accessing the Web Service, the following below exception is encountered,
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'soapVersion' threw exception; nested exception is java.lang.IllegalArgumentException: SAAJ 1.1 and 1.2 only support SOAP 1.1
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:102)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1350)
Environment
- JBoss Enterprise Application Platform (EAP)
- 5.2.0
- SpringWS
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.