RE: Images randomly disappear - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource
FYI A colleague found a fix on Planet Cocoon that seems to work. I hope it is a permanent one. For more information on the EHCache exception error: http://www.planetcocoon.com/node/3085?PHPSESSID=f3d5c3d360b729c6c32351b62b7972e0 “This looks like a corrupted cache (though it's been a while since I've seen the message that results from one). If so, you may have to shutdown Cocoon, delete the cache files (cocoon-ehcache-1.index and cocoon-ehcache-1.data) and restart Cocoon... Peter Hunsberger” Héryk De : Ard Schrijvers [mailto:[EMAIL PROTECTED] Envoyé : 13 février 2006 15:00 À : users@cocoon.apache.org Objet : RE: Images randomly disappear - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource I don't know where your error comes from...but want to advice you not to use ehcache for images...Do you serve pages directly from cocoon or with mod_cache or squid between? Let them do the image caching. Furthermore, set an expires in your image/css/js readers in cocoon which give them an expires header. That makes caching them unneccesary AS Hi, I’m having trouble with images in a Cocoon web site. Images randomly appear and disappear in my web browser when I refresh pages (browser cache has been removed). Furthermore, if I copy/paste the url of a missing image in a web browser, the image is adequately displayed. I keep having the following message in my Apache stdout.log : 9271607 [http-8080-Processor25] ERROR net.sf.ehcache.store.DiskStore - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource-file:/C:/jakarta-tomcat-5.0.29/webapps/cocoon/docs/images/label-background_a.gif net.sf.ehcache.CacheException: cocoon-ehcache-1 Cache: The Disk store is not active. at net.sf.ehcache.store.DiskStore.checkActive(DiskStore.java:207) Has anyone else had this problem? Any suggestions? Current set up: Apache Tomcat/5.0.29 Cocoon : 2.1.6 Cheers Héryk Julien NRCan
Images randomly disappear - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource
Hi, I’m having trouble with images in a Cocoon web site. Images randomly appear and disappear in my web browser when I refresh pages (browser cache has been removed). Furthermore, if I copy/paste the url of a missing image in a web browser, the image is adequately displayed. I keep having the following message in my Apache stdout.log : 9271607 [http-8080-Processor25] ERROR net.sf.ehcache.store.DiskStore - cocoon-ehcache-1Cache: Could not read disk store element for key PK_R-resource-file:/C:/jakarta-tomcat-5.0.29/webapps/cocoon/docs/images/label-background_a.gif net.sf.ehcache.CacheException: cocoon-ehcache-1 Cache: The Disk store is not active. at net.sf.ehcache.store.DiskStore.checkActive(DiskStore.java:207) Has anyone else had this problem? Any suggestions? Current set up: Apache Tomcat/5.0.29 Cocoon : 2.1.6 Cheers Héryk Julien NRCan
RE: XForms and Cocoon
Hi, I will also have to implement xforms soon. I found Chicoon that can work inside Cocoon. http://81.169.173.189:8080/cocoon/chicoon/index The demo works okay on my server. I haven't had much time to play with it and test it out. Good luck Héryk Julien -Message d'origine- De : Andrea Vagliengo [mailto:[EMAIL PROTECTED] Envoyé : mardi 8 mars 2005 09:29 À : users@cocoon.apache.org Objet : XForms and Cocoon Hi all, I'm using the WebServices-Proxy generator provided by Cocoon to allow communication between my cocoon-based application and some other servlet based web-services. I can't find any documentation about XForm support under cocoon: the WS-Proxy manages XForms, but I have to render it some way in the browser and I need XSLT transformation to adapt the XML content to the client user-agent. Can you tell me where I can find some docs about trasforming XForms content with some XSL transforms? Do you perhaps know if there is some general XSLT already available for this purpose (such as the Cocoon built-in stylesheets, ready to modify) ? Thank you all for your eventual reply, Andrea Vagliengo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Basic Session and encode-url example
No problem I don't think it will be much use to you but here is part of my sitemap where urlEncode is used (snippet of the component and pipeline sections of my sitemap): false false .*/@href|.*/@action|frame/@src img/@src|(a/@href|iframe/@src)=.*adserver false true true true false ISO-8859-1 The above pipeline was inspired from the cocoon docs sitemap. However instead of combining 2 pipelines (book and xdocs), I'm combining a session context, a web configuration file (controls my common look and feel), a book pipeline (left menu) and my web main web content (xdocs). You should read about the url encoder parameters in the component section of the sitemap to make sure it's doing what you want. Good luck! Héryk -Message d'origine- De : Christoph Hermann [mailto:[EMAIL PROTECTED] Envoyé : lundi 13 décembre 2004 09:57 À : [EMAIL PROTECTED] Objet : Re: Basic Session and encode-url example -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julien, Heryk schrieb: Hello, > I've been using urlEncode without authentication with success. > However, I'm currently implementing authentication and I hope I won't > be getting the bugs you are having. > I guess someone else will be able to help you. Could you give me some of the pages where you used encodeURL if this is possible? Maybe i can try that out here and i will find what i'm doing wrong. A+ :-) Christoph -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBva3ZH8qhdtR4sUIRAg+FAJ47W5bi4JdqzRhGVk7zTGAGW5D/VQCfc0Tr MQ1LJnFf4+/QL0OaeGJLFpk= =drOC -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon session context load URIs -- Need help!
It worked! Thanks ;-) Héryk Julien -Message d'origine- De : Adam Ratcliffe [mailto:[EMAIL PROTECTED] Envoyé : dimanche 12 décembre 2004 18:36 À : [EMAIL PROTECTED] Objet : RE: Cocoon session context load URIs -- Need help! Hi Julien ! In your stylesheet you overlooked a step, it should look like: dop! For a fuller explanation take a look at the session docs at the URL you provided. Cheers Adam -Original Message- From: Julien, Heryk [mailto:[EMAIL PROTECTED] Sent: Friday, 10 December 2004 7:13 a.m. To: [EMAIL PROTECTED] Subject: Cocoon session context load URIs -- Need help! Hi all, I would like to have a web application where I can initially load data from a cocoon pipeline into my session context. I have successfully written a style sheet were in two steps I create a session context (createcontext) and then manually load data in it using the setxml tag. Example 1. Here is a simple pipeline and xslt example that is applied to an empty xml file (dummy.xml) and outputs: "It works". The style sheet: http://www.w3.org/1999/XSL/Transform"; xmlns:session="http://apache.org/cocoon/session/1.0"; > It works dop! and the pipeline: However I would like to fill my session context with a cocoon pipeline that retrieves data from a database. I tried using the load attribute in the createcontext tag without any success ( ). Example 2. Here is a simple example that I can't get to work but should output: "It works". I'm presently getting the following output: "dop!". The same pipeline as example 1 is used here also: http://www.w3.org/1999/XSL/Transform"; xmlns:session="http://apache.org/cocoon/session/1.0";> dop! Here is the cocoon:/profileAnonyme pipeline output: It works Are there examples or more documentation available other then what is found in the cocoon user docs (http://cocoon.apache.org/2.1/developing/webapps/contexts.html)? Has anybody successfully used the createcontext "load" and "save" attributes? Cheers Héryk Julien Laboratoire de cartographie numérique et de photogrammétrie (LCNP) Commission géologique du Canada, CGC-Québec Ressources naturelles du Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Basic Session and encode-url example
Hi, I've been using urlEncode without authentication with success. However, I'm currently implementing authentication and I hope I won't be getting the bugs you are having. I guess someone else will be able to help you. Cheers Héryk -Message d'origine- De : Christoph Hermann [mailto:[EMAIL PROTECTED] Envoyé : lundi 13 décembre 2004 09:23 À : [EMAIL PROTECTED] Objet : Re: Basic Session and encode-url example -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julien, Heryk schrieb: Hello, >> i'm trying to get a very simple session example working with cocoon, >> but when i turn cookies off my session is lost even when i use >> in my sitemap. >> Can you give me any hints why this (encodeurl) is not working? The >> Coocoon examples (portal-fw) or my self-made authentication example >> work with encodeURL (when i'm logged in). >> Any Hint on what i'm doing wrong would really be appreciated. > You could try this: > 1. Did you add the transformer declaration in the sitemap? > > src="org.apache.cocoon.transformation.EncodeURLTransformer"> > > .*/@href|.*/@action|frame/@src > > img/@src|(a/@href|iframe/@src)=.*adserver > Even when i put this in the sitemap nothing changes. My pages are in a subdir of the cocoon "samples" directory and the portal-fw example i.e. is working fine. Also if i add some sort of authentication it works _after_ i'm logged in. > 2. Restart your browser once you turned your cookies off? That did not help either :/ What i don't understand is that the encodeURL is working when i use authentication, but it is not working without. Thanks for your help anyway Christoph -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBvaW9H8qhdtR4sUIRAuwqAJ48axGw1HYMwAFRQ9cft8IfoJtBPgCfZaV9 cyUdpMdyh0gEJWUG/jn8Wfo= =5g6I -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Basic Session and encode-url example
H! You could try this: 1. Did you add the transformer declaration in the sitemap? .*/@href|.*/@action|frame/@src img/@src|(a/@href|iframe/@src)=.*adserver 2. Restart your browser once you turned your cookies off? Hopes this help. Héryk -Message d'origine- De : Christoph Hermann [mailto:[EMAIL PROTECTED] Envoyé : lundi 13 décembre 2004 08:30 À : [EMAIL PROTECTED] Objet : Basic Session and encode-url example -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello List, i'm trying to get a very simple session example working with cocoon, but when i turn cookies off my session is lost even when i use in my sitemap. Can you give me any hints why this (encodeurl) is not working? The Coocoon examples (portal-fw) or my self-made authentication example work with encodeURL (when i'm logged in). In my sitemap i have the followind 2 pages: - ---snip--- - ---snap--- The pages look like this: - ---snip--- http://apache.org/cocoon/session/1.0";> Request test Page 1 - Page 2 Page: Page1 - ---snap--- Any Hint on what i'm doing wrong would really be appreciated. Thanks in Advance Christoph -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBvZlCH8qhdtR4sUIRAs4eAKCfrpqYTSuc+URLnmyfwn/kDd8SXwCgxHDi JQGGcUCK/BrZw/X20jK+gb4= =X7tR -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon session context load URIs -- Need help!
Hi all, I would like to have a web application where I can initially load data from a cocoon pipeline into my session context. I have successfully written a style sheet were in two steps I create a session context (createcontext) and then manually load data in it using the setxml tag. Example 1. Here is a simple pipeline and xslt example that is applied to an empty xml file (dummy.xml) and outputs: "It works". The style sheet: http://www.w3.org/1999/XSL/Transform"; xmlns:session="http://apache.org/cocoon/session/1.0"; > It works dop! and the pipeline: However I would like to fill my session context with a cocoon pipeline that retrieves data from a database. I tried using the load attribute in the createcontext tag without any success ( ). Example 2. Here is a simple example that I can't get to work but should output: "It works". I'm presently getting the following output: "dop!". The same pipeline as example 1 is used here also: http://www.w3.org/1999/XSL/Transform"; xmlns:session="http://apache.org/cocoon/session/1.0";> dop! Here is the cocoon:/profileAnonyme pipeline output: It works Are there examples or more documentation available other then what is found in the cocoon user docs (http://cocoon.apache.org/2.1/developing/webapps/contexts.html)? Has anybody successfully used the createcontext "load" and "save" attributes? Cheers Héryk Julien Laboratoire de cartographie numérique et de photogrammétrie (LCNP) Commission géologique du Canada, CGC-Québec Ressources naturelles du Canada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]