hi *!

i need to integrate the xmldb: source factory into my lenya cocoon setup in order to use the eXist xml database. weird thing is: the xmldb block in externals/cocoon seems to be incomplete.

cocoon svn has
/cocoon/branches/BRANCH_2_1_X/src/blocks/xmldb/java/org/apache/cocoon/components/source/impl/XMLDBSourceFactory.java, but the entire "source" sub-directory is missing in my lenya svn sandbox.

is the "external" just a partial inclusion of the cocoon tree? if so, how does one get components that are not included by default, ideally without bypassing svn so they can be easily kept up-to-date?



another question: how are jars in WEB-INF/lib handled? do they need to be registered somewhere, or are the classes in those jars found automatically?

i've copied a jar there that includes the XMLDBSourceFactory.class, but when i try to configure it in my cocoon.xconf, cocoon complains

"org.apache.avalon.framework.configuration.ConfigurationException: Could not load class for component named 'xmldb' at file:/srv/lenya/build/lenya/webapp/WEB-INF/cocoon.xconf:680:79"


here's the snippet i use:

<component-instance name="xmldb" src="org.apache.cocoon.components.source.impl.XMLDBSourceFactory">
  <driver type="exist" class="org.exist.xmldb.DatabaseImpl"
     user="admin" password="-----------"
     collection="//localhost:8080/db/politik/"/>
</component-instance>

and here's the jar:

Archive:  ./cocoon-xmldb-block.jar
 Length   Method    Size  Ratio   Date   Time   CRC-32    Name
--------  ------  ------- -----   ----   ----   ------    ----
       0  Stored        0   0%  12-02-05 09:24  00000000  META-INF/
<..>
5491 Defl:N 2351 57% 11-29-05 16:12 1d59adbc org/apache/cocoon/components/source/impl/XMLDBSourceFactory.class
<..>
--------          -------  ---                            -------
   60393            26861  56%                            19 files


(sorry, hopeless java newbie...)


best,

jörn



--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

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

Reply via email to