Hi,
Looks like the XmlViewResolver in Spring 1.2 requires a WebApplication Context. I had a test case using AbstractDependencyInjectionSpringContextTests where I set the config location to a context definition which contains a definition of XmlViewResolver. It worked in 1.2 RC2, but in the 1.2 final release, it checks for WebApplication context and throws an exception:
Is there a workaround where I can still use the dependency injected test cases to load bean definitions including XmlVewResolver beans?Code:Initialization of bean failed; nested exception is java.lang.IllegalStateException: WebApplicationObjectSupport instance [org.springframework.web.servlet.view.XmlViewResolver@1309e87] does not run in a WebApplicationContext but in: org.springframework.context.support.ClassPathXmlApplicationContext
-- suresh --


Reply With Quote

