cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Layes <>
Subject Configuring DatabaseReader?
Date Wed, 05 Jun 2002 23:33:30 GMT
Hi all,

I've been searching everywhere and I can't find an example on how 
to configure the DatabaseReader.  Digging through the sourcecode
and Javadocs, I managed to put something like this together:

	<map:reader name="database"
        <map:match pattern="gallery/image.jpg">
            <map:read type="database" src="1" mime-type="image/jpeg">
                <map:parameter name="table" value="image"/>
                <map:parameter name="resource" value="data"/>
                <map:parameter name="key" value="id"/>

This doesn't work, however.  I get the following error:

org.apache.cocoon.ProcessingException: Lookup of reader for role 'database' failed.: org.apache.avalon.framework.component.ComponentException:
UnnamedSelector: ComponentSelector could not find the component for hint: database

I know the "jonathan_pool" connection pool is working because my ESQL 
XSPs are working correctly.  

Any suggestions?

Thanks, Jonathan

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message