« Return to Thread: Cocoon 2.2 + eXist 1.2.6 : Cocoon sitemap configuration.

Re: Cocoon 2.2 + eXist 1.2.6 : Cocoon sitemap configuration.

by Tomek Piechowicz :: Rate this Message:

Reply to Author | View in Thread

Wolfgang Meier-2 wrote:
Also, you can use all
of eXist's standard functionality to access the db, so the
XMLDBSourceFactory is not really required anymore.
Does It mean that I don`t have to create any configuration files containing definition of protocol and database driver to use XQueryGenerator ?


To test this approach I created new cocoon 2.2 block in maven and added xquery generator and simple pipeline to sitemap.xmap:


<map:generators>
         <map:generator name="xquery"
          logger="sitemap.generator.xquery"
          src="org.exist.cocoon.XQueryGenerator"
          user="guest"
          password="guest" />
</map:generators>


<map:pipeline>
         <map:match pattern="Exist">
             <map:generate src="xmldb:exist:///db/tomek/people.xml" type="xquery"/>    
            <map:serialize type="xml"/>
         </map:match>
</map:pipeline>

After I run jetty, server throws exception :

java.lang.ClassNotFoundException: org.exist.cocoon.XQueryGenerator

Did I forget to copy some jars from eXist lib folder ? Which jar contains XQueryGenerator class ?

Regards,
Tomasz.

 « Return to Thread: Cocoon 2.2 + eXist 1.2.6 : Cocoon sitemap configuration.