[
https://issues.jboss.org/browse/AS7-6924?page=com.atlassian.jira.plugin.s...
]
Thomas Diesler edited comment on AS7-6924 at 4/17/13 3:31 AM:
--------------------------------------------------------------
Package capabilities that are considered user configuration are unlikely to get added to
the default configuration.
You have three options:
# Find a 3rd party bundle that provides them
# Find a module in the AS distribution that contains these packages
# Add them to the configuration as FRAMEWORK_SYSTEMPACKAGES_EXTRA
With the second option you can rely on auto-generated package capabilities or you could
define osgi metadata explicitly in jbosgi-xservice.properties like we do for the
javax.persistence.api module.
However, I see these packages being exported by the system module
{code}
09:20:12,971 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.sql,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,971 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.sql.rowset,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,971 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.sql.rowset.serial,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,971 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.sql.rowset.spi,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
...
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dom,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dsig,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dsig.dom,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dsig.keyinfo,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dsig.spec,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.datatype,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.namespace,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.parsers,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.stream,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.stream.events,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.stream.util,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform.dom,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform.sax,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform.stax,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,975 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform.stream,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,975 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.validation,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,975 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.xpath,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
{code}
The javax.xml.stream API should however work out of the box. We have test coverage in the
jbosgi project for that but not in the AS testsuite AFAICS. Let me add that - it could
help to get at the bottom of this.
was (Author: thomas.diesler):
Package capabilities that are considered user configuration are unlikely to get added
to the default configuration.
You have three options:
# Find a 3rd party bundle that provides them
# Find a module in the AS distribution that contains these packages
# Add them to the configuration as FRAMEWORK_SYSTEMPACKAGES_EXTRA
With the second option you can rely on auto-generated package capabilities or you could
define osgi metadata explicitly in jbosgi-xservice.properties like we do for the
javax.persistence.api module.
However, I see these packages being exported by the system module
{code}
09:20:12,971 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.sql,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,971 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.sql.rowset,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,971 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.sql.rowset.serial,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,971 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.sql.rowset.spi,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
...
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dom,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dsig,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dsig.dom,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,973 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dsig.keyinfo,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.crypto.dsig.spec,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.datatype,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.namespace,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.parsers,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.stream,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.stream.events,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.stream.util,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform.dom,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform.sax,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,974 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform.stax,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,975 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.transform.stream,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,975 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.validation,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
09:20:12,975 DEBUG [org.jboss.osgi.resolver] (MSC service thread 1-8)
XPackageCapability[atts={osgi.wiring.package=javax.xml.xpath,
bundle-symbolic-name=system.bundle, bundle-version=0.0.0},[system.bundle:0.0.0]]
{code}
javax.xml.stream.events package not exported to OSGi bundles
------------------------------------------------------------
Key: AS7-6924
URL:
https://issues.jboss.org/browse/AS7-6924
Project: Application Server 7
Issue Type: Bug
Components: OSGi, XML Frameworks
Affects Versions: 8.0.0.Alpha1
Reporter: Aaron Whiteside
Assignee: Thomas Diesler
{code}
12:53:16,935 WARN [org.jboss.as.osgi] (MSC service thread 1-8) JBAS011910: Cannot
resolve requirements:
[XPackageRequirement[dirs={filter=(&(osgi.wiring.package=javax.xml.stream.events)(version>=0.0.0))},[org.springframework.core:3.2.2.RELEASE]]]
12:53:16,940 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015970:
Defer FIRST_MODULE_USE for org.springframework.core-3.2.2.RELEASE.jar making it NEVER
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira