Re: Does apply-imports work?
map:transform src=psi.xsl type=xalan/ Does this solve your problem? Yes it does. I missed the move of transformers. Thanks for pointing it out. It is working with xalan and not with xsltc. Do you know if apply-templates is yet-to-be-implemented? ...or why it isn't working? Just asking - I'll look into it. Thanks, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does apply-imports work?
Hi Joerg, Thanks for your reply. I'm using cocoon 2.1-dev and xalan 2.3.1. I don't know what you mean by "Is XSLTC already used by default?". The problem is this: I have a stylesheet with the following matcher: xsl:template match="psi:pageContent" name="psi_pageContent" mode="psi_pageContent"> xsl:apply-templates select="psi:pageHead" mode="psi_pageHead"/> xsl:apply-templates select="psi:pageBody" mode="psi_pageBody"/> xsl:apply-templates select="psi:pageFoot" mode="psi_pageFoot"/> /xsl:template> and another stylesheet that imports the above stylesheet with an overriding matcher: xsl:template match="psi:pageContent" name="psi_pageContent" mode="psi_pageContent"> body> xsl:apply-imports/> /body> /xsl:template> However, the apply-imports on the second stylesheet does not appear to work - ie. the matcher in the imported sheet is not called. Have I done something obviously silly? Thanks again, Phil On Tuesday, November 19, 2002, at 04:58 AM, Joerg Heinicke wrote: Phil Blake wrote: Hi all, I'm having a problem with apply-imports> applying any imports. Can someone in-the-know assure me that apply-imports> is functional? Also, if there is any trick to using it as I haven't seen it work yet and I think I've got a pretty simple example. Thanks in advance, Phil It should work in general, what's your problem? What Cocoon and Xalan version are you using? Is XSLTC already used by default? Joerg - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED]>
Does apply-imports work?
Hi all, I'm having a problem with apply-imports applying any imports. Can someone in-the-know assure me that apply-imports is functional? Also, if there is any trick to using it as I haven't seen it work yet and I think I've got a pretty simple example. Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sitemap substitution in actions
thanks. my sanity is waning this afternoon. i can use every cent I can get. :) On Monday, September 9, 2002, at 04:44 PM, Barbara Post wrote: Since you have a map:act wouldn't you rather use {../1} instead of {1} in the body of mp:act ? I am not sure but these are my 2 cents. Have a nice day, Babs -- website: www.babsfrance.fr.st ICQ #: 135868405 - Original Message - From: Phil Blake [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 09, 2002 7:17 AM Subject: sitemap substitution in actions I have a directory with common resources like images and pdfs thyat are used by all sections of the site. I also have other directories with resources that are specific to a certain part of the site. So... If the url points to a specific resource, and it doesn't exist then it returns the common resource. (assuming it exists) I thought this might do the trick: map:match pattern=*/**images/**.jpg map:act type=resource-exists map:parameter name=url value={1}/resources/images/{3}.jpg/ map:read src={1}/resources/images/{3}.jpg mime-type=image/jpeg/ /map:act map:redirect-to uri=common/images/{3}.jpg/ /map:match but got the error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.FileNotFoundException: /resources/images/.jpg (No such file or directory) The Sitemap substitutions don't appear to be available in the action. What have I done wrong? Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Phil Blake Development Director Prescience Open Source Spark Brand Communications Level 2 44 Mountain Street ULTIMO NSW 2007 Telephone +61 2 9281 3399 Fax +61 2 9281 1099 [EMAIL PROTECTED] http://www.sparkbc.com.au __ Notice: This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify Spark Brand Communications Pty. Ltd. on +61 2 9281 3399 immediately. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Spark Brand Communications Pty. Ltd. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sitemap substitution in actions
I have a directory with common resources like images and pdfs thyat are used by all sections of the site. I also have other directories with resources that are specific to a certain part of the site. So... If the url points to a specific resource, and it doesn't exist then it returns the common resource. (assuming it exists) I thought this might do the trick: map:match pattern=*/**images/**.jpg map:act type=resource-exists map:parameter name=url value={1}/resources/images/{3}.jpg/ map:read src={1}/resources/images/{3}.jpg mime-type=image/jpeg/ /map:act map:redirect-to uri=common/images/{3}.jpg/ /map:match but got the error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.FileNotFoundException: /resources/images/.jpg (No such file or directory) The Sitemap substitutions don't appear to be available in the action. What have I done wrong? Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Converting a TREE FRAGMENT to a node-set()
Hiya, How can I work on a RTREEFRAG as if it was a node-set, or how can I convert a RTREEFRAG to a node-set? Is there a node-set() available out of the box with Cocoon? What is the recommended way of achieving this? Thanks for your time, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Link Livesites:
Hi, I just wanted to add a site I have been working on to the live sites list. ValMorgan is an international cinema advertising company with their head office in Australia. I have developed their site in cocoon2 and they are currently updating all their international content to be served via cocoon. The title is: Val Morgan Cinema Advertising The URL is: http://www.valmorgan.com.au/ Have fun, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Attachments in sendmail
Hi all, I have a form on a web page that has an email address and a file upload. The idea is to enter the email address, select the file to upload, and cocoon uses it's sendmail logicsheet to email the file to the address. It all works well up until the file upload - attachment bit. How do you specify attachments with the sendmail logicsheet. There doesn't appear to be any direct support but are we able to fudge with the appropriate headers? Does anyone have an example of the sendmail xsl that you would need to write to deal with attachments? Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pls confirm: cocoon won't work on OSX
There shouldn't be a problem with the batik libs - they seem to work fine on OSX. On Thursday, May 30, 2002, at 01:07 AM, Joseph Jupin wrote: currently have Tomcat 4.0.1 and Cocoon 2.0 running on Mac OS X 10.1.4... just make sure you remove all the batik stuff and you should be golden... peace. JOe... On Tue, 28 May 2002 17:50:39 -0400 Paul Kelly [EMAIL PROTECTED] wrote: I've tried the following: Tomcat 4.0.1 w/ cocoon 2.0 Tomcat 4.0.1 w/ cocoon 2.0.2 Tomcat 4.0.4b1 w/ cocoon 2.0 Jetty 4 w/ cocoon 2.0 Tomcat 4.0.4b1 w/ cocoon 1.8 Each time the servlet container works fine, cocoon does not. The only luck I've had is with Murray Todd's old pkg file which is no longer available and is one year out of date. I am about ready to give up. Has anyone out there actually installed cocoon 2 on OS X? That's all I need to know. --paul - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] peace. JOe... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pls confirm: cocoon won't work on OSX
There was a problem with tomcat 4.0.2 and cocoon 2.x but all others should work out-of-the-box. There's no need to remove batik stuff - it works fine under OSX. Hopefully this mail will take care of this for other OS X newbie users. Typing OS X into the archive serach engine doesn't do much. I've found that OSX's Java is excellent. It is very rare to see anything OSX specific for pure java software so don't be too disappointed that you didn't find much on the list. There's not much there because there not much you have to take into account with java on OSX. Have fun, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Testimonials
Hi all, Does anyone know if there are Cocoon testimonials from happy users published anywhere? I am speaking on cocoon amongst other things at a series of conferences in June and would like to give people a cocoon handout page with the URL, some basic info, and some testimonials. Are there any users from recognisable organisations that are prepared to write a testimonial? Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Serving PDF's
Hi all, I want to serve PDF's - nothing special, no generation or transformation - simply returning an existing pdf from a request. So... I added the following to my sitemap: map:match pattern=**pdf/**.pdf map:read src=resources/pdf/{2}.pdf mime-type=application/pdf/ /map:match I have a pile of PDF's in the /resources/pdf directory, however, none of them are successfully served. Only a small amount of the original PDF is transfered - ie. it's a 200K doc but less than 50K ends up at the browser and as far as acrobat is concerned - it's damaged. What silly thing have I missed? Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Selecting nodes based on variables
Hi everyone, 1. I have a simple xml doc: root thing titleJelly/title wobblynesshigh/wobblyness /thing thing titleBrick/title wobblynesslow/wobblyness /thing /root 2. Within a stylesheet I have a variable: xsl:variable name=selector value='title'/ 3. I want to select the XML tag with the name in the variable $selector For example the XPath: /root/thing/$selector needs to translate to: /root/thing/title Then, if I change the value of $selector: xsl:variable name=selector value='wobblyness'/ then the path /root/thing/$selector would translate to /root/thing/wobblyness The Problem: I can't figure how to do this kind of de-referencing. Does anyone have an example or have I missed a very obvious point? Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Conditionally adding anchors
Hi again, I solved the previous problem - the code to make it work is in this post. A quickie, I hope :) The following XSL generates the error: org.apache.cocoon.ProcessingException: Error in creating Transform Handler: org.xml.sax.SAXParseException: The element type a must be terminated by the matching end-tag /a. I am wanting to conditionally make an anchor around some other elements (an icon and text) and tried the following. It didn't work for obvious reasons. What is the best practice to achieving this. !-- Is this an anchor? open it -- xsl:if test=url a href={url} /xsl:if !-- Add any icon -- xsl:if test=icon img border=0 src=images/icons/{icon}/ /xsl:if span class=listlabel xsl:variable name=selectorValue select=selector/ xsl:variable name=displayValue select=$currentElement/*[name()=$selectorValue]/ xsl:value-of select=$displayValue/ /span !-- Is this an anchor? close it -- xsl:if test=url /a /xsl:if Thanks for your time, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
locating logicsheets with the resource scheme
Hi All, I am wanting to refer to a logicsheet using the resource:// scheme. I have placed my logic sheet in WEB-INF/classes/logicSheet/logicTest.xsl then I refer to it with: resource://logicSheet/logicText.xsl but I get resource not found. Am I on the right path, or have I missed something fundamental here? Thanks for your time, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FAQ - How do I hide cocoon in the URL
I wish to hide part of the URL from the user. I noticed on the cocoon web site there is a FAQ with the title: How do i hide cocoon in the URL's once i integrate using mod_jk as shown above? FYI: The example in the cocoon FAQ doesn't so much hide anything in the URL, rather presents the full URL immediately to the user - the complete opposite of the desired result. I'll have a play with rewrite and aliases to see if there is a way to hide part of the URL (never used them before :) ) If someone has an answer to this, perhaps updating the FAQ would be good. Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FAQ - How do I hide cocoon in the URL
Hi, Thanks for your reply. I'll try to clarify what I mean. When the user enters http://www.place.com/; into the browser the page that is returned is http://www.place.com:8080/cocoon/mount/MyWebSite/;. This is very easy to achieve with a redirect but then the user will have the URL http://www.place.com:8080/cocoon/mount/MyWebSite/; in their browser - this is NOT what I want. Also they will be using the tomcat http rather than apache - this is also not what I want. So... :) Step 1 - get mopd_webapp running... No Problems. Now I can go to http://www.place.com/cocoon; and I get the same result as I would have with http://www.place.com:8080/cocoon;. So far so good. But I don't just want to get to cocoon, I want to get to a sub-site mounted in the 'mount' directory. Now I want to be able to enter the URL http://www.place.com/index.html; and get back the same result as http://www.place.com:8080/cocoon/mount/MyWebSite/index.html;. ie. within apache I need to rewrite ALL url's for a virtual host so that '/cocoon/mount/MyWebSite' is inserted at the beginning of all requests - BUT I don't want to user to see this so I can't use a redirect. This is where I get stuck. :) Thanks again, Phil On Wednesday, December 12, 2001, at 03:07 PM, David Rosenstrauch wrote: What they're referring to in the FAQ is that, by default, all URL's contain cocoon in them, since usually cocoon resides in a cocoon sub-dir under, say, Tomcat. They provide directions how to take cocoon out of the URL. I'm not sure what you're asking though. What part of the URL are you trying to hide? You probably already know that the URL request parameters (e.g., index.html?parm1=aparm2=b) can be hidden by using method=POST, so I assume you're not asking about this. If you can provide more details about what you're trying to hide, perhaps I can help. DR At 02:59 PM 12/12/01 +1100, you wrote: I wish to hide part of the URL from the user. I noticed on the cocoon web site there is a FAQ with the title: How do i hide cocoon in the URL's once i integrate using mod_jk as shown above? FYI: The example in the cocoon FAQ doesn't so much hide anything in the URL, rather presents the full URL immediately to the user - the complete opposite of the desired result. I'll have a play with rewrite and aliases to see if there is a way to hide part of the URL (never used them before :) ) If someone has an answer to this, perhaps updating the FAQ would be good. Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[URGENT-HELP NEEDED] Stupidity stifles deployment attempt
Hi all, Another attempt to deploy has failed and I have to chalk it up to stupidity - although I've seen (perhaps 20) different methods and configurations to get cocoon+tomcat+apache working together, I have proved too stupid to make ANY of them work. I REALLY need someone who has successfully deployed a cocoon webapp to give me a hand getting the last step (mod_jk) configuration working. I've tried (perhaps 10) of the different configurations I've found and although I don't get any errors from apache, I have not once got a single connection from apache to tomcat. The end result needs to be: http://www.place.com/ returns what I now get with: http://www.place.com:8080/cocoon/mount/testsite PLEASE, PLEASE, PLEASE - If there is someone who has SUCCESSFULLY achieved this, would you please spare me some time so I can solve whatever stupid misunderstanding I have about mod_jk. Again, I've read many, many pages that make an attempt to tell me how to do this - please don't send me any more - I need real help. If you've heard that someone did this by reading something on a url that you've never been to, please do not respond. I've had many responses from people (thanks for them all the same) who have never deployed anything, but had heaps of good advice that doesn't work. I can't afford any more of this kind of advice. :) I have 1 day to get this site on-line and it was yesterday - I really need some help please. Thanks in advance, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Help needed Passing Parameters
I am missing something when it comes to getting and passing request arguments. I've looked at the cocoon examples, and although my test example appears to match the cocoon one in every way there is obviously something fundamental missing. I think I'm pretty close. :) If anyone could help me get past this misunderstanding it would be much appreciated. My example scenario allows the user to enter a URL like the following: http://hostname/example/colour.html?person=Phil%20Blake The result would be a HTML page with the person's favorite colour. In the sitemap I added a generic matcher that matches anything .html and returns the corresponding xsp. I figured (as opposed to read anywhere in documentation) that I needed to include the use-request-parameters and use-browser-capabilities-db parameters - I don't know why I want them, just that they appeared in the cocoon sitemap. !-- Match *.html and map to *.xsp -- map:match pattern=**.html map:generate type=serverpages src={1}.xsp/ map:transform src=Example.xsl map:parameter name=use-request-parameters value=true/ map:parameter name=use-browser-capabilities-db value=true/ /map:transform map:serialize/ /map:match The requested xsp page looks like this. (colour.xsp) xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:xsp-response=http://apache.org/xsp/response/2.0; xsp:logic String person = null; /xsp:logic html titleThe favorite colour page - Yay/title xsp:logic person = xsp-request:get-parameter name=person/; /xsp:logic xsp:exprperson/xsp:expr has a favorite colour! It is person-colour/ /html /xsp:page I then have a half/broken stylesheet that is supposed to select the person named in the URL person path arg. Then return their favorite colour. However, as you'll notice, I can't see how to get from the first line, to the second one. I assume the variable selectedPerson contains a person node. (I don't know 'cause I can't make it work). However, I have no idea how to use that variable to retrieve the colour. XSL Stylesheet: xsl:template match=person-colour !-- Select the person, somehow -- xsl:variable name=selectedPerson select=document('people.xml',.)/people/person[name='$person']/ !-- return their favorite colour, somehow -- xsl:value-of select=$selectedPerson/favoriteColour /xsl:template XML External Content (people.xml) people person namePhil/name favoriteColourblue/favoriteColour /person person nameArthur/name favoriteColouryellow/favoriteColour /person /people Thanks for your help. Have fun, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fastest Platform (softwarewise)?
Hi, We run apache/tomcat/cocoon on 3 server platforms, Linux, AIX and MacOS X. Linux on a dual PIII 550, OSX on a PPC-G4 450 and AIX on a 4x250MHz PPC-G3. Bang for buck, a G4 running OSX wins hands down. However, believe it or not, the dual PIII comes in second (AIX don't come close... too expensive for real consideration and Windows is not a server operating system in practice, only in marketing). The Dual PIII was about 10% more than the G4 (after adding SCSI) and about 70-80% the performance. Although theory has it that a G4 500MHz has about the same performance as a PIII 1.5GHz (ie triple the performance), I've found that it's really more like double the performance, not triple. Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.InternalError: jzentry == 0
Hi everyone, What causes cocoon to stop starting up and generate the following error? This happened to me before and seemed to 'fix itself' when I threw away the tomcat work directory. However, this time it isn't helping. :) Has anyone seen this and know what's going on? Thanks. Have fun, Phil 2001-10-22 14:16:16 StandardHost[localhost]: Installing web application at context path /cocoon from URL file:/Library/WebServer/Tomcat/jakarta-tomcat-4.0/webapps/cocoon 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploying class repositories to work directory /Library/WebServer/Tomcat/jakarta- tomcat-4.0/work/localhost/cocoon 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/Tidy.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/Tidy.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/avalon-excalibur-4.0.jar to /Library/WebServer/Tomcat/jakarta-tomcat-4.0/webapps/cocoon/WEB- INF/lib/avalon-excalibur-4.0.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/avalon-framework-4.0.jar to /Library/WebServer/Tomcat/jakarta-tomcat-4.0/webapps/cocoon/WEB- INF/lib/avalon-framework-4.0.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/batik-libs.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/batik-libs.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/bsf.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/bsf.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/cocoon-2.0rc1.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/cocoon-2.0rc1.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/dom2.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/dom2.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/fop-0_20_1-dev.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/fop-0_20_1-dev.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/hsqldb-1.61.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/hsqldb-1.61.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/jakarta-regexp-1.2.jar to /Library/WebServer/Tomcat/jakarta-tomcat-4.0/webapps/cocoon/WEB- INF/lib/jakarta-regexp-1.2.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/jimi-1.0.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/jimi-1.0.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/jstyle.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/jstyle.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/junit.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/junit.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/logkit-1.0b5.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/logkit-1.0b5.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/maybeupload.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/maybeupload.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/resolver.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/resolver.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/rhino.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/rhino.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/velocity-1.1.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/velocity-1.1.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/xalan-2.2.0-dev.jar to /Library/WebServer/Tomcat/jakarta-tomcat-4.0/webapps/cocoon/WEB- INF/lib/xalan-2.2.0-dev.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/xerces_1_4_3.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/xerces_1_4_3.jar 2001-10-22 14:16:16 WebappLoader[/cocoon]: Deploy JAR /WEB- INF/lib/xt.jar to /Library/WebServer/Tomcat/jakarta- tomcat-4.0/webapps/cocoon/WEB-INF/lib/xt.jar 2001-10-22 14:16:16 StandardManager[/cocoon]: Seeding random number generator class java.security.SecureRandom 2001-10-22 14:16:16 StandardManager[/cocoon]: Seeding of random number generator has been completed 2001-10-22 14:16:17 HostConfig[localhost] Error deploying web application directory cocoon java.lang.InternalError: jzentry == 0 at java.util.zip.ZipFile$2.nextElement(ZipFile.java:297) at java.util.jar.JarFile$1.nextElement(JarFile.java:198) at org.apache.catalina.startup.ContextConfig.tldConfigJar(Unknown Source) at org.apache.catalina.startup.ContextConfig.tldConfig(Unknown Source) at
SVG, JPEG, PNG and Xvfb
Hi all, I'm making an attempt to get SVG's working. My understanding is that svg2jpeg and svg2png currently has a dependency on Xvfb. I'm running MacOS X so I installed Xfree86, including Xvfb and used the script submitted by someone on the list: if [ "$1" = "stop" ] ; then # kill off any framebuffer running, kill kill kill :-) kill -TERM `/sbin/pidof Xvfb` elif [ "$1"="start" -o "$1"="run" ] ; then # start up a virtual framebuffer for cocoon2's rendering Xvfb :1 -screen 0 320x240x24 fi I called the script xfb and ran it: phil% xfb start All looked good. There was a process Xvfb running. WooHoo. I then trashed the Tomcat work directory for cocoon and started up Tomcat, pointed it at cocoon and waited for the startup. All looked good. I selected the sample "scalable vector graphics - An example of a SVG file rendered to a PNG image. " The following image was produced: (it's been scaled down so as not to annoy, and make the email small enough to make it onto the list) attachment: test.jpg attachment: test.jpg To save you looking at it, the image is rendered the same way it was before running Xvfb - strangely. I'll move everything to aix and try again. Until the dependency problem is resolved, it may be a good idea to put a warning in the documentation that the svg2jpeg and svg2png functionality is limited to specific configurations. I mention this because we'd planned to provide a cocoon-based site to a company that hosts using NT (yes we know that's a stupid idea anyhow) however I'm assuming that there are going to be Xvfb issues under windows - If someone can enlighten me as to cocoon svg/jpeg/png served under windows it would be much appreciated. We only have one client that uses windows so this is not a major issue. Thanks in advance. Have fun, Phil
getNextStepPos huh?!?
org.apache.cocoon.ProcessingException: Error in creating Transform Handler: java.lang.RuntimeException: Programmer's assertion in getNextStepPos: unknown stepType: -1 Does anyone know what this means? ...or rather when you get an error like this, what kind of things could have you done wrong? :) Thanks. Have fun, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JPEG and PNG examples
Hi all, Can anyone provide an example of a working svg2jpeg and/or svg2png transformation? I have what looks right, cocoon isn't giving any errors. but nothing useful is arriving at the client. No examples included with cocoon but I'm hoping that someone would have tried this by now. Thanks in advance. Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
C2rc1 and MacOS X - build problem
Building under MacOS X 10.0.4 gives the following error: prepare-src-22-maybeupload: Could not find file /Users/phil/Documents//Cocoon-2.0/src/org/apache/cocoon/environment/http/RequestWrapperMaybeUpload22. java to copy. BUILD FAILED /Users/phil/Documents//Cocoon-2.0/build.xml:341: Could not find file /Users/phil/Documents//Cocoon-2.0/src/org/apache/cocoon/environment/http/RequestWrapperMaybeUpload22. java to copy. RequestWrapperMaybeUpload22.java has definitely been created however it has been named: RequestWrapperMaybeUpload22.jav -- note .jav not .java The cut-off is at 31 characters so I'm guessing this is something left over from the good old days when MacOS was limited to 31 chars and WinDos to 8.3. I'm building under OSX so this limit should not apply. Has anyone had this experience? Thanks, Phil - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New to C2 Question
Hi, I've just installed C2 on Tomcat 4.0b7 and so far so good. I then duplicated the /sub directory (to make a new sub site) and renamed it 'test'. I copied and pasted the /sub matcher in the main sitemap.xconf and changed the "sub" to "test" for the new sub site. ie. I had a duplicate of the sub site example with a new name and a new matcher. I restarted Tomcat and pointed at: localhost/cocoon/test/welcome (ie the new sub site) All I got back was: HTTP/1.1 200 OK Content-Length: 0 Date: Mon, 10 Sep 2001 05:24:55 GMT Server: Apache Tomcat/4.0-b7 (HTTP/1.1 Connector) So i assume there has been an error along the way. My question is: how can I find the error? I've looked through all log files in tomcat/logs and there is no mention of any errors. The log does contain the failed request with a 404 (Not Found). Basically there is something wrong and I can't find where cocoon has alerted me to the problem. HELP! :) Thanks, Phil.