Newbie Tapestry/Spring Problem: appContext Null
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
Code:
WebApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(cycle.getRequestContext().getServlet().getServletContext());
if (ac == null)
{
throw new ApplicationRuntimeException("once again ac is null.");
}
I've tried doing the instantiation in a custom MyEngine as per the spring documentation. The appContext winds up null every time.
Thanks for any help!