[
https://issues.apache.org/jira/browse/AXIS2-4902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13128481#comment-13128481
]
Andreas Veithen commented on AXIS2-4902:
----------------------------------------
I'm now able to start the OSGi bundle from the latest 1.7.0-SNAPSHOT build.
I've used the following bundles on Felix 4.0.0:
install
http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.1/geronimo-activation_1.1_spec-1.1.jar
install
http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar
install
http://repo2.maven.org/maven2/org/apache/servicemix/specs/org.apache.servicemix.specs.stax-api-1.0/1.1.1/org.apache.servicemix.specs.stax-api-1.0-1.1.1.jar
install
http://repository.springsource.com/maven/bundles/external/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar
install
https://repository.apache.org/content/repositories/snapshots/org/apache/james/apache-mime4j-core/0.8-SNAPSHOT/apache-mime4j-core-0.8-20111016.010039-76.jar
install
http://repo2.maven.org/maven2/org/codehaus/woodstox/stax2-api/3.0.4/stax2-api-3.0.4.jar
install
http://repo2.maven.org/maven2/org/codehaus/woodstox/woodstox-core-asl/4.0.9/woodstox-core-asl-4.0.9.jar
install
https://repository.apache.org/content/repositories/snapshots/org/apache/ws/commons/axiom/axiom-api/1.2.13-SNAPSHOT/axiom-api-1.2.13-20111016.121335-198.jar
install
https://repository.apache.org/content/repositories/snapshots/org/apache/ws/commons/axiom/axiom-impl/1.2.13-SNAPSHOT/axiom-impl-1.2.13-20111016.121335-198.jar
install
http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.wsdl4j/1.6.2_3/org.apache.servicemix.bundles.wsdl4j-1.6.2_3.jar
install
http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar
install
http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.3/geronimo-ws-metadata_2.0_spec-1.1.3.jar
install
http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.2/geronimo-servlet_2.5_spec-1.2.jar
install
http://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jaxrs_1.1_spec/1.0/geronimo-jaxrs_1.1_spec-1.0.jar
install
http://repo2.maven.org/maven2/commons-fileupload/commons-fileupload/1.2.1/commons-fileupload-1.2.1.jar
install
http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.commons-io/1.4_2/org.apache.servicemix.bundles.commons-io-1.4_2.jar
install
http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.commons-httpclient/3.1_6/org.apache.servicemix.bundles.commons-httpclient-3.1_6.jar
install
http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.commons-codec/1.3_4/org.apache.servicemix.bundles.commons-codec-1.3_4.jar
install
https://repository.apache.org/content/repositories/snapshots/org/apache/neethi/neethi/3.0.2-SNAPSHOT/neethi-3.0.2-20111016.123440-24.jar
install
https://repository.apache.org/content/repositories/snapshots/org/apache/woden/woden-api/1.0-SNAPSHOT/woden-api-1.0-20111016.123544-186.jar
install
https://repository.apache.org/content/repositories/snapshots/org/apache/woden/woden-impl-commons/1.0-SNAPSHOT/woden-impl-commons-1.0-20111016.123545-186.jar
install
https://repository.apache.org/content/repositories/snapshots/org/apache/ws/commons/schema/XmlSchema/1.4.8-SNAPSHOT/XmlSchema-1.4.8-SNAPSHOT.jar
install
http://repo2.maven.org/maven2/org/apache/felix/org.apache.felix.configadmin/1.2.8/org.apache.felix.configadmin-1.2.8.jar
install
http://repo2.maven.org/maven2/org/apache/felix/org.apache.felix.http.bundle/2.2.0/org.apache.felix.http.bundle-2.2.0.jar
install
https://repository.apache.org/content/repositories/snapshots/org/apache/axis2/org.apache.axis2.osgi/1.7.0-SNAPSHOT/org.apache.axis2.osgi-1.7.0-20111016.173117-341.jar
> Changes in Axiom OSGi support break Axis2 OSGi bundle
> -----------------------------------------------------
>
> Key: AXIS2-4902
> URL: https://issues.apache.org/jira/browse/AXIS2-4902
> Project: Axis2
> Issue Type: Bug
> Affects Versions: 1.5.2, 1.5.3
> Reporter: Andreas Veithen
> Assignee: Andreas Veithen
> Labels: osgi
>
> The problem:
> * In Axis2 1.5.2, we upgraded Axiom to 1.2.9, and Axis2 1.5.3 uses Axiom
> 1.2.10.
> * In r741656, David Illsley changed the way Axiom is OSGi-ified. In
> particular the axiom-impl bundle now has Private-Package: org.apache.axiom.*.
> This is of course entirely correct because other bundles should only depend
> on the Axiom API, not on classes of a particular implementation.
> * The Axis2 OSGi bundle has Import-Package: org.apache.axiom.om.impl.llom.
> The reason is that there is indeed code in Axis2 that depends directly on the
> LLOM implementation classes. This should of course not be the case, but
> that's the way it is for the moment.
> * There are no unit tests for the Axis2 OSGi bundle.
> Result: In Axis2 1.5.2, the OSGi bundle is broken because of the upgrade to
> Axiom 1.2.9. It is expected that this issue also affects the current trunk.
> Steps to reproduce (with Axis2 1.5.3):
> 1. Download, extract and start the Felix Framework Distribution.
> 2. Install the following bundles:
> install
> http://repo1.maven.org/maven2/org/apache/ws/commons/axiom/axiom-api/1.2.10/axiom-api-1.2.10.jar
> install
> http://repo1.maven.org/maven2/org/apache/ws/commons/axiom/axiom-impl/1.2.10/axiom-impl-1.2.10.jar
> install http://apache.megamobile.be//felix/org.apache.felix.scr-1.6.0.jar
> install
> http://repo1.maven.org/maven2/org/apache/axis2/org.apache.axis2.osgi/1.5.3/org.apache.axis2.osgi-1.5.3.jar
> install
> http://repo2.maven.org/maven2/org/apache/servicemix/bundles/org.apache.servicemix.bundles.wsdl4j/1.6.2_3/org.apache.servicemix.bundles.wsdl4j-1.6.2_3.jar
> install
> http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-activation_1.1_spec/1.1/geronimo-activation_1.1_spec-1.1.jar
> install
> http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar
> install
> http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-ws-metadata_2.0_spec/1.1.3/geronimo-ws-metadata_2.0_spec-1.1.3.jar
> install
> http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar
> install
> http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.2/geronimo-servlet_2.5_spec-1.2.jar
> install
> http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-stax-api_1.0_spec/1.0.1/geronimo-stax-api_1.0_spec-1.0.1.jar
> install
> http://repository.springsource.com/maven/bundles/external/org/apache/commons/com.springsource.org.apache.commons.logging/1.1.1/com.springsource.org.apache.commons.logging-1.1.1.jar
> 3. Attempt to start the Axis2 bundle.
> This results in the following error:
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.apache.axis2.osgi [8]: Unable to resolve 8.0: missing requirement [8.0]
> package; (package=org.apache.axiom.om.impl.llom)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]