[jboss-jira] [JBoss JIRA] (AS7-2974) Web fragments and annotations are processed although web.xml is metadata-complete

Robert Panzer (Updated) (JIRA) jira-events at lists.jboss.org
Mon Dec 12 05:57:09 EST 2011


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

Robert Panzer updated AS7-2974:
-------------------------------

    Attachment: MetadataTest.ear


The ear contains a webapp with a web.xml that only defines a servlet without any resource-refs and is metadata-complete.

Inside the webapp is a fragment that defines a resource-ref. This fragment contains a servlet trying to lookup this resource-ref which should fail, but it succeeds.
                
> Web fragments and annotations are processed although web.xml is metadata-complete
> ---------------------------------------------------------------------------------
>
>                 Key: AS7-2974
>                 URL: https://issues.jboss.org/browse/AS7-2974
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Web
>    Affects Versions: 7.1.0.Beta1
>         Environment: JBoss 7.1.0.Beta1 (Current Snapshot), Win7 64Bit, Jdk 1.6.0_29 64Bit
>            Reporter: Robert Panzer
>            Assignee: Remy Maucherat
>         Attachments: MetadataTest.ear
>
>
> When deploying a web application the WarMetaDataProcessor merges information from web-fragment.xmls and annotations although the web.xml has an attribute metadata-complete="true"
> The specification is pretty clear about how this scenario has to be handled and defines in chapter 8.4:
> Deployment descriptor metadata-complete process annotations and web fragments
> web.xml 2.5           Yes               No
> web.xml 2.5           no                yes
> web.xml 3.0           yes               no
> web.xml 3.0           no                yes

--
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