[jbossws-issues] [JBoss JIRA] (JBWS-2671) org.jboss.ws.core.soap.SOAPMessageImpl does not implement setProperty and getProperty methods

Donatien RIVIERE (JIRA) jira-events at lists.jboss.org
Wed Oct 24 08:00:02 EDT 2012


    [ https://issues.jboss.org/browse/JBWS-2671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728829#comment-12728829 ] 

Donatien RIVIERE commented on JBWS-2671:
----------------------------------------

As you said, there is a lots of threads on many forums at this subject.
Anyway, none of thoses workarounds seems to work for my simple project :

- CXF 2.5.0 as a WS consumer
- WAR assembly (no EAR)

The only way I found to get it working is simply to add following maven dependencies :

{noformat}
<dependency>
	<groupId>javax.xml.ws</groupId>
	<artifactId>jaxws-api</artifactId>
	<version>2.2.1</version>
</dependency>
<dependency>
	<groupId>com.sun.xml.ws</groupId>
	<artifactId>jaxws-rt</artifactId>
	<version>2.2.6</version>
</dependency>
<dependency>
	<groupId>com.sun.xml.ws</groupId>
	<artifactId>jaxws-tools</artifactId>
	<version>2.2.6</version>
</dependency>
{noformat} 

No tweak in libraries of jboss/lib/endorsed directory, and no tweak about jboss-classloading or jboss-web java2Delegation or some other stuff.
Then I have a standard simple project (not related to JBoss), working on several AS.

Hope this will help (cause it was like a nightmare).
                
> org.jboss.ws.core.soap.SOAPMessageImpl does not implement setProperty and getProperty methods 
> ----------------------------------------------------------------------------------------------
>
>                 Key: JBWS-2671
>                 URL: https://issues.jboss.org/browse/JBWS-2671
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jbossws-native
>    Affects Versions:  jbossws-native-3.1.1
>         Environment: Windows XP, JBoss AS 4.2.3GA (JBossWS upgraded to 3.1.1GA), JDK 1.6.0_14
>            Reporter: Edward Pilipczuk
>            Priority: Critical
>
> I am trying to implement SOAPClient that invokes WebService by use of  Dispatch<Object> interface with JAXB.
> When trying to write the code like in the following tutorial --> http://www.omii.ac.uk/wiki/JaxWsTutorial#section-JaxWsTutorial-Example6.JAXWSinvocationusingtheDispatchObjectinterfacewithJAXB
> I got an exception as below:
> 13:55:58,453 ERROR [DispatchImpl] Cannot dispatch message
> java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
> 	at javax.xml.soap.SOAPMessage.setProperty(Unknown Source)
> 	at org.jboss.ws.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:87)
> 	at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:169)
> 	at org.jboss.ws.core.jaxws.client.DispatchSOAPBinding.getRequestMessage(DispatchSOAPBinding.java:121)
> 	at org.jboss.ws.core.jaxws.client.DispatchImpl.getRequestMessage(DispatchImpl.java:450)
> 	at org.jboss.ws.core.jaxws.client.DispatchImpl.invokeInternalSOAP(DispatchImpl.java:183)
> 	at org.jboss.ws.core.jaxws.client.DispatchImpl.invokeInternal(DispatchImpl.java:170)
> 	at org.jboss.ws.core.jaxws.client.DispatchImpl.invoke(DispatchImpl.java:133)
> 	at application.package.SOAPClient.process(SOAPClient.java:254)
> Looking into the source of the classes listed in stacktrace I found that SOAPMessageImpl class does not implement required setProperty() and getProperty() methods.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossws-issues mailing list