[
https://jira.jboss.org/browse/ARQ-208?page=com.atlassian.jira.plugin.syst...
]
David Bosschaert commented on ARQ-208:
--------------------------------------
Unfortunately the workaround doesn't work for Felix, only for JBossOSGi and in Felix
the ZipExporterClass will get loaded through the bundle loader for the aquillian-bundle
probably because it doesn't import that package. Ultimately it causes a
classcastexception...
arquillian-bundle.jar does not export-package
org.jboss.shrinkwrap.api.exporter
-------------------------------------------------------------------------------
Key: ARQ-208
URL:
https://jira.jboss.org/browse/ARQ-208
Project: Arquillian
Issue Type: Bug
Components: OSGi Containers
Reporter: David Bosschaert
This means that the following code won't work from inside an Arquillian OSGi test:
JavaArchive jar = ShrinkWrap.create("test1.jar", JavaArchive.class);
ZipExporter ze = jar.as(ZipExporter.class);
as this requires the import-package of org.jboss.shrinkwrap.api.exporter.
Looking at the API jar, the following packages should probably also be exported:
org.jboss.shrinkwrap.api.container
org.jboss.shrinkwrap.api.formatter
org.jboss.shrinkwrap.api.importer
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira