Hi all,

I have made a Selector which creates a number of selectable components based on it's configuration (DefaultFileHandlerSelector).

These selectable components depend on another component (a DataSourceSelector named datasources).

I have supplied a DataSourceSelector to my Selector during service() and attempt to create my selectable components during initialize() (DAFStoreFileHandler)

When I create a selectable component I pass my servicemanager to it so that it can access my DataSourceSelector however I get an exception:

Exception: org.apache.avalon.framework.service.ServiceException
Message: Unknown key: datasources (Key='datasources')
---- stack trace ------------------------------------------------------------
org.apache.avalon.framework.service.ServiceException: Unknown key: datasources 
(Key='datasources')
org.apache.avalon.activation.appliance.impl.DefaultServiceManager.lookup(DefaultServiceManager.java:110)
au.com.wcmgroup.liberty.blocks.filehandler.DAFStoreFileHandler.service(DAFStoreFileHandler.java:102)
au.com.wcmgroup.liberty.blocks.filehandler.DefaultFileHandlerSelector.initialize(DefaultFileHandlerSelector.java:122)
org.apache.avalon.activation.appliance.impl.DefaultAppliance.applyInitialization(DefaultAppliance.java:917)


My understanding of the lifecycle and automatic dependency resolving clearly needs work, without posting a bunch of sources could someone suggest where I have gone wrong.



thanks,


Jon



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



Reply via email to