Any movement on this? I'm working on a project that is pushing Java Configuration.
Right now I'm just trying to figure out how to get the DelegatingFilterProxy to recognize the WebApplicationContext
Code:
final ServletContextHandler webServletContextHandler = new ServletContextHandler(ServletContextHandler.SESSIONS);
webServletContextHandler.setContextPath(commandLine.getContextPath());
webServletContextHandler.setClassLoader(Thread.currentThread().getContextClassLoader());
webServletContextHandler.addServlet(new ServletHolder(new DispatcherServlet(configureSpringApplicationContext(webServletContextHandler, commandLine))), "/*");
// Do I need to do this??? :
// EnumSet<DispatcherType> dispatcherType = EnumSet.noneOf(DispatcherType.class);
// webServletContextHandler.addFilter("org.springframework.web.filter.DelegatingFilterProxy", "/*", dispatcherType);
webServletContextHandler.addFilter("org.springframework.web.filter.DelegatingFilterProxy", "/*", null);
And of course get the "No WebApplicationContext found: no ContextLoaderListener registered?"
Is there a way around this, or am I going to have to load the security XML configuration?