Adding AbortStartup to LuceneSetup.java
This commit is contained in:
parent
24ccc19d4e
commit
8be9eaaeae
1 changed files with 1 additions and 0 deletions
|
@ -157,6 +157,7 @@ public class LuceneSetup implements javax.servlet.ServletContextListener {
|
|||
|
||||
log.info("Setup of Lucene index completed.");
|
||||
} catch (Throwable t) {
|
||||
AbortStartup.abortStartup(sce.getServletContext());
|
||||
log.error("***** Error setting up Lucene index *****", t);
|
||||
throw new RuntimeException("Startup of vitro application was prevented by errors in the lucene configuration");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue