Hi.
I`m new to eXist and I`ve been trying to access the database from Apache
Cocoon 2.2 framework via xml:db protocol. I`ve found some information in
Server Configuration section on eXist home page. In subsection 3. Cocoon
Sitemap Configuration I found example code of configuration XML:DB
Database Driver :
<source-handler logger="core.source-handler">
<!-- xmldb pseudo protocol -->
<protocol
class="org.apache.cocoon.components.source.XMLDBSourceFactory"
name="xmldb">
<driver class="org.exist.xmldb.DatabaseImpl" type="exist"/>
<!-- Add here other XML:DB compliant databases drivers -->
</protocol>
</source-handler>
After I created new cocoon 2.2 block in maven, I`ve copied following
jars to WEB-INF/lib directory :
exist/exist.jar
exist/exist-optional.jar
exist/lib/core/antlr-2.7.6.jar
exist/lib/core/commons-pool-1.4.jar
exist/lib/core/xmldb.jar
exist/lib/core/xmlrpc-client-3.1.1.jar
exist/lib/core/xmlrpc-common.3.1.1.jar
I created configuration file in WEB-INF/avalon/cocoon.xconf and I put
the configuration code into created file. When I try to run maven jetty
with new configuration server throws exception :
org.apache.avalon.framework.configuration.ConfigurationException: Unknow
document 'source-handler' (...).
Can anyone help me with this configuration ?
Regards,
Tomasz.
------------------------------------------------------------------------------
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open