This blog is mainly about Java...

Monday, January 25, 2010

setProperty must be overridden by all subclasses of SOAPMessage

Have you gotten this error message? Then you probably either upgraded from Java 5 to Java 6 in JBoss application, or you just tried to run your webservice client for the first time.

The reason your Webservice client call suddenly fails is because of a bug in JBoss WS with JBoss 4.x

I haven't tested this on JBoss 5, so I cannot for sure exclude this bug in JBoss 5. However, the bug seem to be fixed in jbossws-2.0.

The solution to this problem is to
Copy the three jars from <JBOSS_HOME>\server\default\lib to <JBOSS_HOME>\lib\endorsed.

jboss-jaxrpc.jar
jboss-jaxws.jar
jboss-saaj.jar 

More information can be found here

7 comments:

Anonymous said...

I can't believe there are no comments on this post, it completely solved my issue. Thank you so very much!!!

Sharan said...

I was trying to figure it out this bug from yesterday night,thanks a lot it solved the issue..... cheers!

Anonymous said...

THANK YOU SO VERY MUCH!!!! :D

Anonymous said...

I am using JBoss-4.2.3.GA, Java 1.6 and Spring-ws-core-2.1.0 and I had the same issue. Following your suggestion solved my issue. Thank you very much !!

Anonymous said...

It works!

Timothy Mugayi said...

Awesome Thank you so much i just wasted 5hours of my life because of this. Working on some legacy code and had to switch over to JBoss-4.2.3.GA

Unknown said...

You're welcome. Glad to be helpful!

Labels