sleeping components

2008-03-25 Thread Jim Brace
Hi, I'm using cocoon 2.1.7 under jdk 1.5. I've written some basic actions, but am puzzled that these actions seem to need a warm up. If I leave the system running overnight, first hit in the morning will be terribly slow. After that, all is ok. My Actions do not implement Threadsafe, so they

Re: sleeping components

2008-03-25 Thread Carsten Ziegeler
Jim Brace wrote: Hi, I'm using cocoon 2.1.7 under jdk 1.5. I've written some basic actions, but am puzzled that these actions seem to need a warm up. If I leave the system running overnight, first hit in the morning will be terribly slow. After that, all is ok. My Actions do not implement

Servlet via Servlet Services only

2008-03-25 Thread Robin Wyles
Hi, I have a servlet (eXist db) configured as a block using blockServlet.xml, this works well - my other blocks are able to perform DB operations using eXist's REST API through servlet services. But, is there a way I can make my eXist block 'private', i.e. only available via servlet

Re: How to inject the result of an action into a generator

2008-03-25 Thread Vadim Gritsenko
On Mar 25, 2008, at 12:31 AM, shai200 wrote: This doesn't work for me for some reason. I get an error (see end of this message). snip/ And my sitemap entry is: map:match pattern=xmlaction map:act type=xml-injection

Re: How to inject the result of an action into a generator

2008-03-25 Thread Joerg Heinicke
On 25.03.2008 00:31, shai200 wrote: This doesn't work for me for some reason. I get an error (see end of this message). My code snippet is: public class XMLInjectAction extends AbstractAction { public Map act (Redirector redirector,SourceResolver resolver, Map objectModel, String

Re: Servlet via Servlet Services only

2008-03-25 Thread Grzegorz Kossakowski
Robin Wyles pisze: Hi, I have a servlet (eXist db) configured as a block using blockServlet.xml, this works well - my other blocks are able to perform DB operations using eXist's REST API through servlet services. But, is there a way I can make my eXist block 'private', i.e. only available

Re: Servlet via Servlet Services only

2008-03-25 Thread Vadim Gritsenko
On Mar 25, 2008, at 9:21 AM, Grzegorz Kossakowski wrote: Robin Wyles pisze: Hi, I have a servlet (eXist db) configured as a block using blockServlet.xml, this works well - my other blocks are able to perform DB operations using eXist's REST API through servlet services. But, is there a way

Re: Servlet via Servlet Services only

2008-03-25 Thread Reinhard Poetz
Vadim Gritsenko wrote: On Mar 25, 2008, at 9:21 AM, Grzegorz Kossakowski wrote: Robin Wyles pisze: Hi, I have a servlet (eXist db) configured as a block using blockServlet.xml, this works well - my other blocks are able to perform DB operations using eXist's REST API through servlet services.

Re: Servlet via Servlet Services only

2008-03-25 Thread Robin Wyles
Hi, I'm trying to follow Grzegorz's suggestion and have configured my method servlet as follows: bean name=com.jac.exist.cocoon-exist.serviceTarget class=com.jac.exist.servlets.ServletServiceEXistServlet servlet:context mount-path=/exist context-path=blockcontext:/ cocoon-exist/

Re: Servlet via Servlet Services only

2008-03-25 Thread Grzegorz Kossakowski
Robin Wyles pisze: Hi, I'm trying to follow Grzegorz's suggestion and have configured my method servlet as follows: bean name=com.jac.exist.cocoon-exist.service class=org.springframework.aop.framework.ProxyFactoryBean property name=interceptorNames list

Re: Servlet via Servlet Services only

2008-03-25 Thread Robin Wyles
Hi Grzegorz, I'm still getting to grips with Spring... I've taken a quick look at the aop namespace docs but can't see yet how to define a method advisor using an interceptor bean - I'll keep digging. In the meantime here is the stacktrace:

Cocoon 2.2 i18n

2008-03-25 Thread Magnus Haraldsen Amundsen
Hi, We have a pipeline that takes an XML (from a JX Template) and transforms it to HTML using an XSLT. Both the JX Template and the XSLT contains text (labels etc.) that we want to i18nize. Is this possible? Could we just add 18n:text around all labels, text etc. in both the JX Template and

Re: How to inject the result of an action into a generator

2008-03-25 Thread solprovider
On 3/25/08, shai200 [EMAIL PROTECTED] wrote: And my sitemap entry is: map:match pattern=xmlaction map:act type=xml-injection map:generate map:parameter name=param value={paramAction}/

cannot find error in logs

2008-03-25 Thread Martyn Wilson
I have a cocoon application, which errors out with a default 500 page. Thereis not reference to this in the cocoon.log. Is there a configuration I am missing to log errors? Please advise? Martyn Wilson

Re: Javaflow - major memory issue: more info

2008-03-25 Thread Torsten Curdt
On Mar 25, 2008, at 01:47, footh wrote: Thanks for the reply. Yea, I'm not too worried about continuation expiry parameter although I'd like to experiment with shrinking it. Yeah the problem really is not the expiry parameter. It's more the need for a maximum kept number of

Upper limit to excel spreadsheet size

2008-03-25 Thread Martyn Wilson
I have a cocoon app that generates an excel spreadsheet. The app fails when the spreadsheet hits 4420 entries. I get a 500 error, but nothing appears in the logs. Any ideas. I am running Cocoon 2.1.11 on Tomcat 5.5.20 on Windows XP professional. Martyn Wilson

Re: How to inject the result of an action into a generator

2008-03-25 Thread shai200
Hello, This requirement is the primary function that I'll need from Cocoon, otherwise it's not good for me and I'll have to find some other servlet generating framework. I have a system where I have objects generating XHTML code based on some input I give them (other XML descriptors, Database

Re: Upper limit to excel spreadsheet size

2008-03-25 Thread Vadim Gritsenko
On Mar 25, 2008, at 5:44 PM, Martyn Wilson wrote: I have a cocoon app that generates an excel spreadsheet. The app fails when the spreadsheet hits 4420 entries. I get a 500 error, but nothing appears in the logs. Any ideas. Take a look at the tomcat's console. If you are hitting, for

Re: Cocoon 2.2 i18n

2008-03-25 Thread Vadim Gritsenko
On Mar 25, 2008, at 11:02 AM, Magnus Haraldsen Amundsen wrote: We have a pipeline that takes an XML (from a JX Template) and transforms it to HTML using an XSLT. Both the JX Template and the XSLT contains text (labels etc.) that we want to i18nize. Is this possible? Could we just add

Re: Compiled vs. Interpreted Sitemap Engine (Cocoon 2.x)

2008-03-25 Thread Robert La Ferla
btw - this applies to Cocoon 2.1 as well. Anyone know how exactly it works? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to inject the result of an action into a generator

2008-03-25 Thread solprovider
On 3/25/08, shai200 [EMAIL PROTECTED] wrote: This requirement is the primary function that I'll need from Cocoon, otherwise it's not good for me and I'll have to find some other servlet generating framework. I have a system where I have objects generating XHTML code based on some input

Re: How to inject the result of an action into a generator

2008-03-25 Thread Joerg Heinicke
On 25.03.2008 18:46, shai200 wrote: This requirement is the primary function that I'll need from Cocoon, otherwise it's not good for me and I'll have to find some other servlet generating framework. It's not that Cocoon does not support this functionality in general. What we said so far only

Re: How to inject the result of an action into a generator

2008-03-25 Thread shai200
Alright, so since you're already in the groove of answering my questions (thanks btw), I would need my generator class to also have access to the entire Request Map (preferably in the form MapString,String[] where the String[] key is the set of values in case a value is declared twice, but that's

Loading ApplicationContext class when Jetty starts

2008-03-25 Thread shai200
I have a Preloader class which implements ServletContextListener and initializes an object of a class called ApplicationContext in which I aggregate application-level objects. Is there a native way to do this in Cocoon (i.e. store objects in the application context?) In any case, I tried to

Re: Compiled vs. Interpreted Sitemap Engine (Cocoon 2.x)

2008-03-25 Thread Joerg Heinicke
On 25.03.2008 21:00, Robert La Ferla wrote: btw - this applies to Cocoon 2.1 as well. Anyone know how exactly it works? See Carsten's reply on the dev list: http://marc.info/?l=xml-cocoon-devm=120644301119918w=4 Joerg - To

Re: How to inject the result of an action into a generator

2008-03-25 Thread Joerg Heinicke
On 25.03.2008 22:45, shai200 wrote: Alright, so since you're already in the groove of answering my questions (thanks btw), I would need my generator class to also have access to the entire Request Map (preferably in the form MapString,String[] where the String[] key is the set of values in case