Adding AbortStartup to LuceneSetup.java

This commit is contained in:
bdc34 2011-02-03 20:25:36 +00:00
parent 24ccc19d4e
commit 8be9eaaeae

View file

@ -157,6 +157,7 @@ public class LuceneSetup implements javax.servlet.ServletContextListener {
log.info("Setup of Lucene index completed."); log.info("Setup of Lucene index completed.");
} catch (Throwable t) { } catch (Throwable t) {
AbortStartup.abortStartup(sce.getServletContext());
log.error("***** Error setting up Lucene index *****", t); log.error("***** Error setting up Lucene index *****", t);
throw new RuntimeException("Startup of vitro application was prevented by errors in the lucene configuration"); throw new RuntimeException("Startup of vitro application was prevented by errors in the lucene configuration");
} }