getLogger().debug("Using WebApplicationContext"); "A portal managed ApplicationContext has already been created but now a ServletContext is available and a WebApplicationContext will be returned. " + "This situation should be resolved by delaying calls to this class until after the web-application has completely initialized."); getLogger().error(createException, createException); getLogger() .error( "Stack trace of original ApplicationContext creator",
getLogger().debug("Using WebApplicationContext"); "A portal managed ApplicationContext has already been created but now a ServletContext is available and a WebApplicationContext will be returned. " + "This situation should be resolved by delaying calls to this class until after the web-application has completely initialized."); getLogger().error(createException, createException); getLogger() .error( "Stack trace of original ApplicationContext creator",
/** * If the ApplicationContext returned by {@link #getApplicationContext()} is 'portal managed' * the shutdown hook for the context is called, closing and cleaning up all spring managed * resources. * * <p>If the ApplicationContext returned by {@link #getApplicationContext()} is actually a * WebApplicationContext this method does nothing but log an error message. */ public static void shutdown() { if (applicationContextCreator.isCreated()) { final ConfigurableApplicationContext applicationContext = applicationContextCreator.get(); applicationContext.close(); } else { final IllegalStateException createException = new IllegalStateException( "No portal managed ApplicationContext has been created, there is nothing to shutdown."); getLogger().error(createException, createException); } }
/** * If the ApplicationContext returned by {@link #getApplicationContext()} is 'portal managed' * the shutdown hook for the context is called, closing and cleaning up all spring managed * resources. * * <p>If the ApplicationContext returned by {@link #getApplicationContext()} is actually a * WebApplicationContext this method does nothing but log an error message. */ public static void shutdown() { if (applicationContextCreator.isCreated()) { final ConfigurableApplicationContext applicationContext = applicationContextCreator.get(); applicationContext.close(); } else { final IllegalStateException createException = new IllegalStateException( "No portal managed ApplicationContext has been created, there is nothing to shutdown."); getLogger().error(createException, createException); } }