RE: Enviroment missing in cron class?

2011-09-14 Thread Gary Larsen
Hi Alfred, You were correct that I was not catching that exception. The generator works ok when run from a browser request but not from the cron job. I'm wonder if I need to implement an additional Cocoon interface. Right now it's this: public class MLDocGenerator extends ServiceableGenerator im

RE: Enviroment missing in cron class?

2011-09-14 Thread Nathaniel, Alfred
Hi Gary, There are a number of missing links in your mail but I would guess that the NPE is caused because in MLDocGenerator you have something like try { ... source = resolver.resolveURI(src); } catch(Exception ex) { // ignore } } public void recycle() { resolver.releas

Enviroment missing in cron class?

2011-09-14 Thread Gary Larsen
I'm attempting something new for me in Cocoon 2.1.9 and would appreciate some advice. Basically it's a cron class which not seem to have complete access to the Cocoon environment. The class extends ServiceableCronJob and runs this code to execute the pipeline request: resolver

Re: Cocoon3, JSON, Spring

2011-09-14 Thread Andre Juffer
On 14/09/11 17:01, Thorsten Scherler wrote: On Sun, 2011-09-11 at 23:16 +0300, Andre Juffer wrote: Also, my comment about the FopSerializer deriving from a XMLSerializer is in fact incorrect, so just ignore that one. I got that apparently confused with something else (I looked at too much code a

Re: Cocoon3, JSON, Spring

2011-09-14 Thread Thorsten Scherler
On Sun, 2011-09-11 at 23:16 +0300, Andre Juffer wrote: > Also, my comment about the FopSerializer deriving from a XMLSerializer > is in fact incorrect, so just ignore that one. I got that apparently > confused with something else (I looked at too much code apparently...). > > There are however m

Re: cocoon 3: Javascript in jars

2011-09-14 Thread Andre Juffer
On 14/09/11 15:13, Francesco Chicchiriccò wrote: On 14/09/2011 13:58, Andre Juffer wrote: On 14/09/11 14:35, Javier Puerto wrote: [...] AFAIK, Resource protocol is not yet implemented in Cocoon 3. There may be another way. It is possibly called differently? I tried "classpath://...", but did

Re: cocoon 3: Javascript in jars

2011-09-14 Thread Francesco Chicchiriccò
On 14/09/2011 13:58, Andre Juffer wrote: On 14/09/11 14:35, Javier Puerto wrote: [...] AFAIK, Resource protocol is not yet implemented in Cocoon 3. There may be another way. It is possibly called differently? I tried "classpath://...", but didn't work either. E.g. Spring uses this protocol a

Re: cocoon 3: Javascript in jars

2011-09-14 Thread Andre Juffer
On 14/09/11 14:35, Javier Puerto wrote: 2011/9/14 Andre Juffer > Hi Javier, Thanks for your reply. Yes, your suggestion probably would work, but seems more cumbersome. Response returned from another block must be XML, right? No, you can access

Re: cocoon 3: Javascript in jars

2011-09-14 Thread Javier Puerto
2011/9/14 Andre Juffer > ** > Hi Javier, > > Thanks for your reply. > > Yes, your suggestion probably would work, but seems more cumbersome. > Response returned from another block must be XML, right? > No, you can access resources from other blocks with this protocol. blockcontext:/[block-name]

RE: Cocoon 2.2 production server configuration

2011-09-14 Thread Robby Pelssers
Hi Brecht, I checked out the Cocoon sources from SVN and applied the patch locally and installed the module in our repo. I mailed you my patched version of the jar. Kind regards, Robby From: Brecht Schoolmeesters [mailto:brecht.schoolmeest...@zappware.com] Sent: Wednesday, September 14, 2011 12

Re: Cocoon 2.2 production server configuration

2011-09-14 Thread Brecht Schoolmeesters
Hi Robby,  thanks for your reply. I think the memory leak is causing the high memory usage. I decompiled the class file we use in our cocoon server and it uses the unpatched PoolableProxyHandler. How can I apply the patch to the cocoon version we are using (stable 2.2.0 version from the site)? 

Re: Cocoon 2.2 production server configuration

2011-09-14 Thread Brecht Schoolmeesters
Hi Robby, thanks for your reply. I think the memory leak is causing the high memory usage. I decompiled the class file we use in our cocoon server and it uses the unpatched PoolableProxyHandler. How can I apply the patch to the cocoon version we are using (stable 2.2.0 version from the site)? I tr

Re: cocoon 3: Javascript in jars

2011-09-14 Thread Andre Juffer
Hi Javier, Thanks for your reply. Yes, your suggestion probably would work, but seems more cumbersome. Response returned from another block must be XML, right? That is, the requested javascript has to be inserted into XML with at least one containing element before it is send to the requestin

Re: cocoon 3: Javascript in jars

2011-09-14 Thread Javier Puerto
Hi Andre, 2011/9/14 Andre Juffer > Hi, > > with cocoon 2.2 one can read javascript resources residing in separate jars > like: > > > > > > (the above is for loading javascript from the dojotoolkit. I made a > separate maven project for Dojo, and make a cocoon-based project depending > on it.

Re: Transformer parameters are intermittently not set.

2011-09-14 Thread Javier Puerto
2011/9/14 Alec Bickerton > On 14/09/11 11:48, Thorsten Scherler wrote: > > On Wed, 2011-09-14 at 10:58 +0200, Alec Bickerton wrote: > >> Hi, > >> > >> I'm seeing some unusual behaviour in Cocoon 2.1.9. It appears that it > possible for the xalan transformer parameters to > >> not be set in a pipe

Re: Cocoon 2.2 production server configuration

2011-09-14 Thread Brecht Schoolmeesters
Hello Jeroen, i've also commented inline: On Tue, Sep 13, 2011 at 10:59 AM, Jeroen Reijn wrote: > Hi, > > see my comments inline: > > On Fri, Sep 9, 2011 at 10:37 AM, Brecht Schoolmeesters > wrote: > > Hi, > > we are currently using cocoon for transforming source xml files into xml > > files i

Re: Transformer parameters are intermittently not set.

2011-09-14 Thread Alec Bickerton
On 14/09/11 11:48, Thorsten Scherler wrote: > On Wed, 2011-09-14 at 10:58 +0200, Alec Bickerton wrote: >> Hi, >> >> I'm seeing some unusual behaviour in Cocoon 2.1.9. It appears that it >> possible for the xalan transformer parameters to >> not be set in a pipeline. Is this a known issue? >> >> Re

Re: Transformer parameters are intermittently not set.

2011-09-14 Thread Thorsten Scherler
On Wed, 2011-09-14 at 10:58 +0200, Alec Bickerton wrote: > Hi, > > I'm seeing some unusual behaviour in Cocoon 2.1.9. It appears that it > possible for the xalan transformer parameters to > not be set in a pipeline. Is this a known issue? > > Relevant part of the sitemap.xmap > > > >

cocoon 3: Javascript in jars

2011-09-14 Thread Andre Juffer
Hi, with cocoon 2.2 one can read javascript resources residing in separate jars like: (the above is for loading javascript from the dojotoolkit. I made a separate maven project for Dojo, and make a cocoon-based project depending on it. I have different maven projects for different vers

Transformer parameters are intermittently not set.

2011-09-14 Thread Alec Bickerton
Hi, I'm seeing some unusual behaviour in Cocoon 2.1.9. It appears that it possible for the xalan transformer parameters to not be set in a pipeline. Is this a known issue? Relevant part of the sitemap.xmap