[ 
https://issues.apache.org/jira/browse/TAP5-1788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169669#comment-13169669
 ] 

Matt Raible commented on TAP5-1788:
-----------------------------------

If I try to run it w/o compatibility mode, I get the following error:

org.apache.tapestry5.ioc.internal.OperationException: Error obtaining injected 
value for field org.appfuse.webapp.pages.admin.UserList.userManager: No service 
implements the interface org.appfuse.service.UserManager.

The userManager bean is initialized by Spring using annotations:

@Service("userManager")
...

<!-- Activates scanning of @Service -->
<context:component-scan base-package="org.appfuse.service"/>

Here's how I'm wiring it up in my test:

https://gist.github.com/1478384

                
> 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

        

Reply via email to