/** You can override this method to start some components, remember to call super before. */ public void start(ServletContext context) { container = new SpringBasedContainer(getParentApplicationContext(context)); BasicConfiguration config = new BasicConfiguration(context); WebAppBootstrap bootstrap = new WebAppBootstrapFactory().create(config); bootstrap.configure(container); registerCustomComponents(container); container.start(context); }