<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.redhat.com/page.cgi?id=bugzilla.dtd">

<bugzilla version="4.4.12063.3"
          urlbase="https://bugzilla.redhat.com/"
          
          maintainer="bugzilla-owner@redhat.com"
>

    <bug>
          <bug_id>1235627</bug_id>
          
          <creation_ts>2015-06-25 07:11:00 -0400</creation_ts>
          <short_desc>[GSS] (6.4.z) Annotation must be scanned regardless of the version of web.xml unless metadata-complete is explicitly set to true</short_desc>
          <delta_ts>2016-01-22 01:42:06 -0500</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>JBoss</classification>
          <product>JBoss Enterprise Application Platform 6</product>
          <component>Web</component>
          <version>6.4.1</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>unspecified</priority>
          <bug_severity>unspecified</bug_severity>
          <target_milestone>CR1</target_milestone>
          
          <blocked>1235746</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Masafumi Miura">mmiura</reporter>
          <assigned_to name="Tomas Hofman">thofman</assigned_to>
          <cc>bmaxwell</cc>
    
    
    <cc>cdewolf</cc>
    
    
    <cc>chaowan</cc>
    
    
    <cc>istudens</cc>
    
    
    <cc>jawilson</cc>
    
    
    <cc>rhatlapa</cc>
    
    
    <cc>rmaucher</cc>
    
    
    <cc>thofman</cc>
          <qa_contact name="Radim Hatlapatka">rhatlapa</qa_contact>
          
          <cf_fixed_in></cf_fixed_in>
          <cf_doc_type>Bug Fix</cf_doc_type>
          <cf_release_notes></cf_release_notes>
          <cf_story_points>---</cf_story_points>
          
          <cf_environment></cf_environment>
          
          <cf_type>Bug</cf_type>
          <cf_regression_status>---</cf_regression_status>
          <cf_mount_type>---</cf_mount_type>
          <cf_documentation_action>---</cf_documentation_action>
          <cf_crm></cf_crm>
          <cf_verified_branch></cf_verified_branch>
          <cf_category>---</cf_category>
          <cf_ovirt_team>---</cf_ovirt_team>
          
          <cf_cloudforms_team>---</cf_cloudforms_team>
          <external_bugs name="JBoss Issue Tracker">WFLY-4839</external_bugs>
    
    
    
    <external_bugs name="Red Hat Knowledge Base (Solution)">1499103</external_bugs>
          
          
          
          <target_release>EAP 6.4.6</target_release>
          
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8371204</commentid>
    <comment_count>0</comment_count>
    <who name="Masafumi Miura">mmiura</who>
    <bug_when>2015-06-25 07:11:12 -0400</bug_when>
    <thetext>### Description of problem:

Annotation must be scanned regardless of the version of web.xml unless metadata-complete is explicitly set to true.

Note that Servlet 3.0 specification clearly states the following:

~~~
1.6.2 Processing annotations
In Servlet 2.5, metadata-complete only affected the scanning of annotations at
deployment time. The notion of web-fragments did not exist in servlet 2.5. However
in servlet 3.0 metadata-complete affects scanning of all annotations and web-
fragments at deployment time. The version of the descriptor MUST not affect which
annotations you scan for in a web application. An implementation of a particular
version of the specification MUST scan for all annotations supported in that
configuration, unless metadata-complete is specified.
~~~


### How reproducible:

Anytime


### Steps to Reproduce:

1. Create a library jar which contains a servlet filter using @WebFilter 
2. Put the jar under WEB-INF/lib of the web application which web.xml version is 2.3 or 2.4
3. Start JBoss EAP 6
4. Access the web application and see if the servlet filter works


### Actual results:

The servlet filter is not invoked


### Expected results:

The servlet filter is invoked


### Additional info:

It works when the version of web.xml is 2.5 or 3.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8381704</commentid>
    <comment_count>3</comment_count>
    <who name="Tomas Hofman">thofman</who>
    <bug_when>2015-06-29 09:26:36 -0400</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8381838</commentid>
    <comment_count>4</comment_count>
    <who name="Tomas Hofman">thofman</who>
    <bug_when>2015-06-29 09:33:32 -0400</bug_when>
    <thetext>PR: https://github.com/jbossas/jboss-eap/pull/2468</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8999024</commentid>
    <comment_count>8</comment_count>
    <who name="Radim Hatlapatka">rhatlapa</who>
    <bug_when>2016-01-21 05:47:15 -0500</bug_when>
    <thetext>Verified with EAP 6.4.6.CP.CR2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>