A little context: In 5.2, the Spring support was reworked a little bit, based on user feedback. The primary change is that Spring beans are no longer exposed as Tapestry service BUT they are still injectable (by type). There's also a compatibility mode that continues to attempt to expose Spring beans as Tapestry IoC services.
The intent is that users will configure Spring as they did prior to using Tapestry, using web.xml entries. However, the API expects a ServletContext, which you might have to mock up to make use of the new code. However, as a short term fix, you can continue to use the 5.1.0.5 version of tapestry-spring, even if the rest of Tapestry is at version 5.2.4. On Wed, Feb 2, 2011 at 9:17 AM, m...@raibledesigns.com <m...@raibledesigns.com> wrote: > > I'm trying to upgrade my project from tapestry-spring 5.0.18 to 5.2.4. I have > the following in a test class: > > @ContextConfiguration(locations = { > "classpath:/applicationContext-resources.xml", > "classpath:/applicationContext-dao.xml", > "classpath:/applicationContext-service.xml", > "classpath*:/applicationContext.xml", > "/WEB-INF/applicationContext*.xml"}) > public abstract class BasePageTestCase extends > AbstractTransactionalJUnit4SpringContextTests { > protected PageTester tester; > > @Before > public void before() { > String appPackage = "org.appfuse.webapp"; > String appName = "app"; > tester = new PageTester(appPackage, appName, "src/main/webapp") { > @Override > protected ModuleDef[] provideExtraModuleDefs() { > return new ModuleDef[]{new > SpringModuleDef(applicationContext)}; > } > }; > > However, it looks like SpringModuleDef no longer takes an > ApplicationContext. What's the new way to do this? > > [ERROR] symbol : constructor > SpringModuleDef(org.springframework.context.ApplicationContext) > [ERROR] location: class org.apache.tapestry5.internal.spring.SpringModuleDef > > Thanks, > > Matt > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Compiler-error-when-upgrading-from-tapestry-spring-5-0-18-to-5-2-4-tp3368139p3368139.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 > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org