Announcement Announcement Module
No announcement yet.
How and where to throw ServletException? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • How and where to throw ServletException?

    I want my web application to throw ServletException if there were any kind of errors during instantiation of applicationContext.xml

    Right now it simply logs the exception (like could not create bean "someBean": FileNotFoundException... blah blah blah) and continues initiating webapp, while I want it to immediately throw SerlvetException and tell Tomcat container to stop initiating webapp.

    How do I do that?

  • #2
    Anyone has any idea?
    I think that's a big problem when web application goes on initiating when there was an exception during instantiation of ApplicationContext...