[
https://issues.jboss.org/browse/SHRINKWRAP-276?page=com.atlassian.jira.pl...
]
Jesper Pedersen updated SHRINKWRAP-276:
---------------------------------------
Attachment: TestActivationSpec.java
TestResourceAdapterWrong.java
TestManagedConnection.java
TestResourceAdapterRight.java
ra.xml
ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class,
archiveName);
JavaArchive ja = ShrinkWrap.create(JavaArchive.class, UUID.randomUUID().toString() +
".jar");
ja.addClasses(TestActivationSpec.class, TestManagedConnection.class,
TestResourceAdapterRight.class,
TestResourceAdapterWrong.class);
raa.addAsLibrary(ja);
raa.addAsManifestResource("validator/" + archiveName +
"/META-INF/ra.xml", "ra.xml");
return raa;
Invalid byte stream for ZipExporter
-----------------------------------
Key: SHRINKWRAP-276
URL:
https://issues.jboss.org/browse/SHRINKWRAP-276
Project: ShrinkWrap
Issue Type: Bug
Components: api
Affects Versions: 1.0.0-alpha-13
Reporter: Jesper Pedersen
Attachments: as_constructor_wrong.rar, ra.xml, TestActivationSpec.java,
TestManagedConnection.java, TestResourceAdapterRight.java, TestResourceAdapterWrong.java
Alpha13 generates an incorrect byte stream for a ResourceAdapterArchive; the resulting
archive gives:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:114)
at java.util.zip.ZipFile.<init>(ZipFile.java:75)
at sun.tools.jar.Main.list(Main.java:979)
at sun.tools.jar.Main.run(Main.java:224)
at sun.tools.jar.Main.main(Main.java:1149)
Alpha12 works as expected.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira