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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user