Fix missed schema version check in WAR mode

The cfgInjector needs to be registered with the LifecycleManager
to ensure the SchemaVersionCheck is called on server startup.
Without it registered the check is skipped, allowing a server to
start against the wrong schema.

Change-Id: I758ba12a0d98fc8ed0ebcee3a5a8e9d9fd33b2c0
This commit is contained in:
Shawn O. Pearce
2011-06-22 09:35:21 -07:00
parent b2cb00c11d
commit 13c41bc3e3

View File

@@ -115,6 +115,7 @@ public class WebAppInitializer extends GuiceServletContextListener {
manager = new LifecycleManager();
manager.add(dbInjector);
manager.add(cfgInjector);
manager.add(sysInjector);
manager.add(sshInjector);
manager.add(webInjector);