https://issues.apache.org/bugzilla/show_bug.cgi?id=52135

--- Comment #17 from Libor Jelinek <ljeli...@virtage.com> ---
Potential reason to reopen this: Having the following web.xml still end up with
showing Tomcat default error page. Is it intended behavior or a bug?

  <servlet>
    <!-- throws some exception -->
    <servlet-name>ThrowerServlet</servlet-name>
    <servlet-class>org.example.ThrowerServlet</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>ThrowerServlet</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>  

  <error-page>
    <location>/WEB-INF/global-error-page.jsp</location>
  </error-page>

I assume that scenario here is the following:
1. ThrowerServlet causes an exception
2. Tomcat issue error dispatch
3. But it is responded by ThrowerServlet (have catch-all URL pattern /*) which
causes same exception again.
4. Tomcat present default error page

I'm asking if error page should be matched by /*, i.e. effectively skipping
error page to display and resulting in calling buggy servlet on /* again.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to