4 Replies Latest reply: May 31, 2012 1:49 AM by mcr701 RSS

org.osgi.framework.system.packages provided by AS 7.1

Tim Diekmann Newbie

Which packages are provided by the SystemBundle out-of-the-box and what versions do they export?

 

Where can I find this information?

 

The absense of a console and the limited capabilities of the web console make this hard or impossible to find out.

 

Thanks,

 

  Tim.

  • 1. Re: org.osgi.framework.system.packages provided by AS 7.1
    Thomas Diesler Master

    It's in the log at DEBUG level

     

    09:15:04,990 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Framework properties
    09:15:04,991 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.version = 1.5
    09:15:04,991 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.jboss.osgi.system.packages = javax.accessibility, javax.activation, javax.activity, javax.annotation, javax.annotation.processing, javax.crypto, javax.crypto.interfaces, javax.crypto.spec, javax.imageio, javax.imageio.event, javax.imageio.metadata, javax.imageio.plugins.bmp, javax.imageio.plugins.jpeg, javax.imageio.spi, javax.imageio.stream, javax.jws, javax.jws.soap, javax.lang.model, javax.lang.model.element, javax.lang.model.type, javax.lang.model.util, javax.management, javax.management.loading, javax.management.modelmbean, javax.management.monitor, javax.management.openmbean, javax.management.relation, javax.management.remote, javax.management.remote.rmi, javax.management.timer, javax.naming, javax.naming.directory, javax.naming.event, javax.naming.ldap, javax.naming.spi, javax.net, javax.net.ssl, javax.print, javax.print.attribute, javax.print.attribute.standard, javax.print.event, javax.rmi, javax.rmi.CORBA, javax.rmi.ssl, javax.script, javax.security.auth, javax.security.auth.callback, javax.security.auth.kerberos, javax.security.auth.login, javax.security.auth.spi, javax.security.auth.x500, javax.security.cert, javax.security.sasl, javax.sound.midi, javax.sound.midi.spi, javax.sound.sampled, javax.sound.sampled.spi, javax.sql, javax.sql.rowset, javax.sql.rowset.serial, javax.sql.rowset.spi, javax.swing, javax.swing.border, javax.swing.colorchooser, javax.swing.event, javax.swing.filechooser, javax.swing.plaf, javax.swing.plaf.basic, javax.swing.plaf.metal, javax.swing.plaf.multi, javax.swing.plaf.synth, javax.swing.table, javax.swing.text, javax.swing.text.html, javax.swing.text.html.parser, javax.swing.text.rtf, javax.swing.tree, javax.swing.undo, javax.tools, javax.xml, javax.xml.bind, javax.xml.bind.annotation, javax.xml.bind.annotation.adapters, javax.xml.bind.attachment, javax.xml.bind.helpers, javax.xml.bind.util, javax.xml.crypto, javax.xml.crypto.dom, javax.xml.crypto.dsig, javax.xml.crypto.dsig.dom, javax.xml.crypto.dsig.keyinfo, javax.xml.crypto.dsig.spec, javax.xml.datatype, javax.xml.namespace, javax.xml.parsers, javax.xml.soap, javax.xml.stream, javax.xml.stream.events, javax.xml.stream.util, javax.xml.transform, javax.xml.transform.dom, javax.xml.transform.sax, javax.xml.transform.stax, javax.xml.transform.stream, javax.xml.validation, javax.xml.ws, javax.xml.ws.handler, javax.xml.ws.handler.soap, javax.xml.ws.http, javax.xml.ws.soap, javax.xml.ws.spi, javax.xml.ws.wsaddressing, javax.xml.xpath, org.ietf.jgss, org.w3c.dom, org.w3c.dom.bootstrap, org.w3c.dom.events, org.w3c.dom.ls, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers, org.jboss.modules;version=1.1, org.jboss.msc.service;version=1.0, org.jboss.osgi.deployment.deployer;version=1.0, org.jboss.osgi.deployment.interceptor;version=1.0, org.jboss.osgi.framework;version=1.0, org.jboss.osgi.framework.url;version=1.0, org.jboss.osgi.modules;version=1.0, org.jboss.osgi.spi.util;version=2.0, org.jboss.osgi.testing;version=2.0, org.jboss.osgi.vfs;version=1.0, org.osgi.framework;version=1.5, org.osgi.framework.hooks;version=1.0, org.osgi.framework.hooks.service;version=1.0, org.osgi.framework.launch;version=1.0, org.osgi.service.condpermadmin;version=1.1, org.osgi.service.packageadmin;version=1.2, org.osgi.service.permissionadmin;version=1.2, org.osgi.service.startlevel;version=1.1, org.osgi.service.url;version=1.0, org.osgi.util.tracker;version=1.4, org.osgi.util.xml;version=1.0, javax.inject, org.apache.xerces.jaxp, org.jboss.as.configadmin.service, org.jboss.as.osgi.service, org.jboss.logging;version=3.1.0, org.jboss.osgi.repository;version=1.0, org.jboss.osgi.resolver.v2;version=2.0, org.osgi.service.repository;version=1.0, org.osgi.framework.resource;version=1.0, org.osgi.framework.wiring;version=1.1, org.slf4j;version=1.6.1
    09:15:05,026 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.storage.clean = onFirstInit
    09:15:05,027 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.os.name = Linux
    09:15:05,028 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.startlevel.beginning = 1
    09:15:05,028 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.jboss.osgi.system.modules = javax.api,javax.inject.api,org.apache.xerces,org.jboss.as.configadmin,org.jboss.as.osgi,org.jboss.logging,org.jboss.modules,org.jboss.msc,org.jboss.osgi.framework,org.jboss.osgi.repository,org.slf4j
    09:15:05,029 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.executionenvironment = OSGi/Minimum-1.1, J2SE-1.1, OSGi/Minimum-1.2, J2SE-1.2, J2SE-1.3, J2SE-1.4, J2SE-1.5, JavaSE-1.6
    09:15:05,030 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.vendor = jboss.org
    09:15:05,030 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.system.packages.extra = javax.accessibility, javax.activation, javax.activity, javax.annotation, javax.annotation.processing, javax.crypto, javax.crypto.interfaces, javax.crypto.spec, javax.imageio, javax.imageio.event, javax.imageio.metadata, javax.imageio.plugins.bmp, javax.imageio.plugins.jpeg, javax.imageio.spi, javax.imageio.stream, javax.jws, javax.jws.soap, javax.lang.model, javax.lang.model.element, javax.lang.model.type, javax.lang.model.util, javax.management, javax.management.loading, javax.management.modelmbean, javax.management.monitor, javax.management.openmbean, javax.management.relation, javax.management.remote, javax.management.remote.rmi, javax.management.timer, javax.naming, javax.naming.directory, javax.naming.event, javax.naming.ldap, javax.naming.spi, javax.net, javax.net.ssl, javax.print, javax.print.attribute, javax.print.attribute.standard, javax.print.event, javax.rmi, javax.rmi.CORBA, javax.rmi.ssl, javax.script, javax.security.auth, javax.security.auth.callback, javax.security.auth.kerberos, javax.security.auth.login, javax.security.auth.spi, javax.security.auth.x500, javax.security.cert, javax.security.sasl, javax.sound.midi, javax.sound.midi.spi, javax.sound.sampled, javax.sound.sampled.spi, javax.sql, javax.sql.rowset, javax.sql.rowset.serial, javax.sql.rowset.spi, javax.swing, javax.swing.border, javax.swing.colorchooser, javax.swing.event, javax.swing.filechooser, javax.swing.plaf, javax.swing.plaf.basic, javax.swing.plaf.metal, javax.swing.plaf.multi, javax.swing.plaf.synth, javax.swing.table, javax.swing.text, javax.swing.text.html, javax.swing.text.html.parser, javax.swing.text.rtf, javax.swing.tree, javax.swing.undo, javax.tools, javax.xml, javax.xml.bind, javax.xml.bind.annotation, javax.xml.bind.annotation.adapters, javax.xml.bind.attachment, javax.xml.bind.helpers, javax.xml.bind.util, javax.xml.crypto, javax.xml.crypto.dom, javax.xml.crypto.dsig, javax.xml.crypto.dsig.dom, javax.xml.crypto.dsig.keyinfo, javax.xml.crypto.dsig.spec, javax.xml.datatype, javax.xml.namespace, javax.xml.parsers, javax.xml.soap, javax.xml.stream, javax.xml.stream.events, javax.xml.stream.util, javax.xml.transform, javax.xml.transform.dom, javax.xml.transform.sax, javax.xml.transform.stax, javax.xml.transform.stream, javax.xml.validation, javax.xml.ws, javax.xml.ws.handler, javax.xml.ws.handler.soap, javax.xml.ws.http, javax.xml.ws.soap, javax.xml.ws.spi, javax.xml.ws.wsaddressing, javax.xml.xpath, org.ietf.jgss, org.w3c.dom, org.w3c.dom.bootstrap, org.w3c.dom.events, org.w3c.dom.ls, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers, org.jboss.modules;version=1.1, org.jboss.msc.service;version=1.0, org.jboss.osgi.deployment.deployer;version=1.0, org.jboss.osgi.deployment.interceptor;version=1.0, org.jboss.osgi.framework;version=1.0, org.jboss.osgi.framework.url;version=1.0, org.jboss.osgi.modules;version=1.0, org.jboss.osgi.spi.util;version=2.0, org.jboss.osgi.testing;version=2.0, org.jboss.osgi.vfs;version=1.0, org.osgi.framework;version=1.5, org.osgi.framework.hooks;version=1.0, org.osgi.framework.hooks.service;version=1.0, org.osgi.framework.launch;version=1.0, org.osgi.service.condpermadmin;version=1.1, org.osgi.service.packageadmin;version=1.2, org.osgi.service.permissionadmin;version=1.2, org.osgi.service.startlevel;version=1.1, org.osgi.service.url;version=1.0, org.osgi.util.tracker;version=1.4, org.osgi.util.xml;version=1.0, javax.inject, org.apache.xerces.jaxp, org.jboss.as.configadmin.service, org.jboss.as.osgi.service, org.jboss.logging;version=3.1.0, org.jboss.osgi.repository;version=1.0, org.jboss.osgi.resolver.v2;version=2.0, org.osgi.service.repository;version=1.0, org.osgi.framework.resource;version=1.0, org.osgi.framework.wiring;version=1.1, org.slf4j;version=1.6.1
    09:15:05,082 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.language = en
    09:15:05,082 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.os.version = 3.2
    09:15:05,083 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.service.http.port = 8090
    09:15:05,083 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.storage = /home/tdiesler/git/jboss-as-7.1.0.Final/build/target/jboss-as-7.1.0.Final/standalone/data/osgi-store
    09:15:05,084 DEBUG [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3)  org.osgi.framework.processor = amd64
    
  • 2. Re: org.osgi.framework.system.packages provided by AS 7.1
    mcr701 Newbie

    I'm having trouble with javax.api module, which I guess is supposed to export javax.xml.parsers package.

    My problem is that I get NoClassDefFoundError: javax.xml.parsers.DocumentBuilderFactory.

    Later on, I also get the same for org.xml.sax.EntityResolver

     

    I'm trying to install Apache CXF D-OSGI single bundle version.

     

    I also got similar errors while trying to install Apache Camel 2.9.2 / 2.10. With Camel, I got ClassNotFound exceptions

    on JAXBException. With Camel, I was able to move on by adding

     

    <property name="org.jboss.osgi.system.modules.extra">

      javax.xml.bind.api

    </property>

     

    Inspired by some success with Camel (it is not fully funtional), I tried to add this property

    <property name="org.jboss.osgi.system.modules.extra">

      javax.api

    </property>

     

    But it did not help. I'm still getting classnotfound on javax.xml.parsers.DocumentBuilderFactory

    Any ideas?

     

    thanks,

      Mika

  • 3. Re: org.osgi.framework.system.packages provided by AS 7.1
    Thomas Diesler Master

    We have test coverage for this. See https://github.com/tdiesler/jboss-as/tree/master/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/osgi/jaxp

     

    Perhaps you have missing package imports. You could also put the log level to DEBUG and see if the packages wire as you expect.

  • 4. Re: org.osgi.framework.system.packages provided by AS 7.1
    mcr701 Newbie

    I was able to deploy CXF bundels by following David's instructions in here: https://community.jboss.org/message/637866#637866

    I'm not sure what was the key to get it working, but I _think_ it was having "javax.api" declared as a capability, like

    <capability name="javax.api" />

     

    For the testcase, I think this is not correct :

     

    public void testDocumentBuilderFactoryService() {

         ...

         assertNotNull("ServiceReference not null");

         ...

    }