I am currently trying to get an application with two Servlets registered in a WebApplicationInitializer to run in Jetty 8.x.
I am having the problem as described here. I was hoping someone could elaborate on this statement:
Does this mean:Put the root context as an argument into the dispatcherContext.
This only seems to work if I remove:Code:dispatcherContext.setParent(rootContext)
and add:Code:ContextLoaderListener listener = new ContextLoaderListener(rootContext); container.addListener(listener);
However, when I add Spring Security back in and go to a secured page I hit:Code:rootContext.refresh();
Which is of course correct!Code:No WebApplicationContext found: no ContextLoaderListener registered?
Can someone just point me in the right direction here? Thanks.


Reply With Quote
. But it was a gut feeling that you could simply pass the parent in as the parent context for either the context registered with the dispatcher servlet or by calling the setter.
