CY>> 1) I'm having trouble using SourceResolver.ROLE, getting a
CY>> ServiceException 'Unable to provide implementation for
CY>> org.apache.excalibur.source.SourceFactorySelector'.  I'm puzzled because
CY>> ContextManager.java appears to get a SourceResolverImpl with no problem
CY>> and no mention of a selector.  What am I missing here?

I'm decide this problem. This is my roles and config files.

ServletContainer.roles
<fortress-roles>

    <role name="com.homework.cms.components.dispatcher.Dispatcher">
        <component shorthand="dispatcher"
            class="com.homework.cms.components.dispatcher.DispatcherImpl"
            
handler="org.apache.excalibur.fortress.handler.ThreadSafeComponentHandler"/>
    </role>

    <role name="org.apache.excalibur.source.SourceResolver">
        <component shorthand="resolver"
            class="org.apache.excalibur.source.impl.SourceResolverImpl"
            
handler="org.apache.excalibur.fortress.handler.ThreadSafeComponentHandler"/>
    </role>

    <role name="org.apache.excalibur.source.SourceFactorySelector">
        <component shorthand="resourceFactory"
            class="org.apache.excalibur.source.impl.ResourceSourceFactory"
            handler="org.apache.excalibur.fortress.handler.ThreadSafeComponentHandler">
        </component>
    </role>


</fortress-roles>

ServletContainer.xconf
<fortress-servlet>

    <resolver id="resolver" logger="root"/>

    <resourceFactory id="default" logger="root"/>
    <resourceFactory id="resource" logger="root"/>

    <dispatcher id="dispatcher" logger="root">
        <request-mapping filename="resource://request-mapping.xconf"/>
    </dispatcher>

</fortress-servlet>

Try this. But I think such notion of Selector is no good decition. But
this is one solution I have found. Maybe developers of Fortress
can explain this more detail.


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

Reply via email to