Andreas Hartmann wrote:
Robert Goene wrote:

Hi,

I am trying to call a certain pipeline trough the SourceResolver, but i can't find any good documentation on this component. Can anyone tell me what the correct method is for calling cocoon://core/lucene/delete.xml ?



SourceResolver resolver = null;
Source source = null;

try {
source = resolver.resolveURI("cocoon://core/lucene/delete.xml");
}
finally {
    if (resolver != null) {
        if (source != null) {
            resolver.release(source);
        }
        this.manager.release(resolver;
    }
}

Thanks. Unfortunately, i get a runtime error: 'java.lang.ClassCastException' at 'resolver = (SourceResolver) this.manager.lookup(SourceResolver.ROLE);'

I have declared

import org.apache.cocoon.environment.SourceResolver;
import org.apache.excalibur.source.Source;

Anything i am missing?

Robert

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

Reply via email to