Hello.
I'm having trouble running anything with the new fortress (both the examples
and my own code). Everything gives me this:
[FATAL ERROR] Unable to initialize the contextManager.
org.apache.avalon.framework.service.ServiceException: Unable to provide
implemen
tation for *
at
org.apache.avalon.framework.service.DefaultServiceSelector.select(Def
aultServiceSelector.java:90)
at
org.apache.excalibur.source.impl.SourceResolverImpl.service(SourceRes
olverImpl.java:170)
at
org.apache.avalon.framework.container.ContainerUtil.service(Container
Util.java:181)
at
org.apache.avalon.fortress.util.ContextManager.initializeOwnComponent
Manager(ContextManager.java:609)
at
org.apache.avalon.fortress.util.ContextManager.initialize(ContextMana
ger.java:230)
at
org.apache.avalon.fortress.impl.DefaultContainerManager.getInitialize
dContextManager(DefaultContainerManager.java:120)
at
org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(Defaul
tContainerManager.java:105)
at
org.apache.avalon.fortress.impl.DefaultContainerManager.<init>(Defaul
tContainerManager.java:99)
I think the problem is in
org.apache.excalibur.source.impl.SourceResolverImpl.java. The latest CVS code
(checked in 5 hours ago) has this:
public void service( final ServiceManager manager )
throws ServiceException
{
m_manager = manager;
m_factorySelector = (ServiceSelector)m_manager.lookup(
SourceFactory.ROLE + "Selector" );
m_defaultFactory = (SourceFactory) m_factorySelector.select( "*" );
if ( !(m_defaultFactory instanceof ThreadSafe) )
{
m_factorySelector.release(m_defaultFactory);
m_defaultFactory = null;
}
}
However, Fortress's ContextManager doesn't put a "*" in the selector, all it
puts is:
selector.put( "resource", resource );
And the Avalon framework DefaultServiceSelector which is the ServiceSelector
called above in the SourceResolverImpl code doesn't handle "*". It literally
looks for a key "*" which doesn't exist.
Any suggestions?
For the meantime I'm going to rollback my version of SourceResolverImpl and I
think that will work.
jaaron
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]