Hi all,

I am writing a service I intend to inject into some pages and components:

public MyPage
{
    @Inject private MyService myService;
}

I want MyServiceImpl to have access to ComponentResources

public MyServiceImpl implements MyService
{
    @Inject private ComponentResources componentResources;
}

however this causes an exception:

Caused by: java.lang.RuntimeException: No service implements the interface org.apache.tapestry5.ComponentResources. at org.apache.tapestry5.ioc.internal.RegistryImpl.getService(RegistryImpl.java:560) at org.apache.tapestry5.ioc.internal.ObjectLocatorImpl.getService(ObjectLocatorImpl.java:44) at org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl$1.invoke(MasterObjectProviderImpl.java:56) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68)
    ... 123 more

Obviously I'm missing some special plumbing in my AppModule.

What is it?

Thanks, Paul.

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

Reply via email to