You declared your services configuration to be a List, so your problem is here:

Configuration<RequestHandler> configuration

That should be OrderedConfiguration which collects and orders its
contributions to form a List.

What are you building?

On Fri, Nov 7, 2008 at 4:42 AM, bobpuley <[EMAIL PROTECTED]> wrote:
>
> Hi,
> i get an error during contribute method invocation, using T5 IOC in my
> application.
> I don't use T5 core and other, simply get Registry via builder, inspired to
> code stored on the tapestry wiki
> (http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly) and code of
> TapestryFilter/ServletApplicationInitializer classes, and add my modules
> (that contains some binding, building and contributing method).
>
> this is the complete error message:
> Error invoking service builder method
> org.jspe.web.configuration.JSPEModule.buildRequestHandlerService(List,
> Logger) (at JSPEModule.java:57) (for service 'RequestHandlerService'): Error
> invoking service contribution method
> org.jspe.web.configuration.JSPEModule.contributeRequestHandlerService(Configuration,
> AssetManager, PageLoader): No service implements the interface
> org.apache.tapestry5.ioc.Configuration.
>
> My code of contribute and builder method pairs, is:
>        public static RequestHandlerService
> buildRequestHandlerService(List<RequestHandler> contributions,
>                        Logger serviceLog){
>
>                return new HttpRequestHandlerService(contributions, 
> serviceLog);
>        }
>        public static void
> contributeRequestHandlerService(Configuration<RequestHandler> configuration,
>                                                                               
>                                  @InjectService("AssetManager") AssetManager 
> assetManager,
>                                                                               
>                                  @InjectService("PageLoader") PageLoader 
> pageLoader){
>                configuration.add(new JspRequestHandler(pageLoader));
>                configuration.add(new AssetRequestHandler(assetManager));
>        }
>
> Someone have an idea of cause for my error?? Only contribute methods fails,
> builder e binder methods works fine.
>
> ps:AssetManager and PageLoader is my services, no Tapestry object, only
> Logger is a Tapestry built-in service called.
>
> Tnx
>
> Marco.
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/IOC-problem-tp20379889p20379889.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to