axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Dettborn <torsten.dettb...@uni-jena.de>
Subject AXIS2 OSGI bundle
Date Wed, 16 Mar 2011 14:09:23 GMT
Hi,

i have downloaded the AXIS2 OSGI  bundle from this webpage
http://grepcode.com/snapshot/repo1.maven.org/maven2/org.apache.axis2/org.apache.axis2.osgi/1.5.4/
and try to run the bundle, but the activation failed. I configure an
external bundle AXIS2OSGILibrary as library bundle for the first one. I
copied the manifest (the blue coloured text) and i copied the exceptions
(the red coloured text) from the framework. (eclipse told me that there
are no conflicts with the bundles)

I tried so many things to run the bundle please can anyone help me?

With best regards

Torsten


Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: AXIS2OSGILibrary
Bundle-SymbolicName: AXIS2OSGILibrary
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: axis2osgilibrary.Activator
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.osgi.framework;version="1.3.0"
Bundle-ClassPath: lib/axiom-api-1.2.10-tests.jar,
 lib/axiom-api-1.2.10.jar,
 lib/axiom-dom-1.2.10-tests.jar,
 lib/axiom-dom-1.2.10.jar,
 lib/axiom-impl-1.2.10-tests.jar,
 lib/axiom-impl-1.2.10.jar,
 lib/axis2-adb-1.5.4.jar,
 lib/axis2-kernel-1.5.4.jar,
 lib/axis2-transport-http-1.5.4.jar,
 lib/axis2-transport-local-1.5.4.jar,
 lib/com.springsource.javax.jms-1.1.0.jar,
 lib/commons-fileupload-1.2.jar,
 lib/commons-httpclient-3.0.1.jar,
 lib/commons-io-2.0.1.jar,
 lib/commons-lang-2.5.jar,
 lib/commons-logging-1.1.1-adapters.jar,
 lib/commons-logging-1.1.1-api.jar,
 lib/commons-logging-1.1.1-tests.jar,
 lib/commons-logging-1.1.1.jar,
 lib/dom4j-1.6.1.jar,
 lib/easymock-1.2_Java1.3.jar,
 lib/geronimo-activation_1.1_spec-1.0.2.jar,
 lib/geronimo-javamail_1.4_spec-1.6.jar,
 lib/geronimo-jta_1.1_spec-1.1.jar,
 lib/geronimo-stax-api_1.0_spec-1.0.1.jar,
 lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar,
 lib/httpcore-4.0.jar,
 lib/jdom-1.0.jar,
 lib/junit-3.8.2.jar,
 lib/logging-config-1.2.jar,
 lib/neethi-2.0.4.jar,
 lib/openjdk-6-b14.jar,
 lib/servlet-api-2.4.jar,
 lib/woden-ant-1.0M9.jar,
 lib/woden-api-1.0M9.jar,
 lib/woden-impl-commons-1.0M9.jar,
 lib/woden-impl-om-1.0M9.jar,
 lib/woden-qname-1.0M9.jar,
 lib/woden-tool-1.0M9.jar,
 lib/wsdl4j-1.6.2.jar,
 lib/wstx-asl-3.2.9.jar,
 lib/xercesImpl-2.8.1.jar,
 lib/xml-apis-2.0.2.jar,
 lib/XmlSchema-1.4.3.jar,
 .
Export-Package:
com.ibm.wsdl.util.xml;uses:="org.w3c.dom,javax.xml.namespace,javax.wsdl",
 javax.activation;version="1.1.0",
 javax.jms;version="1.1.0",
 javax.jws;version="2.0.0",
 javax.mail;version="1.4.0",
 javax.mail.internet;version="1.4.0",
 javax.mail.util;version="1.4.0",
 javax.management,
 javax.naming,
 javax.rmi,
 javax.servlet;version="2.4.0",
 javax.servlet.http;version="2.4.0",
 javax.transaction,
 javax.wsdl,
 javax.wsdl.extensions,
 javax.wsdl.extensions.http,
 javax.wsdl.extensions.mime,
 javax.wsdl.extensions.schema,
 javax.wsdl.extensions.soap,
 javax.wsdl.extensions.soap12,
 javax.wsdl.factory,
 javax.wsdl.xml,
 javax.xml.namespace,
 javax.xml.parsers,
 javax.xml.stream;version="1.0.0",
 javax.xml.transform,
 javax.xml.transform.dom,
 javax.xml.transform.stream,
 org.apache.axiom.attachments,
 org.apache.axiom.attachments.impl,
 org.apache.axiom.attachments.lifecycle,
 org.apache.axiom.attachments.lifecycle.impl,
 org.apache.axiom.attachments.utils,
 org.apache.axiom.om,
 org.apache.axiom.om.impl,
 org.apache.axiom.om.impl.builder,
 org.apache.axiom.om.impl.llom,
 org.apache.axiom.om.impl.llom.factory,
 org.apache.axiom.om.impl.util,
 org.apache.axiom.om.util,
 org.apache.axiom.soap,
 org.apache.axiom.soap.impl.builder,
 org.apache.axiom.soap.impl.llom.soap11,
 org.apache.axiom.soap.impl.llom.soap12,
 org.apache.commons.fileupload,
 org.apache.commons.fileupload.disk,
 org.apache.commons.fileupload.servlet,
 org.apache.commons.httpclient,
 org.apache.commons.httpclient.auth,
 org.apache.commons.httpclient.cookie,
 org.apache.commons.httpclient.methods,
 org.apache.commons.httpclient.methods.multipart,
 org.apache.commons.httpclient.params,
 org.apache.commons.httpclient.protocol,
 org.apache.commons.httpclient.util,
 org.apache.commons.io,
 org.apache.commons.lang,
 org.apache.commons.logging,
 org.apache.http,
 org.apache.http.entity,
 org.apache.http.impl,
 org.apache.http.impl.entity,
 org.apache.http.impl.io,
 org.apache.http.io,
 org.apache.http.message,
 org.apache.http.params,
 org.apache.http.protocol,
 org.apache.http.util,
 org.apache.neethi,
 org.apache.woden,
 org.apache.woden.internal,
 org.apache.woden.internal.wsdl20,
 org.apache.woden.internal.wsdl20.extensions,
 org.apache.woden.internal.wsdl20.extensions.http,
 org.apache.woden.internal.wsdl20.extensions.soap,
 org.apache.woden.resolver,
 org.apache.woden.schema,
 org.apache.woden.types,
 org.apache.woden.wsdl20,
 org.apache.woden.wsdl20.enumeration,
 org.apache.woden.wsdl20.extensions,
 org.apache.woden.wsdl20.extensions.http,
 org.apache.woden.wsdl20.extensions.rpc,
 org.apache.woden.wsdl20.extensions.soap,
 org.apache.woden.wsdl20.fragids,
 org.apache.woden.wsdl20.validation,
 org.apache.woden.wsdl20.xml,
 org.apache.woden.xml,
 org.apache.ws.commons.schema,
 org.apache.ws.commons.schema.constants,
 org.apache.ws.commons.schema.resolver,
 org.apache.ws.commons.schema.utils,
 org.w3c.dom,
 org.xml.sax


osgi> Library started1
!SESSION 2011-03-16 10:10:10.467
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de
Command-line arguments:  -dev
file:C:/Users/dettborn/eclipse/Axis2OSGI/.metadata/.plugins/org.eclipse.pde.core/Axis2OSGIRunConfig/dev.properties
-os win32 -ws win32 -arch x86 -consoleLog -console

!ENTRY org.apache.axis2.osgi 4 0 2011-03-16 10:10:13.336
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: Exception in
org.apache.axis2.osgi.internal.Activator.start() of bundle
org.apache.axis2.osgi.
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
    at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
    at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
    at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
    at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
    at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
Caused by: java.lang.ExceptionInInitializerError
    at
org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMDocument(OMLinkedListImplFactory.java:352)
    at
org.apache.axiom.om.impl.builder.StAXOMBuilder.createDocument(StAXOMBuilder.java:184)
    at
org.apache.axiom.om.impl.builder.StAXOMBuilder.<init>(StAXOMBuilder.java:105)
    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:599)
    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581)
    at
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
    at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:88)
    at
org.apache.axis2.osgi.deployment.OSGiServerConfigurator.populateAxisConfiguration(OSGiServerConfigurator.java:79)
    at
org.apache.axis2.osgi.deployment.OSGiServerConfigurator.getAxisConfiguration(OSGiServerConfigurator.java:61)
    at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
    at
org.apache.axis2.osgi.deployment.OSGiConfigurationContextFactory.startConfigurationContext(OSGiConfigurationContextFactory.java:93)
    at
org.apache.axis2.osgi.deployment.OSGiConfigurationContextFactory.updated(OSGiConfigurationContextFactory.java:102)
    at org.apache.axis2.osgi.internal.Activator.start(Activator.java:48)
    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)
    ... 11 more
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.IllegalAccessError: class
sun.reflect.GeneratedConstructorAccessor2 cannot access its superclass
sun.reflect.ConstructorAccessorImpl (Caused by
java.lang.IllegalAccessError: class
sun.reflect.GeneratedConstructorAccessor2 cannot access its superclass
sun.reflect.ConstructorAccessorImpl)
    at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:637)
    at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
    at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
    at
org.apache.axiom.om.impl.llom.OMSerializableImpl.<clinit>(OMSerializableImpl.java:40)
    ... 27 more
Caused by: java.lang.IllegalAccessError: class
sun.reflect.GeneratedConstructorAccessor2 cannot access its superclass
sun.reflect.ConstructorAccessorImpl
    at sun.misc.Unsafe.defineClass(Native Method)
    at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
    at
sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
    at java.security.AccessController.doPrivileged(Native Method)
    at
sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
    at
sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:76)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:30)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:608)
    ... 31 more
Root exception:
java.lang.ExceptionInInitializerError
    at
org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMDocument(OMLinkedListImplFactory.java:352)
    at
org.apache.axiom.om.impl.builder.StAXOMBuilder.createDocument(StAXOMBuilder.java:184)
    at
org.apache.axiom.om.impl.builder.StAXOMBuilder.<init>(StAXOMBuilder.java:105)
    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:599)
    at org.apache.axis2.util.XMLUtils.toOM(XMLUtils.java:581)
    at
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)
    at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:88)
    at
org.apache.axis2.osgi.deployment.OSGiServerConfigurator.populateAxisConfiguration(OSGiServerConfigurator.java:79)
    at
org.apache.axis2.osgi.deployment.OSGiServerConfigurator.getAxisConfiguration(OSGiServerConfigurator.java:61)
    at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
    at
org.apache.axis2.osgi.deployment.OSGiConfigurationContextFactory.startConfigurationContext(OSGiConfigurationContextFactory.java:93)
    at
org.apache.axis2.osgi.deployment.OSGiConfigurationContextFactory.updated(OSGiConfigurationContextFactory.java:102)
    at org.apache.axis2.osgi.internal.Activator.start(Activator.java:48)
    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:370)
    at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
    at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
    at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
    at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.IllegalAccessError: class
sun.reflect.GeneratedConstructorAccessor2 cannot access its superclass
sun.reflect.ConstructorAccessorImpl (Caused by
java.lang.IllegalAccessError: class
sun.reflect.GeneratedConstructorAccessor2 cannot access its superclass
sun.reflect.ConstructorAccessorImpl)
    at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:637)
    at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
    at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
    at
org.apache.axiom.om.impl.llom.OMSerializableImpl.<clinit>(OMSerializableImpl.java:40)
    ... 27 more
Caused by: java.lang.IllegalAccessError: class
sun.reflect.GeneratedConstructorAccessor2 cannot access its superclass
sun.reflect.ConstructorAccessorImpl
    at sun.misc.Unsafe.defineClass(Native Method)
    at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)
    at
sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)
    at java.security.AccessController.doPrivileged(Native Method)
    at
sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)
    at
sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:76)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:30)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:608)
    ... 31 more

!ENTRY org.eclipse.osgi 4 0 2011-03-16 10:10:13.343
!MESSAGE Bundle org.apache.axis2.osgi_1.0.0.4 [4] is not active.


osgi> ss

Framework is launched.

id    State       Bundle
0    ACTIVE      org.eclipse.osgi_3.6.1.R36x_v20100806
1    ACTIVE      org.eclipse.equinox.util_1.0.200.v20100503
2    ACTIVE      org.eclipse.equinox.ds_1.2.1.R36x_v20100803
3    ACTIVE      org.eclipse.osgi.services_3.2.100.v20100503
4    RESOLVED    org.apache.axis2.osgi_1.0.0.4
5    ACTIVE      AXIS2OSGILibrary_1.0.0.qualifier

osgi>

Mime
View raw message