[
https://issues.jboss.org/browse/AS7-937?page=com.atlassian.jira.plugin.sy...
]
David Bosschaert updated AS7-937:
---------------------------------
Attachment: org.apache.aries.spifly.examples.provider1.bundle-0.4-SNAPSHOT.jar
org.apache.aries.spifly.examples.spi.bundle-0.4-SNAPSHOT.jar
the spi.bundle contains an interface needed by the provider1 bundle. The provider1 bundle
exposes the problem.
URL.openStream() on URL returned from bundle.getResource() returns a
zero-byte stream
-------------------------------------------------------------------------------------
Key: AS7-937
URL:
https://issues.jboss.org/browse/AS7-937
Project: Application Server 7
Issue Type: Bug
Components: OSGi
Affects Versions: 7.0.0.CR1
Reporter: David Bosschaert
Attachments: org.apache.aries.spifly.examples.provider1.bundle-0.4-SNAPSHOT.jar,
org.apache.aries.spifly.examples.spi.bundle-0.4-SNAPSHOT.jar
The attached bundle contains an embedded jar file which is referenced to by the
Bundle-ClassPath.
Calling
bundle.getResource("org.apache.aries.spifly.examples.provider1.jar-0.4-SNAPSHOT.jar")
does return a URL.
{code}bundle.getResource("org.apache.aries.spifly.examples.provider1.jar-0.4-SNAPSHOT.jar")
(java.net.URL)
bundle://org.apache.aries.spifly.examples.provider1.bundle-22-0-0/org.apache.aries.spifly.examples.provider1.jar-0.4-SNAPSHOT.jar/{code}
but opening that URL and reading the bytes yields 0 bytes.
This only seems to be an issue with URLs that refer to jar files. Other resources are
readable without problems.
BTW this works fine on Equinox and Felix.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira