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?


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.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:432)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:528)
        at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:278)
        at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:179)
        at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:99)
        at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
        at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java: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.java: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:769)
        at
org.apache.felix.fileinstall.DirectoryWatcher.startAllBundles(DirectoryWatcher.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(JAXBDataBinding.java:502)
        at
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:322)getting
stuck
        ... 18 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)

-- 
Mit freundlichen Grüßen

Dipl.-Ing. Ronald Müller

M-UniComp Verkehrssysteme GmbH
Plauener Straße 163-165, Haus L
D-13053 Berlin

Fon:     +49 (0) 30 / 9831 70070
Fax:     +49 (0) 30 / 9831 70077

Internet:   www.unicomp-berlin.de

Firma: M-UniComp Verkehrssysteme GmbH
Geschaeftsfuehrer: Andreas Dreher
Sitz der Gesellschaft: Berlin
Registergericht: Berlin Amtsgericht Charlottenburg, HRB 35329

Reply via email to