actually tapestry-spring integration with external context set tu True uses 

BeanFactoryUtils.beanNamesIncludingAncestors(context)

to get list of beans to be exported as tapestry services. Maybe it should
use just

context.getBeanDefinitionNames()

because starting with Spring 3.1 the former returns also bean named
"environment" and tapestry then crashes with:

SEVERE: Exception starting filter app
java.lang.RuntimeException: Service id 'environment' has already been
defined by
org.apache.tapestry5.services.TapestryModule.buildEnvironment(PerthreadManager)
(at TapestryModule.java:2686) and may not be redefined by
org.apache.tapestry5.internal.spring.SpringBeanServiceDef@6f0294. You should
rename one of the service builder methods.
        at
org.apache.tapestry5.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:208)
        at
org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:170)
        at
org.apache.tapestry5.internal.TapestryAppInitializer.createRegistry(TapestryAppInitializer.java:214)
        at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:95)

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-5-2-4-and-spring-3-1M1-tp4462226p4742011.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

Reply via email to