You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Jörn Nettingsmeier <po...@uni-duisburg.de> on 2006/05/28 00:50:35 UTC

missing files in external/cocoon - why does our external differ from cocoon svn?

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: pol-admin@uni-due.de, Telefon: 0203/379-2736

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: missing files in external/cocoon - why does our external differ from cocoon svn?

Posted by Thorsten Scherler <th...@apache.org>.
El dom, 28-05-2006 a las 03:32 +0200, Jörn Nettingsmeier escribió:
...
> >> 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?
>  >
> > They are "automatically" included based on your local.blocks.properties 
> > file.
> 
> i need to include some external jars from the eXist database (namely, 
> the xmldb:exist source-factory driver). for testing, i'm copying them to 
> the build/lenya/webapp/WEB-INF/lib directory. should that work by magic? 
> or where exactly do i have to register those extra jars?
> 

Placing them in the build lib is not really magic since it is the
default to "mount" all jars. ;) You can place those into
lenya-trunk/externals/cocoon_2_1_x/lib/local/

and they get deployed as well after a build clean.

salu2

> 
> thx,
> 
> jörn
> 
> 
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: missing files in external/cocoon - why does our external differ from cocoon svn?

Posted by Jörn Nettingsmeier <po...@uni-duisburg.de>.
hi antonio!


Antonio Gallardo wrote:
> Jörn Nettingsmeier escribió:
>> 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?
> No. Try to update your copy or do a clean checkout. In my local 
> external/cocoon, there is whole xmldb block.

you are right, my tree was garbled. thanks for the hint!

>> 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?
 >
> They are "automatically" included based on your local.blocks.properties 
> file.

i need to include some external jars from the eXist database (namely, 
the xmldb:exist source-factory driver). for testing, i'm copying them to 
the build/lenya/webapp/WEB-INF/lib directory. should that work by magic? 
or where exactly do i have to register those extra jars?


thx,

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: pol-admin@uni-due.de, Telefon: 0203/379-2736

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: missing files in external/cocoon - why does our external differ from cocoon svn?

Posted by Antonio Gallardo <ag...@agssa.net>.
Jörn Nettingsmeier escribió:
> 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?
No. Try to update your copy or do a clean checkout. In my local 
external/cocoon, there is whole xmldb block.
> 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?
They are "automatically" included based on your local.blocks.properties 
file.

Best Regards,

Antonio Gallardo.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org