The stack trace is a little misleading. It turns out that the "JAXB can't
handle interfaces" is caused by specifying the interface as a web param on
another service:
public interface Manager {
@WebMethod
public void addListener(MyInterface listener);
@WebMethod
public void removeListener(MyInterface listener);
}
Causing the exception during JAXB data binding:
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts
of IllegalAnnotationExceptions
com.mycompany.MyInterface is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at com.mycompany.MyInterface
at private com.mycompany.MyInterface
com.mycompany.jaxws_asm.AddListener.arg0
at com.mycompany.jaxws_asm.AddListener
With JAXB 2.1 / CXF 2.2.5, these services deployed without exception.
--
View this message in context:
http://cxf.547215.n5.nabble.com/Upgrading-2-2-to-2-6-tp5712216p5712248.html
Sent from the cxf-user mailing list archive at Nabble.com.