It was likely a bug in 2.2 that this would have worked.   Most likely, 2.2 
ignored these methods since they are not supportable.   You most likely will 
need to remove the @WebMethod annotation off those or make them:
@WebMethod(exclude=true)
to mark them as excluded.

Dan



On Aug 9, 2012, at 12:49 PM, purecharger <[email protected]> wrote:

> 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.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to