Servlet URL pattern not working when migrating to JBoss EAP 7.x from Weblogic

Solution Unverified - Updated -

Issue

As we are moving our application from Weblogic to Jboss, we noticed that Servlet filters are not working. Filters started working after changing URL pattern from

    <filter-mapping>
        <filter-name>My Filter</filter-name>
        <url-pattern>abutton.png</url-pattern>
    </filter-mapping>

To

My Filter
/abutton.png

Why this change is needed for JBoss when the old URL Pattern was working in Weblogic?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content