cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Schwendner [Public Image]" <jakob.schwend...@publicimage.eu.com>
Subject Re: caching of generated xsp
Date Fri, 12 Mar 2004 00:45:07 GMT
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="page.xsp" type="serverpages">
      <map:parameter name="pageid" value="{1}"/>
   </map:generate>
   <map:transform src="generate-xsp.xsl"/>
   <map:serialize type="xml"/> 
</map:match>

<map:match pattern="page-*">
   <map:generate src="cocoon:/page-{1}.xsp" type="serverpages"/>
   <map:transform src="tohtml.xsl"/>
   <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 
found at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26725)

thanks,

jakob

----- Original Message ----- 
  From: Marco Rolappe 
  To: users@cocoon.apache.org 
  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: users-return-64320-m_rolappe=web.de@cocoon.apache.org [mailto:users-return-64320-m_rolappe=web.de@cocoon.apache.org]Im
Auftrag von Jakob Schwendner [Public Image]
    Gesendet: Mittwoch, 10. März 2004 00:56
    An: users@cocoon.apache.org; m_rolappe@web.de
    Betreff: Re: caching of generated xsp


    Hi Marco,

    thank you very much for your swift reply. Found the patch at
    http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26725
    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
Mime
View raw message