I have a virtually empty applicationContext.xml and web.xml as per the betterpetshop example. In my Home page, I (try to) instantiate the appContext in a finishLoad method via
I've tried doing the instantiation in a custom MyEngine as per the spring documentation. The appContext winds up null every time.
WebApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(cycle.getRequestContext().getServlet().getServletContext());
if (ac == null)
throw new ApplicationRuntimeException("once again ac is null.");
Thanks for any help!