Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.2.Final
    • Fix Version/s: 7.1.0.Beta1
    • Component/s: EE, OSGi
    • Labels:
      None
    • Workaround Description:
      Hide

      1) Add modules to system module list:

      <property name="org.jboss.osgi.system.modules">
      org.apache.commons.logging,
      org.apache.log4j,
      org.jboss.as.osgi,
      org.slf4j,
      javax.transaction.api,
      javax.jms.api,
      </property>

      2) And re-declare packages they export with the correct version

      <property name="org.osgi.framework.system.packages.extra">
      org.apache.commons.logging;version=1.1.1,
      org.apache.log4j;version=1.2,
      org.jboss.as.osgi.service;version=7.0,
      org.jboss.osgi.deployment.interceptor;version=1.0,
      org.jboss.osgi.spi.capability;version=1.0,
      org.jboss.osgi.spi.util;version=1.0,
      org.jboss.osgi.testing;version=1.0,
      org.jboss.osgi.vfs;version=1.0,
      org.slf4j;version=1.5.10,
      javax.transaction;version=1.0.1,
      javax.transaction.xa;version=1.0.1,
      javax.jms;version=1.1,
      </property>

      Show
      1) Add modules to system module list: <property name="org.jboss.osgi.system.modules"> org.apache.commons.logging, org.apache.log4j, org.jboss.as.osgi, org.slf4j, javax.transaction.api, javax.jms.api, </property> 2) And re-declare packages they export with the correct version <property name="org.osgi.framework.system.packages.extra"> org.apache.commons.logging;version=1.1.1, org.apache.log4j;version=1.2, org.jboss.as.osgi.service;version=7.0, org.jboss.osgi.deployment.interceptor;version=1.0, org.jboss.osgi.spi.capability;version=1.0, org.jboss.osgi.spi.util;version=1.0, org.jboss.osgi.testing;version=1.0, org.jboss.osgi.vfs;version=1.0, org.slf4j;version=1.5.10, javax.transaction;version=1.0.1, javax.transaction.xa;version=1.0.1, javax.jms;version=1.1, </property>

      Description

      Currently all packages exported by the module javaee.api to OSGi land are exported with version 0.0.0.

      A lot of existing bundles that use classes/packages from javax.* specify a version, which makes this not work correctly in JBoss 7 AS.

      This makes bundles that depend on for example: javax.jms;version=1.1 not work.

      The correct version information should be exported by the javaee.api bundle. Because at the moment it's pretty much useless with the existing libraries/bundles.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thomas.diesler Thomas Diesler
                  Reporter:
                  Aaron.Whiteside Aaron Whiteside
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: