Hi,

Could you explain how making jaxb-api one of the very first bundle loaded when 
working with cxf-dosgi-ri-singlebundle-distribution (v 1.1).
This bundle is not an osgi bundle. Is is embedded inside 
cxf-dosgi-ri-singlebundle-distribution.

Thanks.


On Thursday 14 October 2010 11:40:24 am Ronald Müller wrote:
> Hi,
> 
> i'm getting stuck on following exception (see below), while trying to
> implement a web-service from a given WSDL (by wsdl2java) with
> jaxb-databinding. The same thing runs fine, if started without any
> OSGi-things (just plain CXF).
> 
> So i suppose that there are just some import or export-statements
> missing, but i've no idea what.
> 
> I'm working with the latest cxf-dosgi-singlebundle-dist from trunk.
> Is there any working example somewhere, from what i can build on?
> (comparing MANIFEST etc.) Or where to start further investigation?

This is almost always a startup ordering issue resulting from some bundles 
picking up the JAXB-API things from the JDK and others from the servicemix 
jaxb-api bundle.   Try to make sure the smx jaxb-api  is one of the VERY first 
bundles loaded.  That alone may fix it.


Dan


> 
> 
> regards
> 
> Ronald
> 
> 
> 
> 
> org.apache.cxf.service.factory.ServiceConstructionException
>       at
> org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:339)
> at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFro
> mWSDL(ReflectionServiceFactoryBean.java:432) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServi
> ceModel(ReflectionServiceFactoryBean.java:528) at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Reflecti
> onServiceFactoryBean.java:278) at
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFac
> toryBean.java:179) at
> org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(Abs
> tractWSDLBasedEndpointFactory.java:99) at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105
> ) at
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.j
> ava:175) at
> de.unicomp.osgi.ots.pdServer.impl.Activator.publishService2(Activator.java:
> 98) at de.unicomp.osgi.ots.pdServer.impl.Activator.start(Activator.java:63)
> at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.ja
> va:633) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1862)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1779)
>       at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
>       at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
>       at
> org.apache.felix.fileinstall.DirectoryWatcher.start(DirectoryWatcher.java:7
> 69) at
> org.apache.felix.fileinstall.DirectoryWatcher.startAllBundles(DirectoryWatc
> her.java:789) at
> org.apache.felix.fileinstall.DirectoryWatcher.doInstalled(DirectoryWatcher.
> java:372) at
> org.apache.felix.fileinstall.DirectoryWatcher.run(DirectoryWatcher.java:121
> ) Caused by: javax.xml.bind.JAXBException: Unable to create context
>  - with linked exception:
> [java.lang.reflect.InvocationTargetException]
>       at javax.xml.bind.ContextFinder.find(ContextFinder.java:93)
>       at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:65)
>       at
> org.apache.cxf.jaxb.JAXBDataBinding.createContext(JAXBDataBinding.java:562)
>       at
> org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBDataBin
> ding.java:502) at
> org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:322)get
> ting stuck
>       ... 18 more
> Caused by: java.lang.reflect.InvocationTargetException
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
> 9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> l.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
>       at javax.xml.bind.ContextFinder.find(ContextFinder.java:91)
>       ... 22 more
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 72
> counts of IllegalAnnotationExceptions
> The createWatchdog method has @XmlElementMapping on it, but it doesn't
> return a sub-type of JAXBElement.
>       this problem is related to the following location:
>               at @javax.xml.bind.annotation.XmlElementDecl(scope=class
> javax.xml.bind.annotation.XmlElementDecl$GLOBAL, substitutionHeadName=,
> defaultValue=, substitutionHeadNamespace=##default,
> namespace=http://otec-konsortium.de/OCIT-I_PD-SP, name=Watchdog)

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

*********************************
This message and any attachments (the "message") are confidential and intended 
solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or 
falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.
********************************

Reply via email to