In Tuscany, we use JAXB to handle POJO/XML marshaling and unmarshaling using 
the default mapping rules defined by JAXB. JAXB doesn't support interfaces 
directly. You can either work with java classes or use the techniques described 
at the following document:

https://jaxb.dev.java.net/guide/Mapping_interfaces.html

Thanks,
Raymond


From: Lakshman Mukkamalla 
Sent: Wednesday, February 04, 2009 11:41 AM
To: [email protected] 
Subject: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException


Hi tuscany users/devs,
     I am trying to expose a class as a tuscany SOAP service and ran into the 
following exception.
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of 
IllegalAnnotationExceptions
etch.bindings.java.msg.ImportExportHelper is an interface, and JAXB can't 
handle interfaces.
    this problem is related to the following location:
        at etch.bindings.java.msg.ImportExportHelper
        at public etch.bindings.java.msg.ImportExportHelper 
etch.bindings.java.msg.Type.getImportExportHelper()
        at etch.bindings.java.msg.Type
etch.bindings.java.msg.ImportExportHelper does not have a no-arg default 
constructor.
    this problem is related to the following location:
        at etch.bindings.java.msg.ImportExportHelper
        at public etch.bindings.java.msg.ImportExportHelper 
etch.bindings.java.msg.Type.getImportExportHelper()
        at etch.bindings.java.msg.Type
     Wanted to know more about what this exception means. And looking at the 
second exception, how can there be a default no-arg constructor for an 
interface? The class in question here is an etch generated client/server stub 
class.

Thanks. 

Reply via email to