title: Spring Liquibase integration - configuration issue
body: <p>I have to add Liquibase to my running Application. </p>
  
  <p>I am using Spring 4 and Liquibase 3.2.2.</p>
  
  <p>After i defined the SpringLiquibase Bean in my ApplicationContext i'am getting the following error on server startup:</p>
  
  <pre><code>Error creating bean with name 'liquiBase' defined in ... .webapp.configuration.ApplicationConfig: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Cannot resolve ServletContextResource without ServletContext
  </code></pre>
  
  <p>My Configuration looks like:</p>
  
  <pre><code>@Bean
  public SpringLiquibase liquiBase(){
      SpringLiquibase liquiBase = new SpringLiquibase();
      liquiBase.setChangeLog(DATABASE_CHANGELOG_PATH);
      liquiBase.setContexts("test, production");
      liquiBase.setDataSource(dataSource());
      return liquiBase;
  }   
  </code></pre>
  
  <p>And my WebAppInitilazier:</p>
  
  <pre><code>@Override
  public void onStartup(ServletContext container) {
  
      container.getServletRegistration("default").addMapping("/*");
  
      AnnotationConfigWebApplicationContext rootContext = new AnnotationConfigWebApplicationContext();
  
      rootContext.register(ApplicationConfig.class);
      rootContext.refresh();
      container.addListener(new ContextLoaderListener(rootContext));
  
      AnnotationConfigWebApplicationContext webContext = new AnnotationConfigWebApplicationContext();
      webContext.register(RestServletContextConfiguration.class);
      ServletRegistration.Dynamic dispatcher = container.addServlet(
              "springRestDispatcher", new DispatcherServlet(webContext));
      dispatcher.setMultipartConfig(new MultipartConfigElement(null,
              20_971_520L, 41_943_040L, 512_000));
      dispatcher.addMapping("/*");
  
  
  
  }
  </code></pre>
  
  <p>I have searched for similar issues but unfortunately not found.
  My application is working properly without the liquibase definition. </p>