users@glassfish.java.net

All superclasses require default constructor for web service parameters?

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Apr 2008 16:50:11 PDT

We have a SSB Web Service, and some Java classes used as parameters.

We got a strange exception.

Caused by: java.security.PrivilegedActionException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
 com.example.MySuperClass does not have a no-arg default constructor.

The thing is, the actual method never uses MySuperClass, rather it uses MySubClass which DOES have a default constructor.

Why does the WS code need default constructors for everything up the inheritance tree?
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=269159