Filter not invoked for matching /* path on EAP 7

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In