[shrinkwrap-issues] [JBoss JIRA] Resolved: (SHRINKWRAP-266) Manifest container for WebArchive should be WEB-INF/classes/META-INF
Andrew Rubinger (JIRA)
jira-events at lists.jboss.org
Tue May 31 18:06:01 EDT 2011
[ https://issues.jboss.org/browse/SHRINKWRAP-266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Rubinger resolved SHRINKWRAP-266.
----------------------------------------
Fix Version/s: 1.0.0-beta-3
Resolution: Done
Upstream:
https://github.com/shrinkwrap/shrinkwrap/commit/cf1978be1ab078781108e92005b21a352654162a
https://github.com/shrinkwrap/shrinkwrap/commit/cf1978be1ab078781108e92005b21a352654162a
> Manifest container for WebArchive should be WEB-INF/classes/META-INF
> --------------------------------------------------------------------
>
> Key: SHRINKWRAP-266
> URL: https://issues.jboss.org/browse/SHRINKWRAP-266
> Project: ShrinkWrap
> Issue Type: Bug
> Components: impl-base
> Affects Versions: 1.0.0-alpha-12
> Reporter: Dan Allen
> Assignee: Tommy Tynjä
> Fix For: 1.0.0-beta-3
>
>
> This issue is a regression of SHRINKWRAP-186. The location of the ManifestContainer for a WebArchive should be /WEB-INF/classes/META-INF, not /META-INF. This location is backed up by our target locations per archive type page.
> http://community.jboss.org/wiki/Containerrootsperspecarchive
> A sample use case is bundling a persistence.xml in a web archive:
> {code:java}
> WebArchive war = ShrinkWrap.create(WebArchive.class, "test.war")
> .addAsManifestResource("test-persistence.xml", "persistence.xml");
> System.out.println(war.toString(true));
> {code}
> Current output:
> {code}
> test.war
> /META-INF/
> /META-INF/persistence.xml
> {code}
> Expected output:
> {code}
> test.war
> /WEB-INF/
> /WEB-INF/classes/
> /WEB-INF/classes/persistence.xml
> {code}
> This also breaks the ServiceLoader registrations, as they appear in /META-INF/services/ rather than in /WEB-INF/classes/META-INF/services/
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the shrinkwrap-issues
mailing list