Tomcat - Redirect to Error Page when ServletContextListener fails
- by Vic
When Tomcat starts it calls my ServletContextListener to obtain a database connection, which I will later use in other servlets with getServletContext(). It is called in my web.xml as:
listener
listener-class org.ppdc.database.DBCPoolingListener /listener-class
/listener
(I removed the < because they wouldn't display properly…