There's an inheritance JAXB plugin (http://www.jroller.com/gmazza/entry/enhancing_jaxb_artifacts#Plugin) that might solve your problem.

HTH,
Glen

On 08/08/2012 07:57 PM, purecharger wrote:
My web services are deployed using CXF 2.2.5, using the default databinding
of JAXB 2.1. I'm attempting to upgrade to CXF 2.6, and I'm getting this
error when starting up services:


FAILURE invoking publish of
org.apache.cxf.jaxws.spring.EndpointDefinitionParser$SpringEndpointImpl
java.lang.reflect.InvocationTargetException
...
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts
of IllegalAnnotationExceptions
MyInterface is an interface, and JAXB can't handle interfaces.

With my interface carrying @WebMethod annotations:

@WebService
public interface MyInterface {

     @WebMethod(action = "receive")
     public void receive(@WebParam(name = "id") String id);

}

@WebService(endpointInterface = "MyInterface")
public class MyClass implements MyInterface {

     public void receive(String id){
     }

}

I have quite a few interface/implementations defined this way, and from the
CXF How-To documentation this is perfectly valid. I'm trying to find out
whether this is a known change from JAXB 2.1 to 2.2 that I need to update if
I'm going to use CXF 2.6, or am I missing something in the databinding
configuration?

Thank you,
Ryan




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Upgrading-2-2-to-2-6-tp5712216.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to