[jboss-jira] [JBoss JIRA] (AS7-5065) WEB-INF/classes always created as ResourceRoot

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Mon Jun 25 09:20:12 EDT 2012


     [ https://issues.jboss.org/browse/AS7-5065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler updated AS7-5065:
--------------------------------

    Description: 
WEB-INF/class is created as ResourceRoot even if it does not exist. Various DUPs (not only in the web subsystem) seem to rely on this bug with code like this

{code}
// look for persistence.xml in war files in the META-INF/persistence.xml directory
List<ResourceRoot> resourceRoots = deploymentUnit.getAttachment(Attachments.RESOURCE_ROOTS);
assert resourceRoots != null;
for (ResourceRoot resourceRoot : resourceRoots) {
{code}



  was:WEB-INF/class is created as ResourceRoot even if it daoes not exist


    
> WEB-INF/classes always created as ResourceRoot
> ----------------------------------------------
>
>                 Key: AS7-5065
>                 URL: https://issues.jboss.org/browse/AS7-5065
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: OSGi, Web
>            Reporter: Thomas Diesler
>            Assignee: Thomas Diesler
>
> WEB-INF/class is created as ResourceRoot even if it does not exist. Various DUPs (not only in the web subsystem) seem to rely on this bug with code like this
> {code}
> // look for persistence.xml in war files in the META-INF/persistence.xml directory
> List<ResourceRoot> resourceRoots = deploymentUnit.getAttachment(Attachments.RESOURCE_ROOTS);
> assert resourceRoots != null;
> for (ResourceRoot resourceRoot : resourceRoots) {
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list