Move servlet initialization code to overridden init method.
authorBen Konrath <ben@bagu.org>
Wed, 26 Oct 2011 18:55:29 +0000 (20:55 +0200)
committerBen Konrath <ben@bagu.org>
Wed, 26 Oct 2011 18:56:16 +0000 (20:56 +0200)
commit4ed6d81dabd9a0167d59a2f739325eb8c8398bfb
treee8eda3f010bb025789c1bacc8da1d39354d7c617
parentbd6aba92c1388cd215169e2ecdc844434b66e0bc
Move servlet initialization code to overridden init method.

This is half of the solution to getting proper error messages
displayed when configuration errors occur. Here's the relevant bug:

https://bugzilla.gnome.org/show_bug.cgi?id=662792

The rest of the solution involves surrounding the init method with a
try/catch block and setting a global variable with the error /
exception. A new async method should be created to retrieve and display
the error message / exception.

* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
code from constructor to init method adding exceptions as needed.
ChangeLog
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java