[jbosstools-issues] [JBoss JIRA] (JBIDE-14782) Add ShrinkWrap Archive file location validation
Aslak Knutsen (JIRA)
jira-events at lists.jboss.org
Fri Jun 7 00:55:54 EDT 2013
[ https://issues.jboss.org/browse/JBIDE-14782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aslak Knutsen updated JBIDE-14782:
----------------------------------
Description:
*Given*
A Deployment method
*When*
{code}
war.addAsManifestResource(X, "beans.xml")
ear.addAsManifestResource(X, "beans.xml")
war.addAsManifestResource(X, "persistence.xml")
{code}
*Then*
Warn that known EE descriptor files are in the wrong location
Some mapping on top of my head:
WebArchive
{code}
web.xml -> /WEB-INF/
web-fragment.xml -> Not supported ?
beans.xml -> /WEB-INF/
persistence.xml -> /WEB-INF/classes/META-INF/
ejb-jar.xml -> /WEB-INF/classes/META-INF/
{code}
JavaArchive
{code}
web.xml -> Not supported
web-fragment.xml -> /META-INF/
beans.xml -> /META-INF/
persistence.xml -> /META-INF/
ejb-jar.xml -> /META-INF/
{code}
EnterpriseArchive
{code}
beans.xml -> Not supported
persistence.xml -> Not supported
ejb-jar.xml -> Not supported
application.xml -> /META-INF/
{code}
One common mistake is using addAsManifestResource on WebArchives. A quickfix / suggestion would be to use addAsWebInfResource for the files located in /WEb-INF/
was:
*Given*
A Deployment method
*When*
{code}
war.addAsManifestResource(X, "beans.xml")
ear.addAsManifestResource(X, "beans.xml")
war.addAsManifestResource(X, "persistence.xml")
{code}
*Then*
Warn that known EE descriptor files are in the wrong location
Some mapping on top of my head:
WebArchive
web.xml -> /WEB-INF/
web-fragment.xml -> Not supported ?
beans.xml -> /WEB-INF/
persistence.xml -> /WEB-INF/classes/META-INF/
ejb-jar.xml -> /WEB-INF/classes/META-INF/
JavaArchive
web.xml -> Not supported
web-fragment.xml -> /META-INF/
beans.xml -> /META-INF/
persistence.xml -> /META-INF/
ejb-jar.xml -> /META-INF/
EnterpriseArchive
beans.xml -> Not supported
persistence.xml -> Not supported
ejb-jar.xml -> Not supported
application.xml -> /META-INF/
One common mistake is using addAsManifestResource on WebArchives. A quickfix / suggestion would be to use addAsWebInfResource for the files located in /WEb-INF/
> Add ShrinkWrap Archive file location validation
> -----------------------------------------------
>
> Key: JBIDE-14782
> URL: https://issues.jboss.org/browse/JBIDE-14782
> Project: Tools (JBoss Tools)
> Issue Type: Sub-task
> Components: testing-tools
> Reporter: Aslak Knutsen
> Fix For: 4.1.0.Beta2
>
>
> *Given*
> A Deployment method
> *When*
> {code}
> war.addAsManifestResource(X, "beans.xml")
> ear.addAsManifestResource(X, "beans.xml")
> war.addAsManifestResource(X, "persistence.xml")
> {code}
> *Then*
> Warn that known EE descriptor files are in the wrong location
> Some mapping on top of my head:
> WebArchive
> {code}
> web.xml -> /WEB-INF/
> web-fragment.xml -> Not supported ?
> beans.xml -> /WEB-INF/
> persistence.xml -> /WEB-INF/classes/META-INF/
> ejb-jar.xml -> /WEB-INF/classes/META-INF/
> {code}
> JavaArchive
> {code}
> web.xml -> Not supported
> web-fragment.xml -> /META-INF/
> beans.xml -> /META-INF/
> persistence.xml -> /META-INF/
> ejb-jar.xml -> /META-INF/
> {code}
> EnterpriseArchive
> {code}
> beans.xml -> Not supported
> persistence.xml -> Not supported
> ejb-jar.xml -> Not supported
> application.xml -> /META-INF/
> {code}
> One common mistake is using addAsManifestResource on WebArchives. A quickfix / suggestion would be to use addAsWebInfResource for the files located in /WEb-INF/
--
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
More information about the jbosstools-issues
mailing list