If you develop base on Tapestry 5.0.3
Please use
     @Inject("Spring:groupRepository")
Instead of
   @Inject
   @SpringBean("groupRepository")

'groupRepository' is just your the bean id defined in your spring's
configuration file.

This is my first to answer question in mail list . I have never used mail
list of any project before:)
My name is Allen Guo , come from China

2007/4/24, Matt Welch <[EMAIL PROTECTED]>:

I'm sure I must be doing something wrong, but for lthe life of me, I can't
figure out what it is.

I'm not trying anything complicated. I've confirmed that my Spring beans
are
accessible in my webapp so I know the Spring part of my configuration is
correct. Here's how I'm trying to inject the Spring bean (per the
tapestry-spring documentation):

    @Inject
    @SpringBean("groupRepository")
    private GroupRepository groupRepository;


However, when I try to access the page that uses this service, I'm seeing
the following error:

java.lang.RuntimeException: No service implements the interface
net.xxx.xxx.repository.GroupRepository.

I'm clearly missing a configuration step, but I'm just not sure what it
is.
Any help would be greatly appreciated.

-Matt

Reply via email to