Hmm, the SEI and Impl looks good to me, not really sure how the exception comes 
from.
Could you please elaborate how you publish the endpoint? You use CXF standalone 
or embed it in some container?

Freeman
-------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-8-9, at 上午7:57, 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