On Wed, Apr 25, 2012 at 8:54 AM, Chris Mylonas <ch...@opencsta.org> wrote: > Stopped app to try and work out what went wrong realised I had a few more > things to do. > 6. Contributed REST resources as per documentation > /** > * Contributions to the RESTeasy main Application, insert all your > RESTeasy > * singletons services here. > */ > @Contribute(javax.ws.rs.core.Application.class) > public static void configureRestResources(Configuration<Object> > singletons, > DomainResource domainResource) { > singletons.add(domainResource); > } > New error - Exception constructing service 'ResteasyRequestFilter': Error > building service proxy for service 'Application' (at > org.tynamo.resteasy.Application(Collection) (at Application.java:14) via > org.tynamo.resteasy.ResteasyModule.bind(ServiceBinder) (at > ResteasyModule.java:31)): Error invoking service contribution method > org.opencsta.reststuff.services.AppModule.configureRestResources(Configuration, > DomainResource): No service implements the interface > org.opencsta.reststuff.rest.DomainResource. >
Slow down, read the error message and understand what it is saying. You are trying to inject your DomainResource but you haven't declared it as a service. Either build(), bind() or @Autobuild the domainResource, e.g. public static void configureRestResources(Configuration<Object> singletons, @Autobuild DomainResource domainResource) to make it work. Kalle --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org