Hi,
Thanks again. The compilation works ok, and it seems to run without any problems
(Well, after I reverted back to JVM 1.4.2 instead of the 1.5.0 Beta 1 which makes the
jisp persistance store stop working.)
 
<map:match pattern="page-*.xsp">
   <map:generate src="" type="serverpages">
      <map:parameter name="pageid" value="{1}"/>
   </map:generate>
   <map:transform src=""/>
   <map:serialize type="xml"/> 
</map:match>
 
<map:match pattern="page-*">
   <map:generate src="" type="serverpages"/>
   <map:transform src=""/>
   <map:serialize type="html"/> 
</map:match>
In this example I made the page.xsp caching which should hopefully create a cache
entry for say PK_G_page-1.xsp-T.... a.s.o.
subsequent requests to page-1 should, after having applied your patch, not result in
a regeneration of the respective xsp.
When I have a look at the logs this behaviour seems to be the case, as there is only
one message for the generation of the java file: (similar to this one)
 
INFO    (2004-03-12) 11:23.12:583   [core.program-generator] (/sonar/manage/) http8080-Processor25/ProgramGeneratorImpl: The serverpage [cocoon://manage/sonar-page-530915626.xsp?pipelinehash=3317303099616676276] could not be preloaded, will be re-created (org.apache.cocoon.components.language.LanguageException: Unable to preload program org\apache\cocoon\www\cocoon_\_\manage\sonar_page_530915626_xsp_pipelinehash_3317303099616676276: org.apache.cocoon.components.language.LanguageException: Could not load class for program 'org\apache\cocoon\www\cocoon_\_\manage\sonar_page_530915626_xsp_pipelinehash_3317303099616676276' due to a java.lang.ClassNotFoundException: org.apache.cocoon.www.cocoon_._.manage.sonar_page_530915626_xsp_pipelinehash_3317303099616676276)
The thing is only, that the java file still gets regenerated which I can see at the
timestamp and the approx 200ms it takes to refresh the page.
 
I have tried to switch the core.program-generator log to debug, but there are no more
messages. Any hints where I could dig next? (I am using 2.1.4 with the patches
 
thanks,
 
jakob
 
----- Original Message -----
Sent: Wednesday, March 10, 2004 6:24 PM
Subject: AW: caching of generated xsp

hi jakob,
 
SitemapSource didn't really change that much between 2.1.3 and 2.1.4 (just had a look at the diff). I suggest you simply 'update' your local 2.1.4 SitemapSource with the 2.1.3 one and apply the patch.
-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Im Auftrag von Jakob Schwendner [Public Image]
Gesendet: Mittwoch, 10. M�rz 2004 00:56
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: caching of generated xsp

Hi Marco,
 
thank you very much for your swift reply. Found the patch at
It is however against cocoon 2.1.3. Have you or has anyone else got a patch against the
2.1.4 release?
 
thanks,
 
Jakob

Reply via email to