Hello all,
I'm trying to develop a web service client with CXF into Apache Felix.
This is the error that shows me Felix:
/INFO: Can not initialize the default wsdl from
ServiceBackEndConnection.wsdl
17-oct-2012 16:26:48
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service
{http://service.backend.connection.optimizer/}ServiceBack
EndConnection from WSDL:
file:/C:/felix-framework-4.0.2Lunes/ServiceBackEndConne
ction.wsdl
org.osgi.framework.BundleException: Activator start error in bundle
bundleDBConn
ector [625].
at org.apache.felix.framework.Felix.activateBundle(Felix.java:2027)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
at org.apache.felix.gogo.command.Basic.start(Basic.java:729)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:
82)
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:4
03)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessi
onImpl.java:89)
at org.apache.felix.gogo.shell.Console.run(Console.java:62)
at org.apache.felix.gogo.shell.Shell.console(Shell.java:203)
at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
at
org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:
82)
at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:4
03)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessi
onImpl.java:89)
at org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.Serv
iceConstructionException
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:332)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:317)
at javax.xml.ws.Service.getPort(Service.java:40)
at
optimizer.connection.backend.service.ServiceBackEndConnection_Service
.getServiceBackEndConnectionPort(ServiceBackEndConnection_Service.java:76)
at
com.database.bundle.bridgeDB.BackEndConnection.invokeService(BackEndC
onnection.java:37)
at com.database.bundle.Activator.start(Activator.java:34)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:641)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977)
... 31 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
at
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:3
39)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServ
iceFromWSDL(ReflectionServiceFactoryBean.java:432)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializ
eServiceModel(ReflectionServiceFactoryBean.java:528)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Re
flectionServiceFactoryBean.java:278)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServ
iceFactoryBean.java:179)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoi
nt(AbstractWSDLBasedEndpointFactory.java:99)
at
org.apache.cxf.frontend.ClientFactoryBean.create(ClientFactoryBean.ja
va:51)
at
org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFact
oryBean.java:102)
at
org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBe
an.java:115)
at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:458)
at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:330)
... 38 more
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.jav
a:562)
at
org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContextAndSchemas(JAXBD
ataBinding.java:502)
at
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:3
22)
... 48 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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:91)
... 52 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 4 counts
of
IllegalAnnotationExceptions
The createHello 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.x
ml.bind.annotation.XmlElementDecl$GLOBAL, substitutionHeadName=,
defaultValue= ,
substitutionHeadNamespace=##default,
namespace=http://service.backend.connectio
n.optimizer/, name=hello)
at public javax.xml.bind.JAXBElement
optimizer.connection.backen
d.service.ObjectFactory.createHello(optimizer.connection.backend.service.Hello)
at optimizer.connection.backend.service.ObjectFactory
The createHelloResponse method has @XmlElementMapping on it, but it doesn't
retu
rn a sub-type of JAXBElement.
this problem is related to the following location:
at @javax.xml.bind.annotation.XmlElementDecl(scope=class
javax.x
ml.bind.annotation.XmlElementDecl$GLOBAL, substitutionHeadName=,
defaultValue= ,
substitutionHeadNamespace=##default,
namespace=http://service.backend.connectio
n.optimizer/, name=helloResponse)
at public javax.xml.bind.JAXBElement
optimizer.connection.backen
d.service.ObjectFactory.createHelloResponse(optimizer.connection.backend.service
.HelloResponse)
at optimizer.connection.backend.service.ObjectFactory
The createAddActionResponse 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.x
ml.bind.annotation.XmlElementDecl$GLOBAL, substitutionHeadName=,
defaultValue= ,
substitutionHeadNamespace=##default,
namespace=http://service.backend.connectio
n.optimizer/, name=AddActionResponse)
at public javax.xml.bind.JAXBElement
optimizer.connection.backen
d.service.ObjectFactory.createAddActionResponse(optimizer.connection.backend.ser
vice.AddActionResponse)
at optimizer.connection.backend.service.ObjectFactory
The createAddAction 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.x
ml.bind.annotation.XmlElementDecl$GLOBAL, substitutionHeadName=,
defaultValue= ,
substitutionHeadNamespace=##default,
namespace=http://service.backend.connectio
n.optimizer/, name=AddAction)
at public javax.xml.bind.JAXBElement
optimizer.connection.backen
d.service.ObjectFactory.createAddAction(optimizer.connection.backend.service.Add
Action)
at optimizer.connection.backend.service.ObjectFactory
at
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check
(IllegalAnnotationsException.java:102)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContex
tImpl.java:438)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.ja
va:286)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
139)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
117)
... 57 more
javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstruc
tionException/
Can anyone help me? Please
Thanks in advance.
Jesus wrote
> Hello all,
>
> I'm developing a SOAP web service bundle into Apache Felix with
> cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar<http://repository.apache.org/service/local/repositories/releases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-singlebundle-distribution/1.3.1/cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar>
>
> I have a wsdl file and I can access to this service from a navigator to
> see
> its properties. But I can't develop a bundle client from Felix. (In other
> mails I asked about REST services, but I haven't an interface to access
> directly to these REST services)
>
> I attach my Felix container and the error that it shows me.
>
> START LEVEL 1
> ID|State |Level|Name
> 0|Active | 0|System Bundle (4.0.2)
> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
> 2|Active | 1|Apache Felix Gogo Command (0.12.0)
> 3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
> 4|Active | 1|Apache Felix Gogo Shell (0.10.0)
> 5|Resolved | 1|osgi.cmpn (4.2.0.200908310645)
> 6|Active | 1|Distributed OSGi Distribution Software
> Single-Bundle Dis
> tribution (1.2.0)
> 10|Active | 1|Apache ANT (1.8.1)
> 11|Active | 1|ANTLR Runtime (3.1.3)
> 12|Active | 1|mvel2 (2.1.0.drools6)
> 13|Active | 1|Java XML Stream API (StAX) (1.0.1)
> 14|Active | 1|XMLPULL V1 API (1.1.4.c)
> 15|Active | 1|Thoughtworks XStream (1.3.1)
> 47|Active | 1|Apache Felix Web Management Console (3.1.8)
> 163|Active | 1|Eclipse Compiler for Java (3.3.0)
> 551|Active | 1|Apache HttpClient OSGi bundle (4.2.1)
> 552|Active | 1|Apache HttpCore OSGi bundle (4.2.1)
> 553|Active | 1|Apache Commons Logging (1.1.1)
> 606|Active | 1|ServiceInterfaceBackEnd (1.0.0.SNAPSHOT)
> 608|Installed | 1|Mybundle (1.0.0.SNAPSHOT)
> g! start 608
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> Mybundle [608]:
> Unable to resolve 608.0: missing requirement [608.0] osgi.wiring.package;
> (&(osgi.wiring.package=javax.xml.bind)(version>=2.1.0)(!(version>=3.0.0)))
> g!
>
> If I have into my container D-OSGi bundle, why I have this error?? I don't
> understand :__(
>
> Thank in advance and sorry for the inconvenience
>
> Jesus
Jesus wrote
> Hello all,
>
> I'm developing a SOAP web service bundle into Apache Felix with
> cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar<http://repository.apache.org/service/local/repositories/releases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-singlebundle-distribution/1.3.1/cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar>
>
> I have a wsdl file and I can access to this service from a navigator to
> see
> its properties. But I can't develop a bundle client from Felix. (In other
> mails I asked about REST services, but I haven't an interface to access
> directly to these REST services)
>
> I attach my Felix container and the error that it shows me.
>
> START LEVEL 1
> ID|State |Level|Name
> 0|Active | 0|System Bundle (4.0.2)
> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
> 2|Active | 1|Apache Felix Gogo Command (0.12.0)
> 3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
> 4|Active | 1|Apache Felix Gogo Shell (0.10.0)
> 5|Resolved | 1|osgi.cmpn (4.2.0.200908310645)
> 6|Active | 1|Distributed OSGi Distribution Software
> Single-Bundle Dis
> tribution (1.2.0)
> 10|Active | 1|Apache ANT (1.8.1)
> 11|Active | 1|ANTLR Runtime (3.1.3)
> 12|Active | 1|mvel2 (2.1.0.drools6)
> 13|Active | 1|Java XML Stream API (StAX) (1.0.1)
> 14|Active | 1|XMLPULL V1 API (1.1.4.c)
> 15|Active | 1|Thoughtworks XStream (1.3.1)
> 47|Active | 1|Apache Felix Web Management Console (3.1.8)
> 163|Active | 1|Eclipse Compiler for Java (3.3.0)
> 551|Active | 1|Apache HttpClient OSGi bundle (4.2.1)
> 552|Active | 1|Apache HttpCore OSGi bundle (4.2.1)
> 553|Active | 1|Apache Commons Logging (1.1.1)
> 606|Active | 1|ServiceInterfaceBackEnd (1.0.0.SNAPSHOT)
> 608|Installed | 1|Mybundle (1.0.0.SNAPSHOT)
> g! start 608
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> Mybundle [608]:
> Unable to resolve 608.0: missing requirement [608.0] osgi.wiring.package;
> (&(osgi.wiring.package=javax.xml.bind)(version>=2.1.0)(!(version>=3.0.0)))
> g!
>
> If I have into my container D-OSGi bundle, why I have this error?? I don't
> understand :__(
>
> Thank in advance and sorry for the inconvenience
>
> Jesus
Jesus wrote
> Hello all,
>
> I'm developing a SOAP web service bundle into Apache Felix with
> cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar<http://repository.apache.org/service/local/repositories/releases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-singlebundle-distribution/1.3.1/cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar>
>
> I have a wsdl file and I can access to this service from a navigator to
> see
> its properties. But I can't develop a bundle client from Felix. (In other
> mails I asked about REST services, but I haven't an interface to access
> directly to these REST services)
>
> I attach my Felix container and the error that it shows me.
>
> START LEVEL 1
> ID|State |Level|Name
> 0|Active | 0|System Bundle (4.0.2)
> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
> 2|Active | 1|Apache Felix Gogo Command (0.12.0)
> 3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
> 4|Active | 1|Apache Felix Gogo Shell (0.10.0)
> 5|Resolved | 1|osgi.cmpn (4.2.0.200908310645)
> 6|Active | 1|Distributed OSGi Distribution Software
> Single-Bundle Dis
> tribution (1.2.0)
> 10|Active | 1|Apache ANT (1.8.1)
> 11|Active | 1|ANTLR Runtime (3.1.3)
> 12|Active | 1|mvel2 (2.1.0.drools6)
> 13|Active | 1|Java XML Stream API (StAX) (1.0.1)
> 14|Active | 1|XMLPULL V1 API (1.1.4.c)
> 15|Active | 1|Thoughtworks XStream (1.3.1)
> 47|Active | 1|Apache Felix Web Management Console (3.1.8)
> 163|Active | 1|Eclipse Compiler for Java (3.3.0)
> 551|Active | 1|Apache HttpClient OSGi bundle (4.2.1)
> 552|Active | 1|Apache HttpCore OSGi bundle (4.2.1)
> 553|Active | 1|Apache Commons Logging (1.1.1)
> 606|Active | 1|ServiceInterfaceBackEnd (1.0.0.SNAPSHOT)
> 608|Installed | 1|Mybundle (1.0.0.SNAPSHOT)
> g! start 608
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> Mybundle [608]:
> Unable to resolve 608.0: missing requirement [608.0] osgi.wiring.package;
> (&(osgi.wiring.package=javax.xml.bind)(version>=2.1.0)(!(version>=3.0.0)))
> g!
>
> If I have into my container D-OSGi bundle, why I have this error?? I don't
> understand :__(
>
> Thank in advance and sorry for the inconvenience
>
> Jesus
Jesus wrote
> Hello all,
>
> I'm developing a SOAP web service bundle into Apache Felix with
> cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar<http://repository.apache.org/service/local/repositories/releases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-singlebundle-distribution/1.3.1/cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar>
>
> I have a wsdl file and I can access to this service from a navigator to
> see
> its properties. But I can't develop a bundle client from Felix. (In other
> mails I asked about REST services, but I haven't an interface to access
> directly to these REST services)
>
> I attach my Felix container and the error that it shows me.
>
> START LEVEL 1
> ID|State |Level|Name
> 0|Active | 0|System Bundle (4.0.2)
> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
> 2|Active | 1|Apache Felix Gogo Command (0.12.0)
> 3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
> 4|Active | 1|Apache Felix Gogo Shell (0.10.0)
> 5|Resolved | 1|osgi.cmpn (4.2.0.200908310645)
> 6|Active | 1|Distributed OSGi Distribution Software
> Single-Bundle Dis
> tribution (1.2.0)
> 10|Active | 1|Apache ANT (1.8.1)
> 11|Active | 1|ANTLR Runtime (3.1.3)
> 12|Active | 1|mvel2 (2.1.0.drools6)
> 13|Active | 1|Java XML Stream API (StAX) (1.0.1)
> 14|Active | 1|XMLPULL V1 API (1.1.4.c)
> 15|Active | 1|Thoughtworks XStream (1.3.1)
> 47|Active | 1|Apache Felix Web Management Console (3.1.8)
> 163|Active | 1|Eclipse Compiler for Java (3.3.0)
> 551|Active | 1|Apache HttpClient OSGi bundle (4.2.1)
> 552|Active | 1|Apache HttpCore OSGi bundle (4.2.1)
> 553|Active | 1|Apache Commons Logging (1.1.1)
> 606|Active | 1|ServiceInterfaceBackEnd (1.0.0.SNAPSHOT)
> 608|Installed | 1|Mybundle (1.0.0.SNAPSHOT)
> g! start 608
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> Mybundle [608]:
> Unable to resolve 608.0: missing requirement [608.0] osgi.wiring.package;
> (&(osgi.wiring.package=javax.xml.bind)(version>=2.1.0)(!(version>=3.0.0)))
> g!
>
> If I have into my container D-OSGi bundle, why I have this error?? I don't
> understand :__(
>
> Thank in advance and sorry for the inconvenience
>
> Jesus
Jesus wrote
> Hello all,
>
> I'm developing a SOAP web service bundle into Apache Felix with
> cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar<http://repository.apache.org/service/local/repositories/releases/content/org/apache/cxf/dosgi/cxf-dosgi-ri-singlebundle-distribution/1.3.1/cxf-dosgi-ri-singlebundle-distribution-1.3.1.jar>
>
> I have a wsdl file and I can access to this service from a navigator to
> see
> its properties. But I can't develop a bundle client from Felix. (In other
> mails I asked about REST services, but I haven't an interface to access
> directly to these REST services)
>
> I attach my Felix container and the error that it shows me.
>
> START LEVEL 1
> ID|State |Level|Name
> 0|Active | 0|System Bundle (4.0.2)
> 1|Active | 1|Apache Felix Bundle Repository (1.6.6)
> 2|Active | 1|Apache Felix Gogo Command (0.12.0)
> 3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
> 4|Active | 1|Apache Felix Gogo Shell (0.10.0)
> 5|Resolved | 1|osgi.cmpn (4.2.0.200908310645)
> 6|Active | 1|Distributed OSGi Distribution Software
> Single-Bundle Dis
> tribution (1.2.0)
> 10|Active | 1|Apache ANT (1.8.1)
> 11|Active | 1|ANTLR Runtime (3.1.3)
> 12|Active | 1|mvel2 (2.1.0.drools6)
> 13|Active | 1|Java XML Stream API (StAX) (1.0.1)
> 14|Active | 1|XMLPULL V1 API (1.1.4.c)
> 15|Active | 1|Thoughtworks XStream (1.3.1)
> 47|Active | 1|Apache Felix Web Management Console (3.1.8)
> 163|Active | 1|Eclipse Compiler for Java (3.3.0)
> 551|Active | 1|Apache HttpClient OSGi bundle (4.2.1)
> 552|Active | 1|Apache HttpCore OSGi bundle (4.2.1)
> 553|Active | 1|Apache Commons Logging (1.1.1)
> 606|Active | 1|ServiceInterfaceBackEnd (1.0.0.SNAPSHOT)
> 608|Installed | 1|Mybundle (1.0.0.SNAPSHOT)
> g! start 608
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> Mybundle [608]:
> Unable to resolve 608.0: missing requirement [608.0] osgi.wiring.package;
> (&(osgi.wiring.package=javax.xml.bind)(version>=2.1.0)(!(version>=3.0.0)))
> g!
>
> If I have into my container D-OSGi bundle, why I have this error?? I don't
> understand :__(
>
> Thank in advance and sorry for the inconvenience
>
> Jesus
--
View this message in context:
http://cxf.547215.n5.nabble.com/SOAP-Web-service-client-problem-in-ApacheFelix-OSGi-tp5716645p5716835.html
Sent from the cxf-user mailing list archive at Nabble.com.