Announcement Announcement Module
Collapse
No announcement yet.
OSGI integration with AXIS2 using xmlbeans databinding Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • OSGI integration with AXIS2 using xmlbeans databinding

    Hi everyone,

    iīm trying to develop web services with axis2 and osgi integration. At the begining all went ok. The problem appears when I try to return a data type that it build using xmlbeans databinding.

    In trying to do it in several ways but always obtains the same mistake:


    !ENTRY org.eclipse.osgi 4 0 2010-04-21 17:25:15.062

    !MESSAGE An unexpected runtime error has occurred.

    !STACK 0

    java.lang.NoClassDefFoundError: javax/xml/namespace/QName

    at java.lang.Class.getDeclaredMethods0(Native Method)

    at java.lang.Class.privateGetDeclaredMethods(Class.ja va:2395)

    at java.lang.Class.getDeclaredMethods(Class.java:1763 )

    at java.beans.Introspector$1.run(Introspector.java:12 80)

    at java.security.AccessController.doPrivileged(Native Method)

    at java.beans.Introspector.getPublicDeclaredMethods(I ntrospector.java:1278)

    at java.beans.Introspector.getTargetMethodInfo(Intros pector.java:1144)

    at java.beans.Introspector.getBeanInfo(Introspector.j ava:402)

    at java.beans.Introspector.getBeanInfo(Introspector.j ava:166)

    at java.beans.Introspector.getBeanInfo(Introspector.j ava:227)

    at java.beans.Introspector.getBeanInfo(Introspector.j ava:215)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchema(DefaultSchemaGenerator. java:545)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchemaforFieldsandProperties(D efaultSchemaGenerator.java:691)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchema(DefaultSchemaGenerator. java:555)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchemaforFieldsandProperties(D efaultSchemaGenerator.java:693)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchema(DefaultSchemaGenerator. java:555)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchemaforFieldsandProperties(D efaultSchemaGenerator.java:691)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchema(DefaultSchemaGenerator. java:555)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchemaforFieldsandProperties(D efaultSchemaGenerator.java:693)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchema(DefaultSchemaGenerator. java:555)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchemaForType(DefaultSchemaGen erator.java:862)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.processMethods(DefaultSchemaGenerator. java:356)

    at org.apache.axis2.description.java2wsdl.DefaultSche maGenerator.generateSchema(DefaultSchemaGenerator. java:252)

    at org.apache.axis2.description.AxisService.createSer vice(AxisService.java:2347)

    at org.apache.axis2.description.AxisService.createSer vice(AxisService.java:2304)

    at org.apache.axis2.osgi.deployment.tracker.WSTracker .createWS(WSTracker.java:139)

    at org.apache.axis2.osgi.deployment.tracker.WSTracker .access$000(WSTracker.java:42)

    at org.apache.axis2.osgi.deployment.tracker.WSTracker $1.serviceChanged(WSTracker.java:71)

    at org.eclipse.osgi.internal.serviceregistry.Filtered ServiceListener.serviceChanged(FilteredServiceList ener.java:104)

    at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.dispatchEvent(BundleContextImpl.java:933)

    at org.eclipse.osgi.framework.eventmgr.EventManager.d ispatchEvent(EventManager.java:227)

    at org.eclipse.osgi.framework.eventmgr.ListenerQueue. dispatchEventSynchronous(ListenerQueue.java:149)

    at org.eclipse.osgi.internal.serviceregistry.ServiceR egistry.publishServiceEventPrivileged(ServiceRegis try.java:755)

    at org.eclipse.osgi.internal.serviceregistry.ServiceR egistry.publishServiceEvent(ServiceRegistry.java:7 10)

    at org.eclipse.osgi.internal.serviceregistry.ServiceR egistrationImpl.register(ServiceRegistrationImpl.j ava:129)

    at org.eclipse.osgi.internal.serviceregistry.ServiceR egistry.registerService(ServiceRegistry.java:206)

    at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.registerService(BundleContextImpl.java:50 7)

    at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.registerService(BundleContextImpl.java:52 5)

    at org.slasoi.businessManager.WS.internal.Activator.s tart(Activator.java:22)

    at org.eclipse.osgi.framework.internal.core.BundleCon textImpl$1.run(BundleContextImpl.java:783)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.startActivator(BundleContextImpl.java:774 )

    at org.eclipse.osgi.framework.internal.core.BundleCon textImpl.start(BundleContextImpl.java:755)

    at org.eclipse.osgi.framework.internal.core.BundleHos t.startWorker(BundleHost.java:352)

    at org.eclipse.osgi.framework.internal.core.AbstractB undle.resume(AbstractBundle.java:370)

    at org.eclipse.osgi.framework.internal.core.Framework .resumeBundle(Framework.java:1068)

    at org.eclipse.osgi.framework.internal.core.StartLeve lManager.resumeBundles(StartLevelManager.java:557)

    at org.eclipse.osgi.framework.internal.core.StartLeve lManager.incFWSL(StartLevelManager.java:464)

    at org.eclipse.osgi.framework.internal.core.StartLeve lManager.doSetStartLevel(StartLevelManager.java:24 8)

    at org.eclipse.osgi.framework.internal.core.StartLeve lManager.dispatchEvent(StartLevelManager.java:445)

    at org.eclipse.osgi.framework.eventmgr.EventManager.d ispatchEvent(EventManager.java:227)

    at org.eclipse.osgi.framework.eventmgr.EventManager$E ventThread.run(EventManager.java:337)


    I tried to provided the required class by addind it to the meta inf or including the next dependency:


    <dependency>

    <groupId>org.apache.xmlbeans</groupId>

    <artifactId>xmlbeans-qname</artifactId>

    <version>2.4.0</version>

    </dependency>


    I donīt know if it is possible to do it in some ways or it is a feature that will be developed.

    Thanks in advance.

    Alberto.
Working...
X