Image caching problem using FOP
Hi, I have pages that can be viewed as xhtml and pdf which is generated by FOP. When I change the images, using the same image filenames, the new images appear in the xhtml version, however the old images are shown in the pdf version. If I use new images with different file names the new images appear in the PDF. However as I am generating the image file names programmatically I have to keep the old names. I am using map:pipeline type=noncaching If appears that FOP is caching the images somewhere, however I don't know how to find and delete the FOP cache Help please Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C22 - Maven artifact missing
I have tried to build C2.2 several times but the process always fails me. I follow this steps (under Ubuntu 8.04, java 1.6 and maven 2.0.9): --Get the files... % svn checkout https://svn.apache.org/repos/asf/cocoon/trunk cocoon-2.2.0 % cd cocoo-2.2.0 --I clean the repository % rm -R ~/.m2 --And I follow the README.txt steps: % ./build.sh install I get a build error failed to resolve artifact on cocoon-block-deployment % cd tools % mvn clean install BUILD SUCCESFULL, and I try one more time to build cocoon: % cd .. % ./build.sh installl And I get the same error Could anyone say me what are i doing wrong? Thanks a lot! I'm desperate!! -- View this message in context: http://www.nabble.com/C22---Maven-artifact-missing-tp17780552p18868468.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image caching problem using FOP
I am using fo:external-graphic src= Hi, I have pages that can be viewed as xhtml and pdf which is generated by FOP. When I change the images, using the same image filenames, the new images appear in the xhtml version, however the old images are shown in the pdf version. If I use new images with different file names the new images appear in the PDF. However as I am generating the image file names programmatically I have to keep the old names. I am using map:pipeline type=noncaching If appears that FOP is caching the images somewhere, however I don't know how to find and delete the FOP cache Help please Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.5.12/1597 - Release Date: 07/08/2008 05:54
hibernate example!!!
Dear Mailing-list! I've found the resource with the sample of hibernate application. (http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial) But at the stage of installing the filter, which is said to be situated above the Servlet Configuration part, I've got a mistake of cocoon (the content of web-app element must match (::..)): !-- Filter Configuration == -- filter filter-nameOpenSessionInViewFilter/filter-name filter-classorg.apache.cocoon.hibernate.OpenSessionInViewFilter/filter-cl ass /filter filter-mapping filter-nameOpenSessionInViewFilter/filter-name url-pattern/languages/*/url-pattern /filter-mapping !-- Servlet Configuration == -- ::.
Re: C22 - Maven artifact missing
yosauron pisze: I have tried to build C2.2 several times but the process always fails me. If you have done it within last two days the reason might be that we were releasing some stuff and in some intermediate states the build can be broken. I follow this steps (under Ubuntu 8.04, java 1.6 and maven 2.0.9): --Get the files... % svn checkout https://svn.apache.org/repos/asf/cocoon/trunk cocoon-2.2.0 % cd cocoo-2.2.0 --I clean the repository % rm -R ~/.m2 --And I follow the README.txt steps: % ./build.sh install I get a build error failed to resolve artifact on cocoon-block-deployment Could you give us exact error? % cd tools % mvn clean install BUILD SUCCESFULL, and I try one more time to build cocoon: % cd .. % ./build.sh installl And I get the same error Could anyone say me what are i doing wrong? Thanks a lot! I'm desperate!! Just try to update your copy (svn up) and try build.sh install again. If it still does not work provide us exact error message. -- Grzegorz Kossakowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redirecting with 303
Hi all! I want to do a 303 redirect, to satisfy the httpRange-14 TAG finding, with its popular form http://www.w3.org/TR/cooluris/#r303gendocument I was hoping something like this might work: map:match pattern=topic/* map:redirect-to uri={request:contextPath}/sparql?query=DESCRIBE lt; {request:requestUri}gt;/ map:serialize status-code=303/ /map:match where the URI needs to be the whole thing, including the hostname and all. I guess that the latter can be fixed some way by concatenating some parameters. And I hope the 303 would be fixed by the map:serialize status-code=303/ but it doesn't, it does a 302. Is there a simple way to achieve this? If no simple way, what would the difficult way be? Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Direct: +47 6783 1136 | Mobile: +47 986 48 234 Email: [EMAIL PROTECTED] Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C22 - Maven artifact missing
I've got the same problem with mvn install -P allblocks [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.cocoon:cocoon-block-deployment:jar:1.0.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.cocoon -DartifactId=cocoon-block-deployment -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.cocoon -DartifactId=cocoon-block-deployment -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-xml-resolver:jar:1.1.0-SNAPSHOT 2) org.apache.cocoon:cocoon-block-deployment:jar:1.0.0-SNAPSHOT -- 1 required artifact is missing. for artifact: org.apache.cocoon:cocoon-xml-resolver:jar:1.1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), gkossakowski-maven2 (http://people.apache.org/~gkossakowski/maven2/repository), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository) Jasha -Oorspronkelijk bericht- Van: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] Verzonden: do 7-8-2008 14:44 Aan: users@cocoon.apache.org Onderwerp: Re: C22 - Maven artifact missing yosauron pisze: I have tried to build C2.2 several times but the process always fails me. If you have done it within last two days the reason might be that we were releasing some stuff and in some intermediate states the build can be broken. I follow this steps (under Ubuntu 8.04, java 1.6 and maven 2.0.9): --Get the files... % svn checkout https://svn.apache.org/repos/asf/cocoon/trunk cocoon-2.2.0 % cd cocoo-2.2.0 --I clean the repository % rm -R ~/.m2 --And I follow the README.txt steps: % ./build.sh install I get a build error failed to resolve artifact on cocoon-block-deployment Could you give us exact error? % cd tools % mvn clean install BUILD SUCCESFULL, and I try one more time to build cocoon: % cd .. % ./build.sh installl And I get the same error Could anyone say me what are i doing wrong? Thanks a lot! I'm desperate!! Just try to update your copy (svn up) and try build.sh install again. If it still does not work provide us exact error message. -- Grzegorz Kossakowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using OJB with Cocoon
I'm using Cocoon 2.1.10. There I have db-ojb-1.0.4.jar (in WEB-INF/lib) So, I've found the resource http://www.guschtel.de/computer/cocoon-ojb-cforms.php?part=1. With an example of using JDO with Cocoon. But there is no sitemap example: And I can't execute program. I found the OJB-samples in Cocoon: to execute samples with JDO I've downloaded JDO from Sun Microsystems. But this sample still not working: Why?
Re: C22 - Maven artifact missing
I have tried to build C2.2 several times but the process always fails me. If you have done it within last two days the reason might be that we were releasing some stuff and in some intermediate states the build can be broken. I'm trying to build Cocoon one week ago and always I had an artifact missing error :(. Does the artifact missing error depends on release repository? In this case, Could I know which is the lastest stable release? How? (Thanks!) I follow this steps (under Ubuntu 8.04, java 1.6 and maven 2.0.9): --Get the files... % svn checkout https://svn.apache.org/repos/asf/cocoon/trunk cocoon-2.2.0 % cd cocoo-2.2.0 --I clean the repository % rm -R ~/.m2 --And I follow the README.txt steps: % ./build.sh install I get a build error failed to resolve artifact on cocoon-block-deployment Could you give us exact error? [INFO] [INFO] Building Cocoon XML Resolver [INFO]task-segment: [install] [INFO] [INFO] [enforcer:enforce-once {execution: enforce-maven}] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] snapshot org.apache.cocoon:cocoon-block-deployment:1.0.0-SNAPSHOT: checking for updates from gkossakowski-maven2 [INFO] snapshot org.apache.cocoon:cocoon-block-deployment:1.0.0-SNAPSHOT: checking for updates from apache.snapshots Downloading: http://people.apache.org/~gkossakowski/maven2/repository/org/apache/cocoon/cocoon-block-deployment/1.0.0-SNAPSHOT/cocoon-block-deployment-1.0.0-SNAPSHOT.pom Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/cocoon/cocoon-block-deployment/1.0.0-SNAPSHOT/cocoon-block-deployment-1.0.0-SNAPSHOT.pom Downloading: http://people.apache.org/~gkossakowski/maven2/repository/org/apache/cocoon/cocoon-block-deployment/1.0.0-SNAPSHOT/cocoon-block-deployment-1.0.0-SNAPSHOT.jar Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/cocoon/cocoon-block-deployment/1.0.0-SNAPSHOT/cocoon-block-deployment-1.0.0-SNAPSHOT.jar [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.cocoon:cocoon-block-deployment:jar:1.0.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.cocoon -DartifactId=cocoon-block-deployment -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.cocoon -DartifactId=cocoon-block-deployment -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-xml-resolver:jar:1.1.0-SNAPSHOT 2) org.apache.cocoon:cocoon-block-deployment:jar:1.0.0-SNAPSHOT -- 1 required artifact is missing. for artifact: org.apache.cocoon:cocoon-xml-resolver:jar:1.1.0-SNAPSHOT from the specified remote repositories: gkossakowski-maven2 (http://people.apache.org/~gkossakowski/maven2/repository), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository), central (http://repo1.maven.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 20 minutes 24 seconds [INFO] Finished at: Thu Aug 07 19:12:09 CEST 2008 [INFO] Final Memory: 142M/254M [INFO] % cd tools % mvn clean install BUILD SUCCESFULL, and I try one more time to build cocoon: % cd .. % ./build.sh installl And I get the same error Could anyone say me what are i doing wrong? Thanks a lot! I'm desperate!! Just try to update your copy (svn up) and try build.sh install again. If it still does not work provide us exact error message. I have downloaded the last revision (683619), and exec ./build install. The error is pasted on top. Thank you for your attention! -- Grzegorz Kossakowski -- View this message in context: http://www.nabble.com/C22---Maven-artifact-missing-tp17780552p18873697.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDO + CForms
I'm trying to execute the cocoon's ojbjdo sample. But it doesn't work! (samples/block/ojb/forms) I get an exception: javax.jdo.JDOFatalUserException: No metadata has been registered for class org.apache.cocoon.ojb.samples.bean.Employee. What's the problem???
Passing request parameter from the sitemap
Hi, I am trying to pass various request parameter from the sitemap to a eXist xquery using: map:match pattern=register-with-eXist map:generate src=register.xq type=xquery !--map:parameter name=user value={flow-attribute:user}/-- map:parameter name=user value=test/ /map:generate I know the xquery is correct as I have tested it with the the URL register.xql?pass=test Help please, how do I pass parameters from the sitemap as request parameters? Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Image caching problem using FOP
Thanks Andy, Now working Thanks again Peter 2008/8/7 Peter Sparkes [EMAIL PROTECTED]: I have pages that can be viewed as xhtml and pdf which is generated by FOP. When I change the images, using the same image filenames, the new images appear in the xhtml version, however the old images are shown in the pdf version. If I use new images with different file names the new images appear in the PDF. However as I am generating the image file names programmatically I have to keep the old names. It's a FOP feature. From http://xmlgraphics.apache.org/fop/0.94/graphics.html FOP caches images between runs. There is one cache per FopFactory instance. The URI is used as a key to identify images which means that when a particular URI appears again, the image is taken from the cache. If you have a servlet that generates a different image each time it is called with the same URL you need to use a constantly changing dummy parameter on the URL to avoid caching. Like the man said, add a dummy request parameter to the URI with some unique value e.g. a hash of the session ID and current time. Andy. No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.5.12/1597 - Release Date: 07/08/2008 05:54
Re: C22 - Maven artifact missing
Grzegorz Kossakowski wrote: yosauron pisze: I have tried to build C2.2 several times but the process always fails me. If you have done it within last two days the reason might be that we were releasing some stuff and in some intermediate states the build can be broken. I follow this steps (under Ubuntu 8.04, java 1.6 and maven 2.0.9): --Get the files... % svn checkout https://svn.apache.org/repos/asf/cocoon/trunk cocoon-2.2.0 % cd cocoo-2.2.0 --I clean the repository % rm -R ~/.m2 --And I follow the README.txt steps: % ./build.sh install I get a build error failed to resolve artifact on cocoon-block-deployment Could you give us exact error? % cd tools % mvn clean install BUILD SUCCESFULL, and I try one more time to build cocoon: % cd .. % ./build.sh installl And I get the same error Could anyone say me what are i doing wrong? Thanks a lot! I'm desperate!! Just try to update your copy (svn up) and try build.sh install again. If it still does not work provide us exact error message. I've just fixed the build, which was indeed broken because of my recent release activities. Could you please try again? -- Reinhard Pötz Managing Director, {Indoqa} GmbH http://www.indoqa.com/en/people/reinhard.poetz/ Member of the Apache Software Foundation Apache Cocoon Committer, PMC member [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: C22 - Maven artifact missing
-Oorspronkelijk bericht- Van: Reinhard Pötz [mailto:[EMAIL PROTECTED] Verzonden: do 7-8-2008 21:56 Aan: users@cocoon.apache.org Onderwerp: Re: C22 - Maven artifact missing I've just fixed the build, which was indeed broken because of my recent release activities. Could you please try again? Computer says no. Now a different artifact is missing. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.cocoon:cocoon-jms-sample:jar:1.0.0-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.cocoon -DartifactId=cocoon-jms-sample -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.cocoon -DartifactId=cocoon-jms-sample -Dversion=1.0.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: 1) org.apache.cocoon:cocoon-webapp:war:2.2.0-M2-SNAPSHOT 2) org.apache.cocoon:cocoon-jms-sample:jar:1.0.0-SNAPSHOT -- 1 required artifact is missing. for artifact: org.apache.cocoon:cocoon-webapp:war:2.2.0-M2-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), gkossakowski-maven2 (http://people.apache.org/~gkossakowski/maven2/repository), apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository) Jasha winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]