podd/podd-webapp — Issue #2: Make it possible to diagnose Spring errors
Author: ansell
Created: 2012-02-08 04:41:27+00:00
State: open

Currently any Spring errors, for example, application-wiring.xml syntax or semantic errors, are very difficult to diagnose because they are static fields, and Java tends to just fall over before giving decent information.

Need to switch PoddApplicationContext from a statically initialised object to an instance, so that the class initialisation runs to completion before Spring tries to load, and then the Logger can be used to diagnose the result, where right now the exception may be swallowed or overwritten by the class initialisation exception.