You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Olivier Billard <ob...@jouve.fr> on 2004/04/20 15:43:06 UTC

XSP and cocoon cache

Hi Cocooners !

What is the cache used by Cocoon when rendering a pipeline ? and a 
pipeline error ?

When a runtime error occurs in an XSP, the rendered "cocoon error page" 
still displays when calling this page another time, but with a case that 
doesn't cause any error... I'm sure the error doesn't really reproduce, 
because no more error is logged.

And when I restart the server, all is fine until a new error. Not pretty 
cool for dev isn't it ?

Please help !
Thanks in advance !

--
Olivier Billard


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


Re: XSP and cocoon cache

Posted by Olivier Billard <ob...@jouve.fr>.
Olivier Billard wrote:

> Jan Hoskens wrote:
> 
>> Hmm, you're right, I was a bit off on that one.
>> But you don't need to shut down your server, just clean your working 
>> dir. If
>> you're using Tomcat, you can find your compiled XSP pages under the work
>> dir:
>>
>> C:\app\Jakarta-Tomcat_4.1.29\work\Standalone\localhost\_\cocoon-files\org\ap 
>>
>> ache\cocoon\www\file_\
>>
>> There should be your sitedir with some classes in it.
>>
>> Or just clean it all the way under Standalone.
> 
> Unfortunately, it doesn't work : the class isn't recompiled and the 
> output is the same, even when I change the concerned pipe to 
> "noncaching"...
And when i "touch" the source file, it works again... until the next 
error...


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


Re: XSP and cocoon cache

Posted by Olivier Billard <ob...@jouve.fr>.
Jan Hoskens wrote:
> Hmm, you're right, I was a bit off on that one.
> But you don't need to shut down your server, just clean your working dir. If
> you're using Tomcat, you can find your compiled XSP pages under the work
> dir:
> 
> C:\app\Jakarta-Tomcat_4.1.29\work\Standalone\localhost\_\cocoon-files\org\ap
> ache\cocoon\www\file_\
> 
> There should be your sitedir with some classes in it.
> 
> Or just clean it all the way under Standalone.
Unfortunately, it doesn't work : the class isn't recompiled and the 
output is the same, even when I change the concerned pipe to "noncaching"...

> ----- Original Message ----- 
> From: "Olivier Billard" <ob...@jouve.fr>
> To: <us...@cocoon.apache.org>
> Sent: Tuesday, April 20, 2004 4:01 PM
> Subject: Re: XSP and cocoon cache
> 
> 
> 
>>Hi Jan,
>>
>>Thanks for you answer.
>>Answers below :
>>
>>Jan Hoskens wrote:
>>
>>
>>>Are you using subsitemaps?
>>
>>Yes
>>
>>
>>>Then check that you're having this attribute on
>>>your mount:
>>>
>>><map:mount check-reload="yes" ../>
>>
>>all is ok
>>
>>
>>>If not, check cocoon.xconf for
>>>
>>><sitemap check-reload="yes" ../>
>>
>>doesn't this feature tell cocoon to recompile the sitemap if it changes
>>? In this case, recompilation of XSP is not impacted, isn't it ?


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


Re: XSP and cocoon cache

Posted by Jan Hoskens <jh...@schaubroeck.be>.
Hmm, you're right, I was a bit off on that one.
But you don't need to shut down your server, just clean your working dir. If
you're using Tomcat, you can find your compiled XSP pages under the work
dir:

C:\app\Jakarta-Tomcat_4.1.29\work\Standalone\localhost\_\cocoon-files\org\ap
ache\cocoon\www\file_\

There should be your sitedir with some classes in it.

Or just clean it all the way under Standalone.

Kind Regards,
Jan

----- Original Message ----- 
From: "Olivier Billard" <ob...@jouve.fr>
To: <us...@cocoon.apache.org>
Sent: Tuesday, April 20, 2004 4:01 PM
Subject: Re: XSP and cocoon cache


> Hi Jan,
>
> Thanks for you answer.
> Answers below :
>
> Jan Hoskens wrote:
>
> > Are you using subsitemaps?
> Yes
>
> > Then check that you're having this attribute on
> > your mount:
> >
> > <map:mount check-reload="yes" ../>
> all is ok
>
> >
> > If not, check cocoon.xconf for
> >
> > <sitemap check-reload="yes" ../>
> doesn't this feature tell cocoon to recompile the sitemap if it changes
> ? In this case, recompilation of XSP is not impacted, isn't it ?
>
>
>
> ---------------------------------------------------------------------
> 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


Re: XSP and cocoon cache

Posted by Olivier Billard <ob...@jouve.fr>.
Hi Jan,

Thanks for you answer.
Answers below :

Jan Hoskens wrote:

> Are you using subsitemaps?
Yes

> Then check that you're having this attribute on
> your mount:
> 
> <map:mount check-reload="yes" ../>
all is ok

> 
> If not, check cocoon.xconf for
> 
> <sitemap check-reload="yes" ../>
doesn't this feature tell cocoon to recompile the sitemap if it changes 
? In this case, recompilation of XSP is not impacted, isn't it ?



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


Re: XSP and cocoon cache

Posted by Jan Hoskens <jh...@schaubroeck.be>.
Are you using subsitemaps? Then check that you're having this attribute on
your mount:

<map:mount check-reload="yes" ../>

If not, check cocoon.xconf for

<sitemap check-reload="yes" ../>

I think that should do it. (well I'm not having troubles with XSP pages that
don't recompile;)

Kind Regards,
Jan

----- Original Message ----- 
From: "Olivier Billard" <ob...@jouve.fr>
To: <us...@cocoon.apache.org>
Sent: Tuesday, April 20, 2004 3:43 PM
Subject: XSP and cocoon cache


> Hi Cocooners !
>
> What is the cache used by Cocoon when rendering a pipeline ? and a
> pipeline error ?
>
> When a runtime error occurs in an XSP, the rendered "cocoon error page"
> still displays when calling this page another time, but with a case that
> doesn't cause any error... I'm sure the error doesn't really reproduce,
> because no more error is logged.
>
> And when I restart the server, all is fine until a new error. Not pretty
> cool for dev isn't it ?
>
> Please help !
> Thanks in advance !
>
> --
> Olivier Billard
>
>
> ---------------------------------------------------------------------
> 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