cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Geelen" <>
Subject Can Cron Job Scheduler call .xsp page (2) ?
Date Thu, 08 Apr 2004 17:13:57 GMT

I finally discovered in the that appareantly you can add a
third parameter to the <component> tag (in the cocoon.xconf file)  :

  <!-- sample definition of cron job -->
  <component class="org.apache.cocoon.components.cron.TestCronJob"
logger="cron.test" role="org.apache.cocoon.components.cron.CronJob/test">
    <msg>I'm here</msg>

So I presume that the <pipeline> paramters should point to a pipeline in the
'root' sitemap.xmap, so I added (in the 'root' sitemap.xmap):

   <map:match pattern="testcron">
     <map:generate type="serverpages" src="testsite/xsp/testcron.xsp"/>

Starting Tomcat & Cocoon generates following error when the crontask is

ERROR   (2004-04-08) 18:42.00:113   [cron.test] Unknown-thread/TestCronJob:
error in execution of TestCronJob
org.apache.cocoon.ProcessingException: Failed to load sitemap from

So it can not load the 'root' sitemap.xmap (although Cocoon reads this
sitemap when started - so this sitemap does not contain errors).

Appareantly this error is generated at following line in the

        InputStream is = null;
        try {
            is = process(pipeline);
        } catch (Exception e) {
            getLogger().error("in execution of TestCronJob", e);

Anyone any idea ?



----- Original Message ----- 
From: "Stefan Geelen" <>
To: <>
Sent: Thursday, April 08, 2004 12:20 PM
Subject: Can Cron Job Scheduler call .xsp page ?

> Hi,
> looking at the documentation regarding the Cron Job Scheduler I was
> disappointed not seeing an example of how the cronjob can/could call a
> page to execute.
> So the question is : Can the scheduler call an xsp page or is it limited
> a java class.  If it can, does some one has an example of this ?
> Regards,
> Stefan
> _________________________________________________________________
> Vraag van de week: Welk soort project zou jij financieel ondersteunen?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message