You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "zelenka.jan@gmail.com" <ze...@gmail.com> on 2011/08/27 22:16:09 UTC

Re: tapestry 5.2.4 and spring 3.1M1

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-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: tapestry 5.2.4 and spring 3.1M1

Posted by "matt@raibledesigns.com" <ma...@raibledesigns.com>.
Are there any plans to fix the Tapestry-Spring integration to fix this issue?

java.lang.RuntimeException: Service id 'environment' has already been
defined by
org.apache.tapestry5.services.TapestryModule.buildEnvironment(PerthreadManager)

I'm seeing it myself after trying to upgrade to Spring 3.1.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-5-2-4-and-spring-3-1M1-tp4462226p5072413.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org