cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baller, Heiko" <heiko.bal...@amd.com>
Subject RE: XMLFileModule reload bug?
Date Thu, 27 Apr 2006 06:51:59 GMT
Hi Ralph,

After some hours of playing yesterday night and setting log level to
DEBUG I found out that the flags to turn on and off stuff have to be
children of the component-instance element...

Now it looks like this:

<component-instance
class="org.apache.cocoon.components.modules.input.XMLFileModule"
logger="drsweb.whatever" name="servicecatalogue">
  <file
src="cocoon://intranet/transformers/dd/it/servicecatalogue.xml"/>
  <reloadable>true</reloadable>
  <cacheable>true</cacheable>
</component-instance>


...and works.

Some better documentation would be nice, but I guess you can't have
everything...

Heiko 

-----Original Message-----
From: Ralph Goers [mailto:Ralph.Goers@dslextreme.com] 
Sent: Donnerstag, 27. April 2006 05:52
To: users@cocoon.apache.org
Subject: Re: XMLFileModule reload bug?

I'm in the process of (slowly) creating an alternate version of 
XMLFileModule. Unfortunately, I can't promise a delivery date at this 
time. See http://issues.apache.org/jira/browse/COCOON-1574

Ralph



Baller, Heiko wrote:
> Hello,
> I'm having difficulties to get the XMLFileModule to work properly.
>
> cocoon.xconf :
>
> <component-instance
> class="org.apache.cocoon.components.modules.input.XMLFileModule"
> logger="core.modules.xml" name="servicecatalogue">
>   <file
src="cocoon://intranet/transformers/dd/it/servicecatalogue.xml"
> reloadable="true" cacheable="false"/>
> </component-instance>
>
> Sitemap.xmap :
>
> <map:match pattern="transformers/dd/it/servicecatalogue.xml">
>    <map:generate
> src="&HTDOCS;/dd/it/admin/ud-browser/servicecatalogue.xml"/>
>    <map:serialize encoding="UTF-8" type="xml"/>
> </map:match>
>
> Just simple reading of a XML File w/o any transformers.
>
>
> So, when "&HTDOCS;/dd/it/admin/ud-browser/servicecatalogue.xml"
changes,
> cocoon://intranet/transformers/dd/it/servicecatalogue.xml also
changes.
> So far so good.
>
> But the XMLFileModule does not notice that. I tried all kinds of
> configurations, also with <reloadable>true</reloadable> as child node
of
> <file>, but that didn't work either.
>
> In my XSP I do sth like this:
>
> ...
> sUrl =
String.valueOf(this._xsp_module_helper.getAttribute(objectModel,
> "servicecatalogue",sXPath,"undefined"));
> ...
>
> ...where sXPath contains my xpath expression to retrieve one value
from
> that XML file.
>
>
> I'm using cocoon 2.1.3, cannot upgrade to the latest version right
away.
> Btw, I doubt the latest version would work. I just retrieved all
> org/.../input classes from a cocoon 2.1.8 distribution and hacked my
> cocoon-2.1.3 jar, no success.
>
>
> I just spent a couple hours w/o making any progress. What can I do?
Give
> up using XMLFileModule ?
>
>
> Any help is highly appreciated!
>
> Thanx,
> Heiko
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>   

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




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


Mime
View raw message