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

Some of the versions for Import-Package headers are too restrictive

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.7.5
    • Component/s: kernel
    • Labels:
      None

      Description

      The MF has the following Import-Package header. Some of the versions are too restrictive:

      For example:
      javax.jms;version="1.1", won't be statified by 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 which exports the javax.jms without a version (default to 0.0.0).

      So are the servlet apis.

      The other issue is that the import version 0.0.0 can only be satified by an export package with 0.0.0. for example, javax.xml.namespace;version="0.0.0", cannot be supplied by an export package with version 1.0. We should remove the 0.0.0.

      Import-Package: com.ibm.wsdl.util.xml,
      javax.activation;version="1.1",
      javax.jms;version="1.1",
      javax.jws;version="2.0",
      javax.mail;version="1.4",
      javax.mail.internet;version="1.4",
      javax.mail.util;version="1.4",
      javax.management,
      javax.naming;resolution:=optional,
      javax.rmi;resolution:=optional,
      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;version="0.0.0",
      javax.xml.parsers;resolution:=optional,
      javax.xml.stream;resolution:=optional;version="1.0",
      javax.xml.transform;resolution:=optional,
      javax.xml.transform.dom;resolution:=optional,
      javax.xml.transform.stream;resolution:=optional,
      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.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;version="1.4",
      org.apache.commons.lang;resolution:=optional,
      org.apache.commons.logging,
      org.apache.http;resolution:=optional,
      org.apache.http.entity;resolution:=optional,
      org.apache.http.impl;resolution:=optional,
      org.apache.http.impl.entity;resolution:=optional,
      org.apache.http.impl.io;resolution:=optional,
      org.apache.http.io;resolution:=optional,
      org.apache.http.message;resolution:=optional,
      org.apache.http.params;resolution:=optional,
      org.apache.http.protocol;resolution:=optional,
      org.apache.http.util;resolution:=optional,
      org.apache.neethi,
      org.apache.woden;version="0.0.0",
      org.apache.woden.internal;version="0.0.0",
      org.apache.woden.internal.wsdl20;version="0.0.0",
      org.apache.woden.internal.wsdl20.extensions;version="0.0.0",
      org.apache.woden.internal.wsdl20.extensions.http;version="0.0.0",
      org.apache.woden.internal.wsdl20.extensions.soap;version="0.0.0",
      org.apache.woden.resolver;version="0.0.0",
      org.apache.woden.schema;version="0.0.0",
      org.apache.woden.types;version="0.0.0",
      org.apache.woden.wsdl20;version="0.0.0",
      org.apache.woden.wsdl20.enumeration;version="0.0.0",
      org.apache.woden.wsdl20.extensions;version="0.0.0",
      org.apache.woden.wsdl20.extensions.http;version="0.0.0",
      org.apache.woden.wsdl20.extensions.rpc;version="0.0.0",
      org.apache.woden.wsdl20.extensions.soap;version="0.0.0",
      org.apache.woden.wsdl20.xml;version="0.0.0",
      org.apache.woden.xml;version="0.0.0",
      org.apache.ws.commons.schema,
      org.apache.ws.commons.schema.constants,
      org.apache.ws.commons.schema.resolver,
      org.apache.ws.commons.schema.utils,
      org.osgi.framework;version="1.3.0",
      org.osgi.service.cm;version="1.2.0",
      org.osgi.service.http;version="1.2.0",
      org.osgi.service.log;version="1.3",
      org.osgi.util.tracker;version="1.3.1",
      org.w3c.dom;resolution:=optional,
      org.xml.sax;resolution:=optional

        Activity

        Hide
        rfeng Raymond Feng added a comment -

        I should mention the MF is from the org.apache.axis2.osgi module.

        Show
        rfeng Raymond Feng added a comment - I should mention the MF is from the org.apache.axis2.osgi module.
        Hide
        kristoffer Kristoffer Peterhänsel added a comment -

        I've had to remove the version of javax.xml.stream to get rid of a LinkageError, since everything else use the version supplied by the JVM. But I'd have to deploy a javax.xml.stream with version 1.0 to make AXIS2 happy.

        Show
        kristoffer Kristoffer Peterhänsel added a comment - I've had to remove the version of javax.xml.stream to get rid of a LinkageError, since everything else use the version supplied by the JVM. But I'd have to deploy a javax.xml.stream with version 1.0 to make AXIS2 happy.
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Axis2 #3700 (See https://builds.apache.org/job/Axis2/3700/)
        AXIS2-4310: Remove unnecessary JMS import from OSGi bundle. (veithen: rev 1793723)

        • (edit) axis2/modules/osgi-tests/pom.xml
        • (edit) axis2/modules/osgi-tests/src/test/java/OSGiTest.java
        • (edit) axis2/modules/osgi/pom.xml
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Axis2 #3700 (See https://builds.apache.org/job/Axis2/3700/ ) AXIS2-4310 : Remove unnecessary JMS import from OSGi bundle. (veithen: rev 1793723) (edit) axis2/modules/osgi-tests/pom.xml (edit) axis2/modules/osgi-tests/src/test/java/OSGiTest.java (edit) axis2/modules/osgi/pom.xml
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Axis2 #3701 (See https://builds.apache.org/job/Axis2/3701/)
        AXIS2-4310: Remove the 0.0.0 version from the Import-Package for javax.xml.namespace. (veithen: rev 1793724)

        • (edit) axis2/modules/osgi/pom.xml
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Axis2 #3701 (See https://builds.apache.org/job/Axis2/3701/ ) AXIS2-4310 : Remove the 0.0.0 version from the Import-Package for javax.xml.namespace. (veithen: rev 1793724) (edit) axis2/modules/osgi/pom.xml
        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build axis2-1.7 #115 (See https://builds.apache.org/job/axis2-1.7/115/)
        AXIS2-4310: Merge r1793724 to the 1.7 branch. (veithen: rev 1793888)

        • (edit) axis2
        • (edit) axis2/modules/osgi/pom.xml
          AXIS2-4310: Merge r1793723 to the 1.7 branch. (veithen: rev 1793878)
        • (edit) axis2
        • (edit) axis2/modules/osgi-tests/pom.xml
        • (edit) axis2/modules/osgi-tests/src/test/java/OSGiTest.java
        • (edit) axis2/modules/osgi/pom.xml
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build axis2-1.7 #115 (See https://builds.apache.org/job/axis2-1.7/115/ ) AXIS2-4310 : Merge r1793724 to the 1.7 branch. (veithen: rev 1793888) (edit) axis2 (edit) axis2/modules/osgi/pom.xml AXIS2-4310 : Merge r1793723 to the 1.7 branch. (veithen: rev 1793878) (edit) axis2 (edit) axis2/modules/osgi-tests/pom.xml (edit) axis2/modules/osgi-tests/src/test/java/OSGiTest.java (edit) axis2/modules/osgi/pom.xml
        Hide
        veithen Andreas Veithen added a comment -

        javax.jms is actually not used. I agree that for packages that are present in the JRE, version should be 0 or absent. However, I disagree with removing the version from javax.servlet because it is important to indicate the minimum required version and since that package is not provided by the JRE, I expect it to have a proper version number.

        Show
        veithen Andreas Veithen added a comment - javax.jms is actually not used. I agree that for packages that are present in the JRE, version should be 0 or absent. However, I disagree with removing the version from javax.servlet because it is important to indicate the minimum required version and since that package is not provided by the JRE, I expect it to have a proper version number.

          People

          • Assignee:
            Unassigned
            Reporter:
            rfeng Raymond Feng
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development