Hi, I'm making an application using Tapestry IoC configuration (contributions).
So in my AppModule I have: *public void contributePolicyValueProviderSource(MappedConfiguration<String, PolicyValueProvider> config) { ... }* and in code I do: *@Inject private PolicyValueProviderSource policyValueProvider;* This does all work how it should work, but I want to make a simple console application out of it (no webinterface). So now i made a Main class where I have this: public static void main(String[] args) { DocumentGenerator gen = new DocumentGenerator(); } DocumentGenerator: @Inject private static PolicyValueProviderSource policyValueProvider; public DocumentGenerator() { for(String field : policyValueProvider.getConfiguredFields()) { System.out.println(field); } } 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./ Anyone an idea what the problem could be here? If you need specific code, please do ask. Thanks in advance! Nathan -- View this message in context: http://tapestry.1045711.n5.nabble.com/Console-app-with-Tapestry-IoC-configuration-tp4822836p4822836.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org