Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark ""setProperty must be overridden by all subclasses of SOAPMessage" error" Watch ""setProperty must be overridden by all subclasses of SOAPMessage" error" New topic

"setProperty must be overridden by all subclasses of SOAPMessage" error

Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 261
I have created a simple POJO web service with annotations (annotationes to create WSDL file in server side) and deployed the project in JBoss AS 4.2. And I see the corresponding WSDL in jboss-as\server\default\data\wsdl\WSProjEAR.ear\WSProj.war location.
Now the problem, when I test the service I get the follwing problem

I have googled this error, I found some of the solutions and tried to implement
In the above solution, they are asking to copy the list of jars to other location. But I didn't find # jboss-jaxws-ext.jar file in my AS. Is there any alternate solution?

Here is the code that I implement.
POJO class

Interface to follow web service rules and use to call POJO from client


Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
It looks a little strange to me that you use JAX-WS annotations and have your HelloPOJOAPI interface extend Remote - that is something you would do when developing JAX-RPC web services, but not with JAX-WS.
Check this tutorial for a basic example on how to use JAX-WS:
Best wishes!
marcelo rojas

Joined: Jan 27, 2011
Posts: 3
Hi All!
Yahooing and Googling i have found the solution for this specific problem. Follow the instructions posted here -->
That's all.

I agree. Here's the link:
subject: "setProperty must be overridden by all subclasses of SOAPMessage" error
Similar Threads
Exception occuring while accessing web services
java.lang.reflect.UndeclaredThrowableException in JBOSS with EJB 3 as a web service
Exception: java.rmi.RemoteException: Call invocation failed;
WSDL access error
JBOSS Portal Error-setProperty must be overridden by all subclasses of SOAPMessage