Filter not invoked for matching /* path on EAP 7
Issue
- After upgrading to EAP 7 from EAP 6, we note a servlet filter is not invoked as expected when configured with a matching /* path like below. /MyServlet requests do not have the filter invoked:
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/MyServlet</url-pattern>
</servlet-mapping>
<filter-mapping>
<filter-name>MyFilter</filter-name>
<url-pattern>/MyServlet/*</url-pattern>
</filter-mapping>
Environment
- JBoss Enterprise Application Platform (EAP) 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.