Return-Path: Delivered-To: apmail-lenya-user-archive@www.apache.org Received: (qmail 2096 invoked from network); 23 Mar 2009 21:18:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Mar 2009 21:18:26 -0000 Received: (qmail 79887 invoked by uid 500); 23 Mar 2009 21:18:25 -0000 Delivered-To: apmail-lenya-user-archive@lenya.apache.org Received: (qmail 79814 invoked by uid 500); 23 Mar 2009 21:18:25 -0000 Mailing-List: contact user-help@lenya.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lenya.apache.org Delivered-To: mailing list user@lenya.apache.org Received: (qmail 79806 invoked by uid 99); 23 Mar 2009 21:18:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2009 21:18:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [91.121.17.37] (HELO serveur.mavenfrance4.com) (91.121.17.37) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2009 21:18:16 +0000 Received: from localhost ([127.0.0.1] helo=4sengines.com) by serveur.mavenfrance4.com with esmtpa (Exim 4.69) (envelope-from ) id 1LlrWy-00068R-9X for user@lenya.apache.org; Mon, 23 Mar 2009 22:18:00 +0100 MIME-Version: 1.0 Date: Mon, 23 Mar 2009 22:18:00 +0100 From: =?UTF-8?Q?Florent_Andr=C3=A9?= To: user@lenya.apache.org Subject: Re: Job Scheduler in Lenya/Cocoon In-Reply-To: References: <496B58C7.4020500@techblue.co.uk> <496C7A15.50003@propco.co.uk> <496DEBF4.2030308@techblue.co.uk> <4975BBC6.2030705@techblue.co.uk> Message-ID: <5321777ca47597207602cfe97737ebb1@4sengines.eu> X-Sender: florent.andre-dev@4sengines.com User-Agent: RoundCube Webmail/0.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UTF-8" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serveur.mavenfrance4.com X-AntiAbuse: Original Domain - lenya.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - 4sengines.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org Hi, I make a "up !", because I really have to create a cron that call a pipeline and I try many thinks with no result... What is your solution Anish ? pleeeeze :) ++ On Sat, 21 Mar 2009 13:03:21 +0100, Florent André wrote: > Hi Anish, > > I think I have the same problem you solve : > > org.apache.excalibur.source.SourceException: Cannot get input stream for > cocoon://modules/mymodule/crontest > > In the component test I try > * modules/mymodule/crontest > * lenya/modules/mymodule/crontest > * mymodule/crontest > > ... but nothing work. > > Can you help me ? > > --- cocoon.conf --- > ## cron component/trigger : > > target="org.apache.cocoon.components.cron.CronJob/test" > concurrent-runs="false"> > */2 * * * * ? * > > > > ##component test : > class="org.apache.cocoon.components.cron.TestCronJob" > logger="cron.test"> > > modules/mymodule/crontest > > > > > --- Mymodule.xmap --- > > > > > > > > > > > > > > TIA & HAND > > > On Tue, 20 Jan 2009 17:25:50 +0530, Anish > wrote: >> Anish wrote: >>> Hi >>> >>> I've applied cron scheduler to my Cocoon/Lenya Application. I'm trying >>> to call a pipeline (which is publication specific i.e. inside >>> publication-sitemap.xmap). >>> >>> My call from scheduler reaches to the sitemap but during processing it >>> throws : >>> >>> org.apache.excalibur.source.SourceException: Cannot get input stream >>> for cocoon://mypublication/live/mypage.xml >>> >>> due to: >>> >>> java.lang.StringIndexOutOfBoundsException: String index out of range: -1 >>> >>> Although my all pipelines work fine inside the publication as I access >>> through browser. >>> >>> I'm using: >>> >>> Cocoon 2.1.7 >>> Lenya 1.2.4 >>> Tomcat 5.5.17 >>> >>> Please suggest. >>> >>> Vik Tara wrote: >>>>>> for general scheduling tasks, take a look at the cron block API >>>>>> documentation in Cocoon. >>>>>> >>>> >>>> I think that's here: >>>> http://xmlshoestring.com/samples/blocks/cron/samples >>>> >>>> Andreas Hartmann wrote: >>>> >>>>> Hi Anish, >>>>> >>>>> Anish schrieb: >>>>> >>>>>> I was trying to implement Cocoon Job Scheduler. Please help and >>>>>> provide me documentation/information as I could hardly find relevant >>>>>> documentation on that. >>>>>> >>>>> for general scheduling tasks, take a look at the cron block API >>>>> documentation in Cocoon. >>>>> >>>>> For an example how to schedule a Lenya usecase, consult the API of the >>>>> UsecaseScheduler class and use the Publish usecase as an example. >>>>> >>>>> -- Andreas >>>>> >>>>> >>>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org >>>> For additional commands, e-mail: user-help@lenya.apache.org >>>> >>>> >>> >>> >>> -- >>> Thanks & Regards, >>> Anish >> Hi All >> >> Thanks, The issue is resolved. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org > For additional commands, e-mail: user-help@lenya.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org For additional commands, e-mail: user-help@lenya.apache.org