cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: [cxf] tomee Error deploying CXF webservice
Date Fri, 21 Jun 2013 14:20:59 GMT

This looks like a class loader issue.    Keep in mind, TomEE includes CXF already.  Thus,
if you are adding CXF to your project, it may end up in TomEE twice and then have conflicts.

Dan



On Jun 21, 2013, at 9:09 AM, ced_benoit <ced.benoit@gmail.com> wrote:

> Hi,
> 
> I have simple webservice and when I start the server, by exemple in eclipse,
> i have this error come:
> 
> SEVERE: Error deploying CXF webservice for servlet
> web.serve.cxf.test.TestWS3
> org.apache.cxf.service.factory.ServiceConstructionException
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:232)
> 	at
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:109)
> 	at
> org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:105)
> 	at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:662)
> 	at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:638)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:468)
> 	at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:690)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
> 	at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
> 	at
> org.apache.openejb.server.cxf.pojo.PojoEndpoint.<init>(PojoEndpoint.java:66)
> 	at
> org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:43)
> 	at
> org.apache.openejb.server.cxf.pojo.PojoWsContainer.createEndpoint(PojoWsContainer.java:28)
> 	at
> org.apache.openejb.server.cxf.CxfWsContainer.start(CxfWsContainer.java:54)
> 	at
> org.apache.openejb.server.cxf.CxfService.createPojoWsContainer(CxfService.java:79)
> 	at
> org.apache.openejb.server.webservices.WsService.afterApplicationCreated(WsService.java:372)
> 	at
> org.apache.tomee.webservices.TomeeJaxWsService.afterApplicationCreated(TomeeJaxWsService.java:54)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at
> org.apache.openejb.observer.ObserverManager$Observer.invoke(ObserverManager.java:145)
> 	at
> org.apache.openejb.observer.ObserverManager.fireEvent(ObserverManager.java:69)
> 	at
> org.apache.openejb.loader.SystemInstance.fireEvent(SystemInstance.java:107)
> 	at
> org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:1486)
> 	at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:110)
> 	at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> 	at
> org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
> 	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:168)
> 	at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
> 	at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 	at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.ClassCastException: class
> org.apache.cxf.jaxb.JAXBDataBinding
> 	at java.lang.Class.asSubclass(Class.java:3046)
> 	at
> org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:253)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactoryBean.java:220)
> 	... 36 more
> 
> I use TomEE 7.0.37
> 
> I don't know what is wrong? Is anybody has an idea? I checked my webservice,
> i don't find what is wrong.
> 
> thank you for your help
> 
> Cedirc
> 
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/cxf-tomee-Error-deploying-CXF-webservice-tp5729652.html
> Sent from the cxf-dev mailing list archive at Nabble.com.

-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com


Mime
View raw message