m...@raibledesigns.com wrote > > If I try 5.3, I get a whole new error: > > Tests in error: > testListUsers(org.appfuse.webapp.pages.admin.UserListTest): Context > attribute is not of type WebApplicationContext: > org.springframework.context.support.GenericApplicationContext@48a77106: > startup date [Tue Dec 13 12:49:44 MST 2011]; root of context hierarchy > >
I was able to fix this issue (and the above error for 5.3) with the following patch: Index: tapestry-spring/src/main/java/org/apache/tapestry5/internal/spring/SpringModuleDef.java =================================================================== --- tapestry-spring/src/main/java/org/apache/tapestry5/internal/spring/SpringModuleDef.java (revision 1214516) +++ tapestry-spring/src/main/java/org/apache/tapestry5/internal/spring/SpringModuleDef.java (working copy) @@ -78,7 +78,9 @@ */ protected ApplicationContext locateApplicationContext(ServletContext servletContext) { - ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext); + ApplicationContext context = (ApplicationContext) servletContext + .getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE); if (context == null) { @@ -153,7 +155,7 @@ private void addServiceDefsForSpringBeans(ApplicationContext context) { - for (final String beanName : BeanFactoryUtils.beanNamesIncludingAncestors(context)) + for (final String beanName : context.getBeanDefinitionNames()) { String trueName = beanName.startsWith("&") ? beanName.substring(1) : beanName; -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-5-2-4-and-spring-3-1M1-tp4462226p5075968.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org