Filter's doFilter() method is getting invoked before servlet's init()
Issue
In JBoss Web (EAP 6), the code is executed in the following order at the first request.
- Filter.init()
- Servet.init()
- Filter.doFilter()
- Servlet.service()
While on Undertow (EAP 7) the order is as follows.
- Filter.init()
- Filter.doFilter()
- Servet.init()
- Servlet.service()
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.0.0
- 7.1.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
