[
https://issues.apache.org/jira/browse/TAP5-1788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169661#comment-13169661
]
Howard M. Lewis Ship commented on TAP5-1788:
--------------------------------------------
It's always a challenge to make these two things fit together. I believe you
are running tapestry-spring in 5.0 compatibility mode, where it attempts to
expose Spring beans as Tapestry services.
We need to find a way to run tapestry-spring in its current mode (since 5.1),
where Spring beans are injectable, but not services. This will defuse naming
collisions, such as with "Environment", but may create some other issues,
depending on what is inside your Spring application context.
In some ways, I wish we had maintained the namespaced service ids that HiveMind
had for Tapestry 4 (but namespaceds ids add their own complications); in the
future will be services without ids, but that's a couple of release cycles away!
> Service id 'environment' has already been defined by
> org.apache.tapestry5.services.TapestryModule with Spring 3.1
> -----------------------------------------------------------------------------------------------------------------
>
> Key: TAP5-1788
> URL: https://issues.apache.org/jira/browse/TAP5-1788
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-spring
> Affects Versions: 5.2.4
> Reporter: Matt Raible
>
> After upgrading to Spring 3.1, started seeing the following error with
> Tapestry 5.2.4.
> java.lang.RuntimeException: Service id 'environment' has already been defined
> by
> org.apache.tapestry5.services.TapestryModule.buildEnvironment(PerthreadManager)
>
> More information at
> http://tapestry.1045711.n5.nabble.com/tapestry-5-2-4-and-spring-3-1M1-td4462226.html#a4742011
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira