Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-4689

Integration among axis2 and osgi using xmlbeans databinding

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: 1.5.1
    • Fix Version/s: None
    • Component/s: databinding
    • Labels:
      None
    • Environment:
      windows xp, spring dm 1.1.2, osgi 4.0 and org.apache.axis2.osgi 1.5.1

      Description

      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.java:2395)

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

      at java.beans.Introspector$1.run(Introspector.java:1280)

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

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

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

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

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

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

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

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

      at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaforFieldsandProperties(DefaultSchemaGenerator.java:691)

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

      at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaforFieldsandProperties(DefaultSchemaGenerator.java:693)

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

      at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaforFieldsandProperties(DefaultSchemaGenerator.java:691)

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

      at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaforFieldsandProperties(DefaultSchemaGenerator.java:693)

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

      at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.generateSchemaForType(DefaultSchemaGenerator.java:862)

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

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

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

      at org.apache.axis2.description.AxisService.createService(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.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:104)

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

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

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

      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:755)

      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:710)

      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:129)

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

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:507)

      at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:525)

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

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

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

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

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

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

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

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

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

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

      at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)

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

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

      at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              puniser Alberto Gallego
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: