Yep, I always define two modules; one Core Module that defines my database DAOs and other core services and another Web Module which focuses on T5 webby stuff.
Steve. -- Steve Eynon ------------------------------- "If at first you don't succeed, so much for skydiving!" On 20 September 2011 23:49, Thiago H. de Paula Figueiredo <thiag...@gmail.com> wrote: > On Tue, 20 Sep 2011 11:51:56 -0300, nquirynen <nat...@pensionarchitects.be> > wrote: > >> Hi, > > Hi! > >> I'm making an application using Tapestry IoC configuration >> (contributions). > > Nice! > >> So in my AppModule I have: >> >> *public void >> contributePolicyValueProviderSource(MappedConfiguration<String, >> PolicyValueProvider> config) { >> ... >> }* >> >> But i geth the error: >> >> /Exception in thread "main" java.lang.IllegalArgumentException: >> Contribution >> >> be.pensionarchitects.merge.services.AppModule.contributeRequestHandler(OrderedConfiguration, >> RequestFilter) (at AppModule.java:128) is for service 'RequestHandler', >> which does not exist./ > > I guess your AppModule has some dependencies on services provided by > Tapestry-core (the web framework), so you need to add TapestryModule to your > list of modules. Another solution (my recommendation) would be to have a > separate module with only the services, contributions, etc that you need in > your non-web app and include it in AppModule through the @SubModule > annotation. > >> Anyone an idea what the problem could be here? >> If you need specific code, please do ask. > > If possible, please post your AppModule class. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and > instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org