cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Layes <j.coc...@layes.com>
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"
      	    src="org.apache.cocoon.reading.DatabaseReader"
            use-connection="jonathan_pool"/>
	...
        <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"/>
            </map:read>
        </map:match>

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. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message