Problem starting cocoon: SAX2 driver class not found
Hello Cocoon users! On accessing my cocoon installation with http://localhost:8080/cocoon/; I still get the error message SAX2 driver class org.apache.xerces.parsers.SAXParser not found. The Cocoon version is 2.0.3 and I tried it with Tomcat 4.0.3 and 4.0.4. The file access.log of the cocoon application you can find as an attachment to this e-mail. Another installation with the same constellation (Cocoon 2.0.3 / Tomcat 4.0.3) is running on my Win2k-workstation without any problem. But the similar installation on my Win2k-server is not running. What's the problem? Can anybody help me? Regards, Dirk (See attached file: access.log) - This Mail has been checked for Viruses Attention: Encrypted mails can NOT be checked! ** Diese Mail wurde auf Viren geprueft Hinweis: Verschluesselte mails koennen NICHT auf Viren geprueft werden! - access.log Description: Binary data - 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: embedding image-stream in pdf
Hi Frank, There was a problem with images URL's in generated pdf. The matter is that relative URL's don't work. You have to put complete absolute URL's (like http://host... etc.). I've used host matcher in the following pipeline to get full path to images as a parameter in XSLT: map:match pattern=print_lubricant.pdf map:match type=host pattern=* map:generate src=some_source.xml/ map:transform src=stylesheets/lubricant2fo.xsl map:parameter name=filePath value=http://{../1}{context}/mount/ome-db/ome-dbl/img/ /map:transform /map:match map:serialize type=fo2pdf/ /map:match Roman Przybilla, Frank wrote: Dear All, I have the following scenario and I want to know if this can be solved with fop: There is a servlet which can produce images (png, jpeg, etc.) as ouput streams which are not materialized to files. How can this servlet be used to embed these images in a pdf file with fop? I have already tried it with fo:external-graphic scrc=url-to-servlet /. So I want to use it the same way as in a HTML-Scenario where it works fine with img src=url-to-servlet/. But with fop it doesn't work. Can anyone tell me, if this is generally be possible with fop or which alternatives exists? Thanks in advance Frank. --- Frank Przybilla @x-modules (Dipl.-Inform.) maxess systemhaus gmbh Europaallee 3-5 Phone: +49 (0) 631.303-2500 67657 KaiserslauternFax:+49 (0) 631.303-2501 E-Mail: mailto:[EMAIL PROTECTED] Germany www:http://www.maxess.de -- - 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]
Re: embedding image-stream in pdf
Sorry, the sitemap snippet is wrong (forgot request action to get {context}) . The right one is the following: map:match pattern=print_lubricant.pdf map:match type=host pattern=* map:act type=request map:generate src=some_source.xml/ map:transform src=stylesheets/lubricant2fo.xsl map:parameter name=filePath value=http://{../1}{context}/mount/ome-db/ome-dbl/img/ /map:transform /map:act /map:match map:serialize type=fo2pdf/ /map:match Roman KOZLOV Roman wrote: Hi Frank, There was a problem with images URL's in generated pdf. The matter is that relative URL's don't work. You have to put complete absolute URL's (like http://host... etc.). I've used host matcher in the following pipeline to get full path to images as a parameter in XSLT: map:match pattern=print_lubricant.pdf map:match type=host pattern=* map:generate src=some_source.xml/ map:transform src=stylesheets/lubricant2fo.xsl map:parameter name=filePath value=http://{../1}{context}/mount/ome-db/ome-dbl/img/ /map:transform /map:match map:serialize type=fo2pdf/ /map:match Roman Przybilla, Frank wrote: Dear All, I have the following scenario and I want to know if this can be solved with fop: There is a servlet which can produce images (png, jpeg, etc.) as ouput streams which are not materialized to files. How can this servlet be used to embed these images in a pdf file with fop? I have already tried it with fo:external-graphic scrc=url-to-servlet /. So I want to use it the same way as in a HTML-Scenario where it works fine with img src=url-to-servlet/. But with fop it doesn't work. Can anyone tell me, if this is generally be possible with fop or which alternatives exists? Thanks in advance Frank. --- Frank Przybilla @x-modules (Dipl.-Inform.) maxess systemhaus gmbh Europaallee 3-5 Phone: +49 (0) 631.303-2500 67657 KaiserslauternFax:+49 (0) 631.303-2501 E-Mail: mailto:[EMAIL PROTECTED] Germany www:http://www.maxess.de -- - 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] Przybilla, Frank wrote: Dear All, I have the following scenario and I want to know if this can be solved with fop: There is a servlet which can produce images (png, jpeg, etc.) as ouput streams which are not materialized to files. How can this servlet be used to embed these images in a pdf file with fop? I have already tried it with fo:external-graphic scrc=url-to-servlet /. So I want to use it the same way as in a HTML-Scenario where it works fine with img src=url-to-servlet/. But with fop it doesn't work. Can anyone tell me, if this is generally be possible with fop or which alternatives exists? Thanks in advance Frank. --- Frank Przybilla @x-modules (Dipl.-Inform.) maxess systemhaus gmbh Europaallee 3-5 Phone: +49 (0) 631.303-2500 67657 KaiserslauternFax:+49 (0) 631.303-2501 E-Mail: mailto:[EMAIL PROTECTED] Germany www:http://www.maxess.de -- - 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]
Re: Common practice: how to keep links to html-trees consistent
Easiest solusion is to use headBASE href=../head in your generated pages Ivan. P.S. http://www.w3.org/TR/REC-html32.html#base On Mon, 2002-08-19 at 23:42, Koen Pellegrims wrote: Guys, This is something that most of you *must* have come across at one point or another, and I am just looking for the best solution (I know it is not really a Cocoon-question, but Cocoon might provide some nice and elegant solution for this...) Menu on my site that contains a link to the index-page (index.html) and links to (among others) a product-page. In the page-hierarchy, the product-pages are contained within a 'products' directory. index.html products/productA.html products/productB.html The problem arises when I display this menu on a product page, because the browser (rightly so) interprets 'index.html' as being relative to the 'products'-directory. So, whereas the link to 'index.html' is correct from the index-page, it refers to 'products/index.html' on any product page. (and even worse: a link to productA suddenly becomes a link to products/products/productsA.html) My question is simple: did any of you encounter this problem? And -of course- how did you solve it? Koen - 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: I hate typo-s
Title: Message Whatch this space ! -Original Message-From: Greg Jones [mailto:[EMAIL PROTECTED]] Sent: 19 August 2002 20:44To: [EMAIL PROTECTED]Subject: I hate typo-s It seems that most of my frustration with any programming environment is my own typing mistakes. This is why I'm willing to purchase an IDE that will check for such things and alert me of such things. Does anyone know of an IDE that will check XSP values, utilizing the LogicSheets. I'm currently using JEdit which does a great job at ensuring my tags are well formatted but inside the tags, it can't check to see if the expression is entered correctly. Thanks. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] Further information on PM can be found at http://www.pmg.ie
RE: Common practice: how to keep links to html-trees consistent
Make all your links relative to the root directory Eg /index.html /products/productA.html -Original Message- From: Koen Pellegrims [mailto:[EMAIL PROTECTED]] Sent: 19 August 2002 21:43 To: Cocoon-Users@Xml. Apache. Org Subject: Common practice: how to keep links to html-trees consistent Guys, This is something that most of you *must* have come across at one point or another, and I am just looking for the best solution (I know it is not really a Cocoon-question, but Cocoon might provide some nice and elegant solution for this...) Menu on my site that contains a link to the index-page (index.html) and links to (among others) a product-page. In the page-hierarchy, the product-pages are contained within a 'products' directory. index.html products/productA.html products/productB.html The problem arises when I display this menu on a product page, because the browser (rightly so) interprets 'index.html' as being relative to the 'products'-directory. So, whereas the link to 'index.html' is correct from the index-page, it refers to 'products/index.html' on any product page. (and even worse: a link to productA suddenly becomes a link to products/products/productsA.html) My question is simple: did any of you encounter this problem? And -of course- how did you solve it? Koen - 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] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] Further information on PM can be found at http://www.pmg.ie - 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: Common practice: how to keep links to html-trees consistent
From: Whalley, Anthony [mailto:[EMAIL PROTECTED]] Make all your links relative to the root directory Eg /index.html /products/productA.html In this case browser interprets your links relative to the host and not the application context. You should perform a transformation to generate links like: context-path/index.html, etc. Konstantin -Original Message- From: Koen Pellegrims [mailto:[EMAIL PROTECTED]] Sent: 19 August 2002 21:43 To: Cocoon-Users@Xml. Apache. Org Subject: Common practice: how to keep links to html-trees consistent Guys, This is something that most of you *must* have come across at one point or another, and I am just looking for the best solution (I know it is not really a Cocoon-question, but Cocoon might provide some nice and elegant solution for this...) Menu on my site that contains a link to the index-page (index.html) and links to (among others) a product-page. In the page-hierarchy, the product-pages are contained within a 'products' directory. index.html products/productA.html products/productB.html The problem arises when I display this menu on a product page, because the browser (rightly so) interprets 'index.html' as being relative to the 'products'-directory. So, whereas the link to 'index.html' is correct from the index-page, it refers to 'products/index.html' on any product page. (and even worse: a link to productA suddenly becomes a link to products/products/productsA.html) My question is simple: did any of you encounter this problem? And -of course- how did you solve it? Koen - 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] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify [EMAIL PROTECTED] Further information on PM can be found at http://www.pmg.ie - 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]
sunrise context question
Hello, back to work :-) 1. what is the persistence of a sunshine context I define ? i.e. I have one pipeline and two xsl : map:transform src=xsl1.xsl map:transform type=sunShine map:transform src=other.xsl map:transform src=xsl2.xsl map:transform type=sunShine. I want xsl2 to use something stored in context by xsl1. If I use MyContext, will it work ? 2. Is sunRise context reserved or can I write into ? 3. if now I have two pipelines with a redirect-to for example, how is context persistence managed ? In fact I tried to use a java bean and xalan java extension, but how can xsl2 know which bean (created by xsl1) to use ? I need to pass info that I cannot get directly when I am in xsl2, so I need to store them as I am in xsl1... thanks a lot, Babs - 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: sunrise context question
Barbara Post wrote: Hello, back to work :-) 1. what is the persistence of a sunshine context I define ? i.e. I have one pipeline and two xsl : map:transform src=xsl1.xsl map:transform type=sunShine map:transform src=other.xsl map:transform src=xsl2.xsl map:transform type=sunShine. I want xsl2 to use something stored in context by xsl1. If I use MyContext, will it work ? Yes, but be carefull with SAX event handling, which means you must ensure that the first sunShine transformer creates the context and stores the information before you try to read this. 2. Is sunRise context reserved or can I write into ? It is reserved, by you can write into it. 3. if now I have two pipelines with a redirect-to for example, how is context persistence managed ? A custom context requires a session on the server. The context is stored in the session, so as the redirect-to preserves the session, the context is still available. In fact I tried to use a java bean and xalan java extension, but how can xsl2 know which bean (created by xsl1) to use ? I need to pass info that I cannot get directly when I am in xsl2, so I need to store them as I am in xsl1... If you don't use a redirect and only want to pass information temporarily in the processing of one pipeline, you can use the temp context - this is a reserved context which acts like a custom one with the exception that no session is created to store the context and the context is only valid for one pipeline - when the pipeline is processed the context is deleted HTH Carsten Carsten Ziegeler Chief Architect Open Source Group, SN AG -- Cocoon Consulting, Training and Projects -- mailto:[EMAIL PROTECTED] http://www.s-und-n.de http://ziegeler.bei.t-online.de - 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: Link Livesites: Cue and Review Recording Services [Cocoon 2]
Added. Thanks Carsten -Original Message- From: Stuart Roebuck [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 1:42 PM To: [EMAIL PROTECTED] Subject: Link Livesites: Cue and Review Recording Services [Cocoon 2] http://www.cueandreview.org.uk/ Public Key - 1024D/88DD65AF 2001-11-23 Stuart Roebuck (Adolos) Key fingerprint = 89D9 E405 F8B1 9B22 0FA2 F2C1 9E57 5AB1 88DD 65AF - Stuart Roebuck, BSc, MBATel.: 0131 228 4853 / Fax.: 0870 054 8322 Managing Director ADOLOS http://www.adolos.com/ - 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]
AW: embedding image-stream in pdf
Hi Roman, I don't know if I got it right what you mean. What I want to in fop, maybe in conjunction with cocoon, is the following: fo:external-graphic src=http://localhost:8080/image-servlet/, where the servlet is producing an image stream. I don't want to store the image as a file and then acess it. Frank -Ursprungliche Nachricht- Von: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 20. August 2002 09:03 An: [EMAIL PROTECTED] Betreff: Re: embedding image-stream in pdf Sorry, the sitemap snippet is wrong (forgot request action to get {context}) . The right one is the following: map:match pattern=print_lubricant.pdf map:match type=host pattern=* map:act type=request map:generate src=some_source.xml/ map:transform src=stylesheets/lubricant2fo.xsl map:parameter name=filePath value=http://{../1}{context}/mount/ome-db/ome-dbl/img/ /map:transform /map:act /map:match map:serialize type=fo2pdf/ /map:match Roman KOZLOV Roman wrote: Hi Frank, There was a problem with images URL's in generated pdf. The matter is that relative URL's don't work. You have to put complete absolute URL's (like http://host... etc.). I've used host matcher in the following pipeline to get full path to images as a parameter in XSLT: map:match pattern=print_lubricant.pdf map:match type=host pattern=* map:generate src=some_source.xml/ map:transform src=stylesheets/lubricant2fo.xsl map:parameter name=filePath value=http://{../1}{context}/mount/ome-db/ome-dbl/img/ /map:transform /map:match map:serialize type=fo2pdf/ /map:match Roman Przybilla, Frank wrote: Dear All, I have the following scenario and I want to know if this can be solved with fop: There is a servlet which can produce images (png, jpeg, etc.) as ouput streams which are not materialized to files. How can this servlet be used to embed these images in a pdf file with fop? I have already tried it with fo:external-graphic scrc=url-to-servlet /. So I want to use it the same way as in a HTML-Scenario where it works fine with img src=url-to-servlet/. But with fop it doesn't work. Can anyone tell me, if this is generally be possible with fop or which alternatives exists? Thanks in advance Frank. --- Frank Przybilla @x-modules (Dipl.-Inform.) maxess systemhaus gmbh Europaallee 3-5 Phone: +49 (0) 631.303-2500 67657 KaiserslauternFax:+49 (0) 631.303-2501 E-Mail: mailto:[EMAIL PROTECTED] Germany www:http://www.maxess.de -- - 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] Przybilla, Frank wrote: Dear All, I have the following scenario and I want to know if this can be solved with fop: There is a servlet which can produce images (png, jpeg, etc.) as ouput streams which are not materialized to files. How can this servlet be used to embed these images in a pdf file with fop? I have already tried it with fo:external-graphic scrc=url-to-servlet /. So I want to use it the same way as in a HTML-Scenario where it works fine with img src=url-to-servlet/. But with fop it doesn't work. Can anyone tell me, if this is generally be possible with fop or which alternatives exists? Thanks in advance Frank. --- Frank Przybilla @x-modules (Dipl.-Inform.) maxess systemhaus gmbh Europaallee 3-5 Phone: +49 (0) 631.303-2500 67657 KaiserslauternFax:+49 (0) 631.303-2501 E-Mail: mailto:[EMAIL PROTECTED] Germany www:http://www.maxess.de -- - 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]
XSP caching and jsessionid
Hi List, after getting xsp caching to work (which is really fun), there is a problem with pages that include urlrewritten links containing that jsessionid=, is there any solution fot making these pages chacheable? Cheers Michael - 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]
weird ? (sunshine, c203)
Hello, I cannot get sunshine:setxml to work... sitemap : map:transform src=xsl/genlicform2fill.xsl map:parameter name=use-request-parameters value=true/ /map:transform !-- stores in context -- map:transform type=sunShine/ !-- another map:transform -- map:serialize type=xml/ in my xsl : /html call-template name=store/call-template and in this template I have : sunshine:setxml context=MyContext path=/root/lkfmPageTitle something /sunshine:setxml the result is : /html sunshine:setxml context=MyContext path=/root/lkfmPageTitle something /sunshine:setxml !!! I really don't get it, since right above this transformation I use a map:aggragate which looks into sunRise context to get info from... Namespace is ok. Is MyContext automatically created or should I add something ? Thanks a lot (and to Carsten for the previous answer). Babs - 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: weird ? (sunshine, c203)
I added sunshine:createcontext name=MyContext/ in my template but nope. Bert V.K., do you have more documentation / code snippets on this ? Thanks, Babs - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 11:25 AM Subject: weird ? (sunshine, c203) Hello, I cannot get sunshine:setxml to work... sitemap : map:transform src=xsl/genlicform2fill.xsl map:parameter name=use-request-parameters value=true/ /map:transform !-- stores in context -- map:transform type=sunShine/ !-- another map:transform -- map:serialize type=xml/ in my xsl : /html call-template name=store/call-template and in this template I have : sunshine:setxml context=MyContext path=/root/lkfmPageTitle something /sunshine:setxml the result is : /html sunshine:setxml context=MyContext path=/root/lkfmPageTitle something /sunshine:setxml !!! I really don't get it, since right above this transformation I use a map:aggragate which looks into sunRise context to get info from... Namespace is ok. Is MyContext automatically created or should I add something ? Thanks a lot (and to Carsten for the previous answer). Babs - 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]
RE: weird ? (sunshine, c203)
Do you declare the sunshine namespace in your xslt? Carsten -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: Re: weird ? (sunshine, c203) I added sunshine:createcontext name=MyContext/ in my template but nope. Bert V.K., do you have more documentation / code snippets on this ? Thanks, Babs - Original Message - From: Barbara Post [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 11:25 AM Subject: weird ? (sunshine, c203) Hello, I cannot get sunshine:setxml to work... sitemap : map:transform src=xsl/genlicform2fill.xsl map:parameter name=use-request-parameters value=true/ /map:transform !-- stores in context -- map:transform type=sunShine/ !-- another map:transform -- map:serialize type=xml/ in my xsl : /html call-template name=store/call-template and in this template I have : sunshine:setxml context=MyContext path=/root/lkfmPageTitle something /sunshine:setxml the result is : /html sunshine:setxml context=MyContext path=/root/lkfmPageTitle something /sunshine:setxml !!! I really don't get it, since right above this transformation I use a map:aggragate which looks into sunRise context to get info from... Namespace is ok. Is MyContext automatically created or should I add something ? Thanks a lot (and to Carsten for the previous answer). Babs - 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] - 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: weird ? (sunshine, c203)
Yes I do. double-checked. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 11:59 AM Subject: RE: weird ? (sunshine, c203) Do you declare the sunshine namespace in your xslt? Carsten - 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: AW: embedding image-stream in pdf
So, if your servlet will produce proper HTML response then it should work. Roman Przybilla, Frank wrote: Hi Roman, I don't know if I got it right what you mean. What I want to in fop, maybe in conjunction with cocoon, is the following: fo:external-graphic src=http://localhost:8080/image-servlet/, where the servlet is producing an image stream. I don't want to store the image as a file and then acess it. Frank -Ursprungliche Nachricht- Von: KOZLOV Roman [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 20. August 2002 09:03 An: [EMAIL PROTECTED] Betreff: Re: embedding image-stream in pdf Sorry, the sitemap snippet is wrong (forgot request action to get {context}) . The right one is the following: map:match pattern=print_lubricant.pdf map:match type=host pattern=* map:act type=request map:generate src=some_source.xml/ map:transform src=stylesheets/lubricant2fo.xsl map:parameter name=filePath value=http://{../1}{context}/mount/ome-db/ome-dbl/img/ /map:transform /map:act /map:match map:serialize type=fo2pdf/ /map:match Roman KOZLOV Roman wrote: Hi Frank, There was a problem with images URL's in generated pdf. The matter is that relative URL's don't work. You have to put complete absolute URL's (like http://host... etc.). I've used host matcher in the following pipeline to get full path to images as a parameter in XSLT: map:match pattern=print_lubricant.pdf map:match type=host pattern=* map:generate src=some_source.xml/ map:transform src=stylesheets/lubricant2fo.xsl map:parameter name=filePath value=http://{../1}{context}/mount/ome-db/ome-dbl/img/ /map:transform /map:match map:serialize type=fo2pdf/ /map:match Roman Przybilla, Frank wrote: Dear All, I have the following scenario and I want to know if this can be solved with fop: There is a servlet which can produce images (png, jpeg, etc.) as ouput streams which are not materialized to files. How can this servlet be used to embed these images in a pdf file with fop? I have already tried it with fo:external-graphic scrc=url-to-servlet /. So I want to use it the same way as in a HTML-Scenario where it works fine with img src=url-to-servlet/. But with fop it doesn't work. Can anyone tell me, if this is generally be possible with fop or which alternatives exists? Thanks in advance Frank. --- Frank Przybilla @x-modules (Dipl.-Inform.) maxess systemhaus gmbh Europaallee 3-5 Phone: +49 (0) 631.303-2500 67657 KaiserslauternFax:+49 (0) 631.303-2501 E-Mail: mailto:[EMAIL PROTECTED] Germany www:http://www.maxess.de -- - 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] Przybilla, Frank wrote: Dear All, I have the following scenario and I want to know if this can be solved with fop: There is a servlet which can produce images (png, jpeg, etc.) as ouput streams which are not materialized to files. How can this servlet be used to embed these images in a pdf file with fop? I have already tried it with fo:external-graphic scrc=url-to-servlet /. So I want to use it the same way as in a HTML-Scenario where it works fine with img src=url-to-servlet/. But with fop it doesn't work. Can anyone tell me, if this is generally be possible with fop or which alternatives exists? Thanks in advance Frank. --- Frank Przybilla @x-modules (Dipl.-Inform.) maxess systemhaus gmbh Europaallee 3-5 Phone: +49 (0) 631.303-2500 67657 KaiserslauternFax:+49 (0) 631.303-2501 E-Mail: mailto:[EMAIL PROTECTED] Germany www:http://www.maxess.de -- - 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
RE: weird ? (sunshine, c203)
Try putting the log transformer between your xslt transformer and the sunShine transformer - you will then get the exact output of the xslt transformation. I guess that either the namespace for sunshine is not set or wrong (some versions of Xalan forgot to output the namespace very rarely, so this can be the case). Carsten -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 11:57 AM To: [EMAIL PROTECTED] Subject: Re: weird ? (sunshine, c203) Yes I do. double-checked. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 11:59 AM Subject: RE: weird ? (sunshine, c203) Do you declare the sunshine namespace in your xslt? Carsten - 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]
Tomcat doesn't unpack cocoon.war
Am I doing something wrong? Setup: RedHat Linux 7.3 J2SDK 1.4.1_01 Tomcat 4.0.4 Cocoon 2.0.3 (vm 1.4 version) Java SDK and Tomcat (tomcat-full tomcat-webapps) were downloaded as RPMs, Cocoon as a binary tarball. When I go to http://localhost:8080/cocoon/, it tells me that the requested resource (/cocoon/) is unavailable (I know Tomcat runs OK.) I have tries other (binary) versions of Tomcat (4.0.1) and Cocoon (2.0.3 for JDK 1.3, with JDK 1.3), all to no avail. Anyone have any idea what I am doing wrong? (I have seen other posts recommending unpacking cocoon.war to CATALINA_HOME/webapps/cocoon and then deleting the .war file. How do you unpack it?) TIA, Martin Polley Technical Communicator http://www.surf-com.com/ [EMAIL PROTECTED] Tel: (+972) (4) 9095-732 Mobile: (053) 864-280 ICQ 15617901 - 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: Tomcat doesn't unpack cocoon.war
On Tue, 20 Aug 2002, Martin Polley wrote: Am I doing something wrong? Setup: RedHat Linux 7.3 J2SDK 1.4.1_01 Tomcat 4.0.4 Cocoon 2.0.3 (vm 1.4 version) Java SDK and Tomcat (tomcat-full tomcat-webapps) were downloaded as RPMs, Cocoon as a binary tarball. When I go to http://localhost:8080/cocoon/, it tells me that the requested resource (/cocoon/) is unavailable (I know Tomcat runs OK.) I have tries other (binary) versions of Tomcat (4.0.1) and Cocoon (2.0.3 for JDK 1.3, with JDK 1.3), all to no avail. Anyone have any idea what I am doing wrong? (I have seen other posts recommending unpacking cocoon.war to CATALINA_HOME/webapps/cocoon and then deleting the .war file. How do you unpack it?) $TOMCAT_HOME/conf/server.xml: Host name=localhost8080 debug=0 appBase=webapps unpackWARs=true But I think there will be another problems. Are there any hints in the logs $TOMCAT_HOME/logs ? Stephan. - 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: Weird characters ESQL + XSP - URL
Thank you. I already suspected it to be something like this, but I was looking in the wrong place all the time, or had the problem at more files in my pipeline. Anyway it's solved now, by clearing out the linebreaks and tabs for nice markup in my editor. Isn't there a way to simply say Ignore any linebreaks and tabs, so I can keep my nice markup xsp sheets? Ugly but works: frame name=content marginwidth=0 marginheight=0 scrolling=yes frameborder=no noresize=true xsp:attribute name=srccontent/content.xsp?xsp-request:get-query-string//xsp:attr ibute vs.: Nice markup but it insterts linebreaks for breakfast: frame name=content marginwidth=0 marginheight=0 scrolling=yes frameborder=no noresize=true xsp:attribute name=srccontent/content.xsp? xsp-request:get-query-string/ /xsp:attribute JW -Original Message- From: Antonio Gallardo Rivera [mailto:[EMAIL PROTECTED]] Sent: dinsdag 20 augustus 2002 7:01 To: [EMAIL PROTECTED] Subject: Re: Weird characters ESQL + XSP - URL Jan: I had the same problem before, please check how you are sending the parameter in the page where you create the parameter that you send to this page. I guess you are sending the parameter with the \n from this page. Antonio Gallardo - 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: Dynamic XSP resource
Just from a quick look, the map:generate src for menu.html has cocoon: as a part of it relative path; do you have such a path and can such an animal be part of a url? --Roger - Original Message - From: Tuomo Lesonen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 4:57 AM Subject: Dynamic XSP resource Hi all! I have an XSP page which is extended with the Session Transformer before it is used as an resource for the serverpages generator. Here's my sitemap: map:match pattern=menu.xsp map:generate src=docs/menu.xsp/ map:transform type=session/ map:serialize type=xml/ /map:match map:match pattern=menu.html map:generate type=serverpages src=cocoon:/menu.xsp/ map:transform src=stylesheets/menu-html.xsl/ map:serialize type=html/ /map:match If I open menu.xsp in browser, everything looks ok. Session Transformers does the job and everything. But when opening menu.html Cocoon gives a NullPointerException. Seems like a bug, not sure though. Thanks in advance, -Tuomo org.apache.cocoon.ProcessingException: Exception during source resolving.: org.apache.excalibur.source.SourceException: Exception during processing of cocoon://intranet/menu.xsp: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException at org.apache.cocoon.components.source.SourceUtil.handle(SourceUtil.java:136) at org.apache.cocoon.components.source.SourceUtil.getInputSource(SourceUtil.jav a:161) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eSourcecode(ProgramGeneratorImpl.java:438) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:285) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator .java:209) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli ne(AbstractProcessingPipeline.java:368) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline .setupPipeline(AbstractCachingProcessingPipeline.java:297) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs tractProcessingPipeline.java:475) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri alizeNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp eNode.java:155) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:309) at org.apache.cocoon.Cocoon.process(Cocoon.java:585) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1000) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at
XML data via POST request
Hi all, I am writing this because the archive isn't accessible at the moment, so I can' t reply to my original mail. A while ago, I had the problem that I wanted to send XML data via POST to a XSP. I received some interesting hints from Vadim Gritschenko (thanks again, Vadim), but in the end, nothing seemed to solve my problem, at least in a simple, obvious way. So, here is what I found out: Actually, the solution is very simple. I looked for a way to directly access the input stream which is associated with a HttpServletRequest. This can be done via public Map act (Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters params) which is a method of org.apache.cocoon.acting.AbstractAction. Using this approach, the HttpServletRequest instance is accessible via objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); I developed my own action, passed the request object the HttpServletRequest via setAttribute(...), and, in the sitemap, wrapped the XSP generator in my new action. This way, I could access the HttpServetRequest and its input stream in the XSP. Maybe, this is not the cleanest approach of all, but it exactly does what I want. Regards Boscoe - 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: Tomcat doesn't unpack cocoon.war
Unfortunately, I am at my (work) Windows machine right now, so I cannot check it. But I know that unpackWARs is set to true. (This is the default setting, I think.) I'll have a look at the logs as soon as I get back to my Linux machine. Thanks for your help. Martin Polley Technical Communicator http://www.surf-com.com/ [EMAIL PROTECTED] Tel: (+972) (4) 9095-732 Mobile: (053) 864-280 ICQ 15617901 -Original Message- From: Stephan Michels [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 1:05 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat doesn't unpack cocoon.war On Tue, 20 Aug 2002, Martin Polley wrote: Am I doing something wrong? Setup: RedHat Linux 7.3 J2SDK 1.4.1_01 Tomcat 4.0.4 Cocoon 2.0.3 (vm 1.4 version) Java SDK and Tomcat (tomcat-full tomcat-webapps) were downloaded as RPMs, Cocoon as a binary tarball. When I go to http://localhost:8080/cocoon/, it tells me that the requested resource (/cocoon/) is unavailable (I know Tomcat runs OK.) I have tries other (binary) versions of Tomcat (4.0.1) and Cocoon (2.0.3 for JDK 1.3, with JDK 1.3), all to no avail. Anyone have any idea what I am doing wrong? (I have seen other posts recommending unpacking cocoon.war to CATALINA_HOME/webapps/cocoon and then deleting the .war file. How do you unpack it?) $TOMCAT_HOME/conf/server.xml: Host name=localhost8080 debug=0 appBase=webapps unpackWARs=true But I think there will be another problems. Are there any hints in the logs $TOMCAT_HOME/logs ? Stephan. - 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]
Re: Dynamic XSP resource
On Tue, 20 Aug 2002, Roger I Martin PhD wrote: Just from a quick look, the map:generate src for menu.html has cocoon: as a part of it relative path; do you have such a path and can such an animal be part of a url? I use cocoon:/ protocol to tell cocoon, that menu.xsp in not directly located on my hard drive, but it's a resource in the current sitemap. cocoon:// would mean the parent sitemap. Generators in Cocoon (including the serverpages generator) can use the new cocoon: protocol, right? -Tuomo --Roger - Original Message - From: Tuomo Lesonen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 4:57 AM Subject: Dynamic XSP resource Hi all! I have an XSP page which is extended with the Session Transformer before it is used as an resource for the serverpages generator. Here's my sitemap: map:match pattern=menu.xsp map:generate src=docs/menu.xsp/ map:transform type=session/ map:serialize type=xml/ /map:match map:match pattern=menu.html map:generate type=serverpages src=cocoon:/menu.xsp/ map:transform src=stylesheets/menu-html.xsl/ map:serialize type=html/ /map:match If I open menu.xsp in browser, everything looks ok. Session Transformers does the job and everything. But when opening menu.html Cocoon gives a NullPointerException. Seems like a bug, not sure though. Thanks in advance, -Tuomo org.apache.cocoon.ProcessingException: Exception during source resolving.: org.apache.excalibur.source.SourceException: Exception during processing of cocoon://intranet/menu.xsp: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException at org.apache.cocoon.components.source.SourceUtil.handle(SourceUtil.java:136) at org.apache.cocoon.components.source.SourceUtil.getInputSource(SourceUtil.jav a:161) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generat eSourcecode(ProgramGeneratorImpl.java:438) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(Pr ogramGeneratorImpl.java:285) at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator .java:209) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setupPipeli ne(AbstractProcessingPipeline.java:368) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline .setupPipeline(AbstractCachingProcessingPipeline.java:297) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs tractProcessingPipeline.java:475) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri alizeNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp eNode.java:155) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:155) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:309) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:155) at
Re: weird ? (sunshine, c203)
My namespace is : http://sunshine.sunde.sunshine/1.0; and I use Xalan 2.3.1, Xerces 2.0.2. I am sure that I can use context without sunrise authentication, am I wrong ? (anyway in the full app I use authentication). Transformer works well for getxml context=sunRise, but not my custom context... xsl does : xsl:template match=/ sunshine:createcontext name=MyContext/ sunshine:setxml context=MyContext path=/root/lkfmPageTitle test/sunshine:setxml sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ /xsl:template Logs shows : [setup] [Tue Aug 20 13:44:22 CEST 2002] [startDocument] [startPrefixMapping] prefix=sunshine,uri=http://sunshine.sunde.sunshine/1.0 [startElement] uri=http://sunshine.sunde.sunshine/1.0,local=createcontext,raw=sunshine:crea tecontext [] 1. uri=http://www.w3.org/2000/xmlns/,local=sunshine,qname=xmlns:sunshine,type=C DATA,value=http://sunshine.sunde.sunshine/1.0 [] 2. uri=,local=name,qname=name,type=CDATA,value=MyContext [endElement] uri=http://sunshine.sunde.sunshine/1.0,local=createcontext,qname=sunshine:cr eatecontext [endPrefixMapping] prefix=sunshine [startPrefixMapping] prefix=sunshine,uri=http://sunshine.sunde.sunshine/1.0 [startElement] uri=http://sunshine.sunde.sunshine/1.0,local=setxml,raw=sunshine:setxml [] 1. uri=http://www.w3.org/2000/xmlns/,local=sunshine,qname=xmlns:sunshine,type=C DATA,value=http://sunshine.sunde.sunshine/1.0 [] 2. uri=,local=path,qname=path,type=CDATA,value=/root/lkfmPageTitle [] 3. uri=,local=context,qname=context,type=CDATA,value=MyContext [characters] test [endElement] uri=http://sunshine.sunde.sunshine/1.0,local=setxml,qname=sunshine:setxml [endPrefixMapping] prefix=sunshine [startPrefixMapping] prefix=sunshine,uri=http://sunshine.sunde.sunshine/1.0 [startElement] uri=http://sunshine.sunde.sunshine/1.0,local=getxml,raw=sunshine:getxml [] 1. uri=http://www.w3.org/2000/xmlns/,local=sunshine,qname=xmlns:sunshine,type=C DATA,value=http://sunshine.sunde.sunshine/1.0 [] 2. uri=,local=path,qname=path,type=CDATA,value=/root/lkfmPageTitle [] 3. uri=,local=context,qname=context,type=CDATA,value=MyContext [endElement] uri=http://sunshine.sunde.sunshine/1.0,local=getxml,qname=sunshine:getxml [endPrefixMapping] prefix=sunshine [endDocument] then after passing through sunShine transformer I still get as output : ?xml version=1.0 encoding=UTF-8? sunshine:createcontext xmlns:sunshine=http://sunshine.sunde.sunshine/1.0; name=MyContext/sunshine:setxml xmlns:sunshine=http://sunshine.sunde.sunshine/1.0; path=/root/lkfmPageTitle context=MyContext test/sunshine:setxmlsunshine:getxml xmlns:sunshine=http://sunshine.sunde.sunshine/1.0; path=/root/lkfmPageTitle context=MyContext/ I feel really lost now... :-( Babs - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 12:07 PM Subject: RE: weird ? (sunshine, c203) Try putting the log transformer between your xslt transformer and the sunShine transformer - you will then get the exact output of the xslt transformation. I guess that either the namespace for sunshine is not set or wrong (some versions of Xalan forgot to output the namespace very rarely, so this can be the case). Carsten -Original Message- - 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: weird ? (sunshine, c203) [oops]
ok the namespace was wrong ! it should have been : http://cocoon.apache.org/sunshine/1.0 :-/ dunno where I took it from !! gotta solve it soon then... - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 12:07 PM Subject: RE: weird ? (sunshine, c203) Try putting the log transformer between your xslt transformer and the sunShine transformer - you will then get the exact output of the xslt transformation. I guess that either the namespace for sunshine is not set or wrong (some versions of Xalan forgot to output the namespace very rarely, so this can be the case). Carsten -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 11:57 AM To: [EMAIL PROTECTED] Subject: Re: weird ? (sunshine, c203) Yes I do. double-checked. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 11:59 AM Subject: RE: weird ? (sunshine, c203) Do you declare the sunshine namespace in your xslt? Carsten - 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] - 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: Problem starting cocoon: SAX2 driver class not found
[EMAIL PROTECTED] wrote: Hello Cocoon users! On accessing my cocoon installation with http://localhost:8080/cocoon/; I still get the error message SAX2 driver class org.apache.xerces.parsers.SAXParser not found. Classloading issue. The Cocoon version is 2.0.3 and I tried it with Tomcat 4.0.3 and 4.0.4. The file access.log of the cocoon application you can find as an attachment to this e-mail. What's JDK version? is it 1.4? Have you done all installation steps as described on the site? Vadim Another installation with the same constellation (Cocoon 2.0.3 / Tomcat 4.0.3) is running on my Win2k-workstation without any problem. But the similar installation on my Win2k-server is not running. What's the problem? Can anybody help me? Regards, Dirk (See attached file: access.log) - 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: XSP caching and jsessionid
I don't think so. The best way is to add the URL rewriter as a single transformation step on the end of the pipe. Regards, Joerg Michael Zehrer wrote: Hi List, after getting xsp caching to work (which is really fun), there is a problem with pages that include urlrewritten links containing that jsessionid=, is there any solution fot making these pages chacheable? Cheers Michael -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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]
Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
Could anyone help with this cache problem ... I seem to get these errors creep into existence for certain static document (e. g. images). Everything is fine for a couple of days, then I start getting cache errors on access to some static files. Once a certain URI starts failing, it keeps failing, then gradually others join in. To restore access to them, I have to stop tomcat, delete the work directory (which includes the cache of course!) and restart tomcat. Then everything is fine for a couple of days again. I've checked the recommendations for heapsize and freememory as far as I understand them. I've done a search of the mailing list, but have not managed to find anything specific to this error. System is Windows 2000 IIS5 using ISAPI to tomcat 4.0.1 to cocoon 2.0.1 jdk1.3.1 Here's the error I get. (By the way, /main/ is the name of my cocoon context and directory) ERROR (2002-08-20) 03:05.26:671 [access] (/main/images/banners/Sep02_Kozena.gif) Ajp13Processor[8009][20]/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject at org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca chingStreamPipeline.java:234) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac tStreamPipeline.java:125) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:249) at org.apache.cocoon.www.sitemap_xmap.matchN10A3F(sitemap_xmap.java:10143) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3022) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2481) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) at java.lang.Thread.run(Thread.java:484) java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject at org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca chingStreamPipeline.java:154) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac tStreamPipeline.java:125) at
AW: XSP caching and jsessionid
But then I would have a cached copy only for each user/session? But I want a global cache... -Ursprüngliche Nachricht- Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 20. August 2002 14:47 An: [EMAIL PROTECTED] Betreff: Re: XSP caching and jsessionid Michael Zehrer wrote: Hi List, after getting xsp caching to work (which is really fun), there is a problem with pages that include urlrewritten links containing that jsessionid=, is there any solution fot making these pages chacheable? Have jsessionid as part of key (or validity - depends on your circumstances). Then all cache entries will become invalid once session is invalidated. Vadim Cheers Michael - 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]
xsl variable and sunshine getxml
c2.0.3.. I am surprised that : sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ works while : variable name=foo sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ /variable xsl:value-of select=$foo/ does not... I need to pass the value to a template (of an imported reused stylesheet...). Thanks... Babs - 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: Tomcat doesn't unpack cocoon.war
Martin Polley wrote: Am I doing something wrong? Setup: RedHat Linux 7.3 J2SDK 1.4.1_01 Tomcat 4.0.4 Cocoon 2.0.3 (vm 1.4 version) Java SDK and Tomcat (tomcat-full tomcat-webapps) were downloaded as RPMs, Cocoon as a binary tarball. When I go to http://localhost:8080/cocoon/, it tells me that the requested resource (/cocoon/) is unavailable (I know Tomcat runs OK.) I have tries other (binary) versions of Tomcat (4.0.1) and Cocoon (2.0.3 for JDK 1.3, with JDK 1.3), all to no avail. Anyone have any idea what I am doing wrong? (I have seen other posts recommending unpacking cocoon.war to CATALINA_HOME/webapps/cocoon and then deleting the .war file. How do you unpack it?) unzip Vadim TIA, Martin Polley Technical Communicator http://www.surf-com.com/ [EMAIL PROTECTED] Tel: (+972) (4) 9095-732 Mobile: (053) 864-280 ICQ 15617901 - 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: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
Perhaps this is the same bug as described here: http://marc.theaimsgroup.com/?t=10293301812r=1w=2 Carsten -Original Message- From: Christopher Watson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 2:48 PM To: Cocoon-Users Subject: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject Could anyone help with this cache problem ... I seem to get these errors creep into existence for certain static document (e. g. images). Everything is fine for a couple of days, then I start getting cache errors on access to some static files. Once a certain URI starts failing, it keeps failing, then gradually others join in. To restore access to them, I have to stop tomcat, delete the work directory (which includes the cache of course!) and restart tomcat. Then everything is fine for a couple of days again. I've checked the recommendations for heapsize and freememory as far as I understand them. I've done a search of the mailing list, but have not managed to find anything specific to this error. System is Windows 2000 IIS5 using ISAPI to tomcat 4.0.1 to cocoon 2.0.1 jdk1.3.1 Here's the error I get. (By the way, /main/ is the name of my cocoon context and directory) ERROR (2002-08-20) 03:05.26:671 [access] (/main/images/banners/Sep02_Kozena.gif) Ajp13Processor[8009][20]/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject at org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces sReader(Ca chingStreamPipeline.java:234) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.proce ss(Abstrac tStreamPipeline.java:125) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces s(CachingS treamPipeline.java:249) at org.apache.cocoon.www.sitemap_xmap.matchN10A3F(sitemap_xmap.java:10143) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3022) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2481) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardConte xtValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv e.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat cherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv e.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine Valve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
Merging Dynamic Content and Static HTML in Same Page
Hi All Is it possible within Cocoon to produce a single page that is made up of both static and dynamic content. For example, I would like to produce reports that all contain a standard header with images and toolbars, etc., but where the dynamic part of the page is generated by an XSP using ESQL. Within Cocoon I can see ways of generating static pages using either map:read or map:generate, as in: map:match pattern=head.html map:read src=docs/head.htm mime-type=text/html/ /map:match map:match pattern=head map:generate type=html src=docs/head.htm/ map:serialize/ /map:match And there are ways of generating dynamic pages using XSP, as in: map:match pattern=reports map:generate type=serverpages src=docs/PCTeamProduct.xsp/ map:transform src=stylesheets/PCTeamProduct.xsl/ map:serialize/ /map:match Now how can I put these both together so that I get a single HTML page with head.htm at the top followed by the output of PCTeamProduct.xsp? Thanks for the help Regards Michael -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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: Download Dialog box
Atul Gulve wrote: Hi, I want to add export functionality in my application. It means, when a user clicks on some link he should get a download dialog box. But I am not able to access HttpServletResponse in xsp. What would you do if it were available? If anyone knows how to implement the above functionality then please do let me know. Set content type to something weird, then browser will prompt user to save or open this file. Vadim Thanks Atul - 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: Tomcat doesn't unpack cocoon.war
Vadim Gritsenko wrote: snip unzip /snip DOH! Martin Polley Technical Communicator http://www.surf-com.com/ [EMAIL PROTECTED] Tel: (+972) (4) 9095-732 Mobile: (053) 864-280 ICQ 15617901 - 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: xsl variable and sunshine getxml
Why not xsl:variable? Roman Barbara Post wrote: c2.0.3.. I am surprised that : sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ works while : variable name=foo sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ /variable xsl:value-of select=$foo/ does not... I need to pass the value to a template (of an imported reused stylesheet...). Thanks... Babs - 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]
Re: xsl variable and sunshine getxml
yeah it was a typo in my mail but indeed I have xsl:variable in my xsl. sorry.. - Original Message - From: KOZLOV Roman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 3:03 PM Subject: Re: xsl variable and sunshine getxml Why not xsl:variable? Roman Barbara Post wrote: c2.0.3.. I am surprised that : sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ works while : variable name=foo sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ /variable xsl:value-of select=$foo/ does not... I need to pass the value to a template (of an imported reused stylesheet...). Thanks... Babs - 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] - 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: Tomcat doesn't unpack cocoon.war
Possible cause: You need to make sure that the tomcat user/group has permission to write to the webapps directory. Martin Polley wrote: Unfortunately, I am at my (work) Windows machine right now, so I cannot check it. But I know that unpackWARs is set to true. (This is the default setting, I think.) I'll have a look at the logs as soon as I get back to my Linux machine. Thanks for your help. Martin Polley Technical Communicator http://www.surf-com.com/ [EMAIL PROTECTED] Tel: (+972) (4) 9095-732 Mobile: (053) 864-280 ICQ 15617901 -Original Message- From: Stephan Michels [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 1:05 PM To: [EMAIL PROTECTED] Subject: Re: Tomcat doesn't unpack cocoon.war On Tue, 20 Aug 2002, Martin Polley wrote: Am I doing something wrong? Setup: RedHat Linux 7.3 J2SDK 1.4.1_01 Tomcat 4.0.4 Cocoon 2.0.3 (vm 1.4 version) Java SDK and Tomcat (tomcat-full tomcat-webapps) were downloaded as RPMs, Cocoon as a binary tarball. When I go to http://localhost:8080/cocoon/, it tells me that the requested resource (/cocoon/) is unavailable (I know Tomcat runs OK.) I have tries other (binary) versions of Tomcat (4.0.1) and Cocoon (2.0.3 for JDK 1.3, with JDK 1.3), all to no avail. Anyone have any idea what I am doing wrong? (I have seen other posts recommending unpacking cocoon.war to CATALINA_HOME/webapps/cocoon and then deleting the .war file. How do you unpack it?) $TOMCAT_HOME/conf/server.xml: Host name=localhost8080 debug=0 appBase=webapps unpackWARs=true But I think there will be another problems. Are there any hints in the logs $TOMCAT_HOME/logs ? Stephan. - 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] -- --- Simon Price Institute for Learning and Research Technology University of Bristol 8-10 Berkeley Square Bristol BS8 1HH United Kingdom Direct: +44 (0)7071 226 720 Office: +44 (0)117 928 7193 Fax: +44 (0)117 928 7112 [EMAIL PROTECTED] http://www.ilrt.bristol.ac.uk - 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: xsl variable and sunshine getxml
-Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 2:52 PM To: [EMAIL PROTECTED] Subject: xsl variable and sunshine getxml c2.0.3.. I am surprised that : sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ works while : variable name=foo sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ /variable xsl:value-of select=$foo/ does not... sunshine:getxml is processed by the sunShine transformer and not the stylesheet. So at the time, the xsl:value-of is evaluated, the sunShine transformer did not run, so the value-of is built over the element sunshine:getxml. One solution is to do a three stage processing: 1. A pipeline with a stylesheet followed by the sunshine transformer followed by a stylesheet 2. Adding sunshine:getxml in the first stylesheet 3. the sunShine transformer replaces the element with the value 4. the second stylesheet can do a value-of HTH Carsten I need to pass the value to a template (of an imported reused stylesheet...). Thanks... Babs - 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]
Re: xsl variable and sunshine getxml
thanks for the explaination Carsten. I finally palinly copied the needed templates into my stylesheet, rather than writing more stylesheets ;-) as I thought of too. - Original Message - From: Carsten Ziegeler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 3:15 PM Subject: RE: xsl variable and sunshine getxml -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 2:52 PM To: [EMAIL PROTECTED] Subject: xsl variable and sunshine getxml c2.0.3.. I am surprised that : sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ works while : variable name=foo sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ /variable xsl:value-of select=$foo/ does not... sunshine:getxml is processed by the sunShine transformer and not the stylesheet. So at the time, the xsl:value-of is evaluated, the sunShine transformer did not run, so the value-of is built over the element sunshine:getxml. One solution is to do a three stage processing: 1. A pipeline with a stylesheet followed by the sunshine transformer followed by a stylesheet 2. Adding sunshine:getxml in the first stylesheet 3. the sunShine transformer replaces the element with the value 4. the second stylesheet can do a value-of HTH Carsten I need to pass the value to a template (of an imported reused stylesheet...). Thanks... Babs - 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] - 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: xsl variable and sunshine getxml
Hello Barbara, that's a simple XSL problem. With variable name=foo sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ /variable you create a Result Tree Fragment (RTF), not a node set. A RTF contains the nodes, but you can't operate on them like on a node set. It behaves more like a string. But in your variable you have no text node, so there is no text to operate on. What you need is xsl:copy-of select=$foo/. There is only one problem: Which transformer is executed earlier? Regards, Joerg Barbara Post wrote: c2.0.3.. I am surprised that : sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ works while : variable name=foo sunshine:getxml context=MyContext path=/root/lkfmPageTitle/ /variable xsl:value-of select=$foo/ does not... I need to pass the value to a template (of an imported reused stylesheet...). Thanks... Babs -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - 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: Merging Dynamic Content and Static HTML in Same Page
Micheal, I think this is a case for aggregation: read the aggregating paragraph at http://xml.apache.org/cocoon/userdocs/concepts/sitemap.html Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Michael Edge [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 2:56 PM To: [EMAIL PROTECTED] Subject: Merging Dynamic Content and Static HTML in Same Page Hi All Is it possible within Cocoon to produce a single page that is made up of both static and dynamic content. For example, I would like to produce reports that all contain a standard header with images and toolbars, etc., but where the dynamic part of the page is generated by an XSP using ESQL. Within Cocoon I can see ways of generating static pages using either map:read or map:generate, as in: map:match pattern=head.html map:read src=docs/head.htm mime-type=text/html/ /map:match map:match pattern=head map:generate type=html src=docs/head.htm/ map:serialize/ /map:match And there are ways of generating dynamic pages using XSP, as in: map:match pattern=reports map:generate type=serverpages src=docs/PCTeamProduct.xsp/ map:transform src=stylesheets/PCTeamProduct.xsl/ map:serialize/ /map:match Now how can I put these both together so that I get a single HTML page with head.htm at the top followed by the output of PCTeamProduct.xsp? Thanks for the help Regards Michael -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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]
Re: Anyone seen this cache problem?: - java.lang.ClassCastException:org.apache.cocoon.caching.CachedEventObject
Christopher Watson wrote: Could anyone help with this cache problem ... I seem to get these errors creep into existence for certain static document (e. g. images). Everything is fine for a couple of days, then I start getting cache errors on access to some static files. Once a certain URI starts failing, it keeps failing, then gradually others join in. To restore access to them, I have to stop tomcat, delete the work directory (which includes the cache of course!) and restart tomcat. Then everything is fine for a couple of days again. I've checked the recommendations for heapsize and freememory as far as I understand them. I've done a search of the mailing list, but have not managed to find anything specific to this error. System is Windows 2000 IIS5 using ISAPI to tomcat 4.0.1 to cocoon 2.0.1 jdk1.3.1 Here's the error I get. (By the way, /main/ is the name of my cocoon context and directory) ... java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject at org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca chingStreamPipeline.java:154) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac tStreamPipeline.java:125) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:249) This looks like clash in cache: object of unexpected type was returned to the pipeline. Try upgrading to the 2.0.3 version and tell us your experience. If this is not the option, I can recommend adding another instance of the cache (with different role) and patching CachingStreamPipeline to use this another store. Then should be no clashes like this. Vadim - 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: AW: XSP caching and jsessionid
Michael Zehrer wrote: But then I would have a cached copy only for each user/session? But I want a global cache... Which is obviously not possible. Either you cache response for each session, or you do not cache (encode URL transformer, as you can see, works exactly same way). PS We are talking here about jsessionid only, no cookies, right? Vadim -Ursprüngliche Nachricht- Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 20. August 2002 14:47 An: [EMAIL PROTECTED] Betreff: Re: XSP caching and jsessionid Michael Zehrer wrote: Hi List, after getting xsp caching to work (which is really fun), there is a problem with pages that include urlrewritten links containing that jsessionid=, is there any solution fot making these pages chacheable? Have jsessionid as part of key (or validity - depends on your circumstances). Then all cache entries will become invalid once session is invalidated. Vadim Cheers Michael - 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]
Using views
Hi! I'm about to start using views. I'm trying to do something that I'm not sure can be done. Can I use map:aggregate in views? What for? Well, this way I would be able to add my side-menu XML elements after the content generation, but before the final transformation. I'm looking for a way to add content to *all* of my pages before their final transformation to HTML, without having to use map:agregate in every pipeline. Thanks in advance, Igor - 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: Tomcat doesn't unpack cocoon.war
Martin Polley wrote: Vadim Gritsenko wrote: snip unzip /snip DOH! Yup. For gourmands and purists: jar -x Vadim - 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: Common practice: how to keep links to html-trees consistent
Hi, Perhaps it is an easy thing to do, but what happens if you stage your sites (dev, qa, certification, live) or have a distribution of software you want to document (you want the HTML to work wherever the user downloads it). Or perhaps you want to hand it off to your boss to look over on her flight to Hawaii. I don't see passing a parameter working, either. Do you have to pass params for each link on each generated page? What happens when you want to swap pages and folders around? If you referenced all you your links by ID, then get in the context of that page in a site 'map' and recursively find your path - you will always have accurate links. I don't see an easier way to maintain link integrity. best, -Rob -Original Message- From: Ivan Luzyanin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 12:45 AM To: Cocoon-users mailing list Subject: Re: Common practice: how to keep links to html-trees consistent Easiest solusion is to use headBASE href=../head in your generated pages Ivan. P.S. http://www.w3.org/TR/REC-html32.html#base On Mon, 2002-08-19 at 23:42, Koen Pellegrims wrote: Guys, This is something that most of you *must* have come across at one point or another, and I am just looking for the best solution (I know it is not really a Cocoon-question, but Cocoon might provide some nice and elegant solution for this...) Menu on my site that contains a link to the index-page (index.html) and links to (among others) a product-page. In the page-hierarchy, the product-pages are contained within a 'products' directory. index.html products/productA.html products/productB.html The problem arises when I display this menu on a product page, because the browser (rightly so) interprets 'index.html' as being relative to the 'products'-directory. So, whereas the link to 'index.html' is correct from the index-page, it refers to 'products/index.html' on any product page. (and even worse: a link to productA suddenly becomes a link to products/products/productsA.html) My question is simple: did any of you encounter this problem? And -of course- how did you solve it? Koen - 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]
RE: Using views
Hi! I'm about to start using views. I'm trying to do something that I'm not sure can be done. Can I use map:aggregate in views? As far as I know, you can't tell cocoon to aggregate views. You can define a view to reference a part of an aggregate. What for? Well, this way I would be able to add my side-menu XML elements after the content generation, but before the final transformation. I'm looking for a way to add content to *all* of my pages before their final transformation to HTML, without having to use map:agregate in every pipeline. You could do this a couple of ways: - in your content use CInclude to include a snippet from elsewhere. Something like: xml-before-final-transform ... content ... cinclude:include href=cocoon:/mymenu.xml / ... /xml-before-final-transform - or, even more general, just add another XSLT transform before the final one: ... map:generate map:transform src=add-menu.xsl / map:transform src=generate-html.xsl / ... In the XSLT, you'll need to copy all input elements to the output and graft in your menu. Per - 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]
dull problem : redirecting after transforming
I have a series of transformers (last one inserts in a database) then want to go to another pipeline (anyway I have to do a generation from new xml, not the DB successful insertion message) without having interaction with the user, how can I do that ? map:redirect-to uri=... right after a map:transform causes Tomcat to throw a NPE. I cannot have a redirect-to after a xml serializer. I need to be able to pass a parameter to the next pipeline though... Thanks for any idea, Babs - 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: Merging Dynamic Content and Static HTML in Same Page
There is another possibility, though a bit out of the scope of cocoon: Use Cocoon to genrate HTML content that includes a Server Side Include-Statement (!--#include...--), put a Apache Webserver 2.x in front of cocoon (i.e. using mod_jk). With proper configuration in httpd.conf of the Apache you can let the Webserver resolve the Include-Statements, these should point to a local URL known to the webserver (the same way it works if you put Include-Statements in static HTML-Files). This only works with Apache 2.x and above, not with Apache 1.x. Stefan -Original Message- From: Michael Edge [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 4:30 PM To: [EMAIL PROTECTED] Subject: Re: Merging Dynamic Content and Static HTML in Same Page Thanks for the help Vadim and Luca. My understanding is that aggregation creates a single XML fragment from many sources, concatenating them all together. Then it applies the transformation and serialization. However, my documents are not XML but HTML. Using aggregation and include it seems as though these documents will be converted to XML, merged into one large XML fragment before being transformed via my stylesheet. I don't want or need the stylesheet to process the HTML at all. I sort of need the aggregation to happen after the transformation rather than before. Any suggestions? Or are there other ways to accomplish this? Surely this must be quite a common requirement? Thanks for your time Michael Michael Edge wrote: Hi All Is it possible within Cocoon to produce a single page that is made up of both static and dynamic content. For example, I would like to produce reports that all contain a standard header with images and toolbars, etc., but where the dynamic part of the page is generated by an XSP using ESQL. Within Cocoon I can see ways of generating static pages using either map:read or map:generate, as in: map:match pattern=head.html map:read src=docs/head.htm mime-type=text/html/ /map:match map:match pattern=head map:generate type=html src=docs/head.htm/ map:serialize/ /map:match And there are ways of generating dynamic pages using XSP, as in: map:match pattern=reports map:generate type=serverpages src=docs/PCTeamProduct.xsp/ map:transform src=stylesheets/PCTeamProduct.xsl/ map:serialize/ /map:match Now how can I put these both together so that I get a single HTML page with head.htm at the top followed by the output of PCTeamProduct.xsp? 1. Sitemap aggregation. See samples. 2. Includes. See samples. Vadim Thanks for the help Regards Michael - 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] -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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]
RE: Merging Dynamic Content and Static HTML in Same Page
Michael, you can just aggregate without trasnforming (though you MUST serialize after aggregating). Moreover, you can aggregate the results of other pipelines, like in: map:aggregate element=page map:part src=cocoon:/all-parameters.xml/ map:part src=cocoon:/form-emptylog.xml element=form-emptylog/ /map:aggregate Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Michael Edge [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 4:30 PM To: [EMAIL PROTECTED] Subject: Re: Merging Dynamic Content and Static HTML in Same Page Thanks for the help Vadim and Luca. My understanding is that aggregation creates a single XML fragment from many sources, concatenating them all together. Then it applies the transformation and serialization. However, my documents are not XML but HTML. Using aggregation and include it seems as though these documents will be converted to XML, merged into one large XML fragment before being transformed via my stylesheet. I don't want or need the stylesheet to process the HTML at all. I sort of need the aggregation to happen after the transformation rather than before. Any suggestions? Or are there other ways to accomplish this? Surely this must be quite a common requirement? Thanks for your time Michael Michael Edge wrote: Hi All Is it possible within Cocoon to produce a single page that is made up of both static and dynamic content. For example, I would like to produce reports that all contain a standard header with images and toolbars, etc., but where the dynamic part of the page is generated by an XSP using ESQL. Within Cocoon I can see ways of generating static pages using either map:read or map:generate, as in: map:match pattern=head.html map:read src=docs/head.htm mime-type=text/html/ /map:match map:match pattern=head map:generate type=html src=docs/head.htm/ map:serialize/ /map:match And there are ways of generating dynamic pages using XSP, as in: map:match pattern=reports map:generate type=serverpages src=docs/PCTeamProduct.xsp/ map:transform src=stylesheets/PCTeamProduct.xsl/ map:serialize/ /map:match Now how can I put these both together so that I get a single HTML page with head.htm at the top followed by the output of PCTeamProduct.xsp? 1. Sitemap aggregation. See samples. 2. Includes. See samples. Vadim Thanks for the help Regards Michael - 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] -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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]
RE: Download Server - directory access denied
Vadim, Thanks for relating my problem to the FAQ. Now I understand. :) That was the problem. Interesting to note, though, here is the change that fixed the problem: !-- Download Server -- map:pipeline map:match pattern=download map:act type=request map:parameter name=parameters value=true/ map:act type=resource-exists --- section of change --- map:parameter name=url value=download/{file}/ map:read src=download/{../file}/ --- section of change --- /map:act map:generate src=filenotfound.xml/ map:transform src=filenotfound2html.xsl/ map:serialize/ /map:act /map:match /map:pipeline Notice that I changed the path to the variable in the map:read but not the map:parameter. When I changed the map:parameter use of the {file} variable, I got the html page generated by the filenotfound xml and xsl portions of the pipeline. Why is this so? Thanks, Matthew P.S. Tammo, thanks for pointing me to the logs. It helped me understand what was going on a little better. :) pipeline: !-- Download Server -- map:pipeline map:match pattern=download map:act type=request map:parameter name=parameters value=true/ map:act type=resource-exists map:parameter name=url value=download/{file}/ map:read src=download/{file}/ /map:act map:generate src=filenotfound.xml/ map:transform src=filenotfound2html.xsl/ map:serialize/ /map:act /map:match /map:pipeline - 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]
Portal question [ the request parameters are available from insidethe coplets?]
Hello, I have a small portal [cocoon 2.1-dev] question here. The requests parameters passed to the main portal pipeline (that one containing the portal generator) are available to the coplets? I mean if we invoked the portal generator pipeline with some parameters (e.g /index?abc=10), where /index matchs to the portal generator, Is this abc parameter available to all the coplets?? Thanks -- Ramy Mamdouh Kamel [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]
Re: Download Server - directory access denied
Matthew Hailstone wrote: Vadim, Thanks for relating my problem to the FAQ. Now I understand. :) That was the problem. Interesting to note, though, here is the change that fixed the problem: !-- Download Server -- map:pipeline map:match pattern=download 1 Entered match scope map:act type=request map:parameter name=parameters value=true/ 2 Entered act request scope map:act type=resource-exists --- section of change --- map:parameter name=url value=download/{file}/ 3 Entered act resource-exists scope map:read src=download/{../file}/ --- section of change --- 3 About to exit act resource-exists scope /map:act 2 Again at act request scope map:generate src=filenotfound.xml/ map:transform src=filenotfound2html.xsl/ map:serialize/ 2 About to exit act request scope /map:act 1 About to exit match scope /map:match /map:pipeline Notice that I changed the path to the variable in the map:read but not the map:parameter. When I changed the map:parameter use of the {file} variable, I got the html page generated by the filenotfound xml and xsl portions of the pipeline. Why is this so? See at scopes of variables. Parameters are not separate entities but belong to the parent tag (same as in XSLT). Vadim Thanks, Matthew P.S. Tammo, thanks for pointing me to the logs. It helped me understand what was going on a little better. :) pipeline: !-- Download Server -- map:pipeline map:match pattern=download map:act type=request map:parameter name=parameters value=true/ map:act type=resource-exists armap:p nameteruame= vrl Dalue:ddownlo}/{file / map:read src=download/{file}/ /map:act map:generate src=filenotfound.xml/ map:transform src=filenotfound2html.xsl/ map:serialize/ /map:act /map:match /map:pipeline - 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: dull problem : redirecting after transforming
On 20.Aug.2002 -- 04:11 PM, Barbara Post wrote: Barbara, in short: you cannot. If you had a redirect after the response is already produced, it would be ignored. In addition, you may not have a pipeline with a generator but without a serializer (correction: call-ressource may be the last, but eventually, there needs to be a serializer). I have a series of transformers (last one inserts in a database) then want I would consider it bad design to modify data in a transformer if the result depends on the outcome. to go to another pipeline (anyway I have to do a generation from new xml, not the DB successful insertion message) without having interaction with the user, how can I do that ? Apart from needing a serializer for this particular pipeline anyways, you might get away using aggregation. map:aggregate map:part src=pipeline-that-does-db-transform/ map:part src=pipeline-that-does-real-work/ map:aggregate Difficult to pass a parameter from part one to part two, though. Request or session attributes would do. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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: Download Server - directory access denied
I see. So the map:parameter element, notwithstanding it is inside the map:act type=resource-exists element, is actually still inside the map:act type=request element's scope. From your comment, I suppose I should have known this because it follows the XSLT specification. Thanks again! That is very helpful to know. Matthew !-- Download Server -- map:pipeline map:match pattern=download 1 Entered match scope map:act type=request map:parameter name=parameters value=true/ 2 Entered act request scope map:act type=resource-exists --- section of change --- map:parameter name=url value=download/{file}/ 3 Entered act resource-exists scope map:read src=download/{../file}/ --- section of change --- 3 About to exit act resource-exists scope /map:act 2 Again at act request scope map:generate src=filenotfound.xml/ map:transform src=filenotfound2html.xsl/ map:serialize/ 2 About to exit act request scope /map:act 1 About to exit match scope /map:match /map:pipeline See at scopes of variables. Parameters are not separate entities but belong to the parent tag (same as in XSLT). Vadim - 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: Portal question [ the request parameters are available from inside the coplets?]
Ramy, the coplet needs to be configured to handle parameters. Check the handlesParameters entry in the portal documentation. This is optional - so you will need to turn it on using the portal tool or by editing the coplet profile. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: Ramy Mamdouh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 4:57 PM To: [EMAIL PROTECTED] Subject: Portal question [ the request parameters are available from inside the coplets?] Hello, I have a small portal [cocoon 2.1-dev] question here. The requests parameters passed to the main portal pipeline (that one containing the portal generator) are available to the coplets? I mean if we invoked the portal generator pipeline with some parameters (e.g /index?abc=10), where /index matchs to the portal generator, Is this abc parameter available to all the coplets?? Thanks -- Ramy Mamdouh Kamel [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] - 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: XML data via POST request
On Tue, Aug 20, 2002 at 01:33:49PM +0200, Boscoe wrote: Hi all, I am writing this because the archive isn't accessible at the moment, so I can' t reply to my original mail. A while ago, I had the problem that I wanted to send XML data via POST to a XSP. I received some interesting hints from Vadim Gritschenko (thanks again, Vadim), but in the end, nothing seemed to solve my problem, at least in a simple, obvious way. So, here is what I found out: Actually, the solution is very simple. I looked for a way to directly access the input stream which is associated with a HttpServletRequest. This can be done via public Map act (Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters params) which is a method of org.apache.cocoon.acting.AbstractAction. Using this approach, the HttpServletRequest instance is accessible via objectModel.get(HttpEnvironment.HTTP_REQUEST_OBJECT); I developed my own action, passed the request object the What do you need the action for ? The way I do it is pure xsp, an example below. I do not quite know though how to make it reusable and put it into logicsheet so I do not have to make xsp:includes and so I could do: Document document = myutils:get-request-body-as-DOM/; Could someone help me ? ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xsp:structure xsp:includejava.net.*/xsp:include xsp:includeorg.w3c.dom.*/xsp:include xsp:includeorg.apache.cocoon.xml.dom.DOMStreamer/xsp:include xsp:includeorg.apache.cocoon.xml.dom.DOMBuilder/xsp:include xsp:includeorg.apache.cocoon.components.parser.Parser/xsp:include xsp:includeorg.apache.cocoon.util.PostInputStream/xsp:include xsp:includeorg.apache.cocoon.environment.http.HttpEnvironment/xsp:include xsp:includejavax.servlet.http.HttpServletRequest/xsp:include xsp:includeorg.apache.xpath.XPathAPI/xsp:include xsp:includejavax.xml.transform.TransformerException/xsp:include /xsp:structure xsp:logic Document document = null; public Document GetInputStreamDocument() throws IOException { // Node node = XPathAPI.selectNode(parser.parse(request.getParameter(xmlparam), kazoo); int contentLength = request.getContentLength(); if ( contentLength = 0 ) { HttpServletRequest request = (HttpServletRequest) objectModel.get( HttpEnvironment.HTTP_REQUEST_OBJECT ); PostInputStream anStream = new PostInputStream( request.getInputStream(), contentLength ); InputSource contentSource = new InputSource( anStream ); Parser newParser = null; DOMBuilder builder = null; try { newParser = (Parser) this.manager.lookup(Parser.ROLE); document = newParser.newDocument(); builder = new DOMBuilder(newParser); newParser.setContentHandler(builder); newParser.setLexicalHandler(builder); newParser.parse( contentSource ); } catch (Exception e) { // ignore - return null } finally { this.manager.release((Component) newParser); } return builder.getDocument(); } return null; } /xsp:logic content xsp:logic document = GetInputStreamDocument(); try { idxsp:exprXPathAPI.selectSingleNode(document, /Orders/OrderID).getFirstChild().getNodeValue()/xsp:expr/id } catch ( TransformerException e ) { } catch ( DOMException e ) { } /xsp:logic /content /xsp:page -- __ | / \ |Leszek Gawron// \\ \_\\ //_/ [EMAIL PROTECTED] _\\()//_ .'/()\'. Phone: +48(600)341118 / // \\ \ \\ // recursive: adj; see recursive | \__/ | - 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: Merging Dynamic Content and Static HTML in Same Page
Thanks again for the help. It now works. My sitemap entry is as follows, and I get a proper header and footer surrounding my report. Thanks to you Stefan for your Apache suggestion. I'll keep that in mind. Regards Michael map:match pattern=header map:generate type=html src=docs/MosaicHeader.htm/ map:serialize/ /map:match map:match pattern=footer map:generate type=html src=docs/MosaicFooter.htm/ map:serialize/ /map:match map:match pattern=reports map:generate type=serverpages src=docs/PCTeamProduct.xsp/ map:transform src=stylesheets/PCTeamProduct.xsl/ map:serialize/ /map:match map:match pattern=aggreg map:aggregate element=one map:part src=cocoon:/header/ map:part src=cocoon:/reports/ map:part src=cocoon:/footer/ /map:aggregate map:serialize/ /map:match Michael, you can just aggregate without trasnforming (though you MUST serialize after aggregating). Moreover, you can aggregate the results of other pipelines, like in: map:aggregate element=page map:part src=cocoon:/all-parameters.xml/ map:part src=cocoon:/form-emptylog.xml element=form-emptylog/ /map:aggregate Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Michael Edge [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 4:30 PM To: [EMAIL PROTECTED] Subject: Re: Merging Dynamic Content and Static HTML in Same Page Thanks for the help Vadim and Luca. My understanding is that aggregation creates a single XML fragment from many sources, concatenating them all together. Then it applies the transformation and serialization. However, my documents are not XML but HTML. Using aggregation and include it seems as though these documents will be converted to XML, merged into one large XML fragment before being transformed via my stylesheet. I don't want or need the stylesheet to process the HTML at all. I sort of need the aggregation to happen after the transformation rather than before. Any suggestions? Or are there other ways to accomplish this? Surely this must be quite a common requirement? Thanks for your time Michael Michael Edge wrote: Hi All Is it possible within Cocoon to produce a single page that is made up of both static and dynamic content. For example, I would like to produce reports that all contain a standard header with images and toolbars, etc., but where the dynamic part of the page is generated by an XSP using ESQL. Within Cocoon I can see ways of generating static pages using either map:read or map:generate, as in: map:match pattern=head.html map:read src=docs/head.htm mime-type=text/html/ /map:match map:match pattern=head map:generate type=html src=docs/head.htm/ map:serialize/ /map:match And there are ways of generating dynamic pages using XSP, as in: map:match pattern=reports map:generate type=serverpages src=docs/PCTeamProduct.xsp/ map:transform src=stylesheets/PCTeamProduct.xsl/ map:serialize/ /map:match Now how can I put these both together so that I get a single HTML page with head.htm at the top followed by the output of PCTeamProduct.xsp? 1. Sitemap aggregation. See samples. 2. Includes. See samples. Vadim Thanks for the help Regards Michael - 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] -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. - 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: dull problem : redirecting after transforming
Barbara, I solved a problem like yours in a rather awkward way... but you may find it useful. 1) I wanted to choose a pipeline based on a parameter outputted by my database operations (I use Stored Procedures, hence an output parameter, called intStatus, was used as a status variable: 0 Ok, 1 Generic error, 2 Constraint violation, ... 2) I wanted to pop-up a Javascript dialog box or an HTML page in the same window or an HTML page in a new window in response to SP's status Hence, I built a pipeline like this: map:match name=wildcard pattern=clearlog-execute.html map:aggregate element=page map:part src=documents/general/control-parameters.xml/ map:part src=cocoon:/sp-uman-clearlog.xml/ /map:aggregate map:transform src=stylesheets/general/sp-control-html.xsl map:parameter name=control-section value=clear-log/ /map:transform map:serialize type=html/ /map:match Where: 1) control-parameters.xml contained a list of actions to take in response to the SP's status, like: spctl:control-section id=clear-log spctl:control trigger={0} spctl:action href=changes.html target=frameChanges/ spctl:window type=dialog /spctl:control spctl:control trigger={10} spctl:window type=dialog message=Generic error, contact your database administrator/ /spctl:control /spctl:control-section 2) sp-uman-clearlog.xml is a pipelin that executes an SP 3) sp-control-html.xsl is a stylesheet which executes the action triggered by the SP's status parameter (this actions have been detailed in control-parameters.xml). This XSLT builds a minimal HTML page to be executed at load time 4) By the way, I need an hidden frame to use it as a callback for the action Let's see what happens in the control flow between client and server: Case A) the SP returns 10 in intStatus: 1) Client -- clearlog-execute.html with hidden target (say frameCmd) 2) Server -- HTML page containing the window.alert() to the frameCmd hidden frame executed by onLoad event 3) The user see a Javascript dialog box Case B) the SP returns 0 in intStatus: 1) Client -- clearlog-execute.html with hidden target (say frameCmd) 2) Server -- HTML page with a form (executed by onLoad event) with points to changes.html with target frameChanges Client -- changes.html with shown target frameChanges 3) The user see the changes.html page in the frameChanges frame Ugly and a bit slow, I know... but really flexible. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Barbara Post [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 4:12 PM To: [EMAIL PROTECTED] Subject: dull problem : redirecting after transforming I have a series of transformers (last one inserts in a database) then want to go to another pipeline (anyway I have to do a generation from new xml, not the DB successful insertion message) without having interaction with the user, how can I do that ? map:redirect-to uri=... right after a map:transform causes Tomcat to throw a NPE. I cannot have a redirect-to after a xml serializer. I need to be able to pass a parameter to the next pipeline though... Thanks for any idea, Babs - 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]
problem trying to use JNI inside an action
Hi. I can't use the java native interface inside an action. With the line System.loadLibrary(whatever) inside my action I get a strange behavior. The action doesn't starts, and I get no errors, nor any message on any log. If I comment that line, the action runs properly. I have to call a dll, that implements my JNI methods, from my action. How? What am I doing wrong? By the way, I tested the dll and my java code from a plain java class (no cocoon stuff) on the command line, and it works fine. Thanks for your help signature.asc Description: This is a digitally signed message part
turning off logging
Hello. LogKit seems to be continuously outputting log messages - like the ones below -, even though I have tried to turn off all logging ( to avoid using up the diskspace at our hosting provider ). Has anyone run into this? Any ideas of how to ask LogKit to please not tell me everytime that it's thinking about logging? Thank you very much. Fernando 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:802 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:804 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:813 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:815 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:901 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:903 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:926 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:928 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:971 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:973 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned - 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: turning off logging
Fernando, Change the log level from DEBUG to ERROR in logkit.xconf (and take a look at the mail archives, this has been answered many times over). Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: Fernando Padilla [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 6:11 PM To: [EMAIL PROTECTED] Subject: turning off logging Hello. LogKit seems to be continuously outputting log messages - like the ones below -, even though I have tried to turn off all logging ( to avoid using up the diskspace at our hosting provider ). Has anyone run into this? Any ideas of how to ask LogKit to please not tell me everytime that it's thinking about logging? Thank you very much. Fernando 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:802 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:804 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:813 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:815 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:901 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:903 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:926 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:928 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:971 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:973 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned - 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]
Re: Portal question [ the request parameters are available from insidethe coplets?]
Hi Matthew, Thanks for replying, but handlesParameters just handles the parameters of the portal engine (like size, customize, etc). And handlesParameters is true by default. What I'm asking about is handling any other parameters passed with the main portal uri. handlesParameters has no effect as -it seems to me- regarding these parameters, it just handles the portal engine parameters. Am I missing something here?? Best Regards. Matthew Langham wrote: Ramy, the coplet needs to be configured to handle parameters. Check the handlesParameters entry in the portal documentation. This is optional - so you will need to turn it on using the portal tool or by editing the coplet profile. Matthew -- Open Source Group Cocoon { Consulting, Training, Projects } = Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn Tel:+49-5251-1581-30 [EMAIL PROTECTED] - http://www.s-und-n.de - Cocoon book: http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20 = -Original Message- From: Ramy Mamdouh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 4:57 PM To: [EMAIL PROTECTED] Subject: Portal question [ the request parameters are available from inside the coplets?] Hello, I have a small portal [cocoon 2.1-dev] question here. The requests parameters passed to the main portal pipeline (that one containing the portal generator) are available to the coplets? I mean if we invoked the portal generator pipeline with some parameters (e.g /index?abc=10), where /index matchs to the portal generator, Is this abc parameter available to all the coplets?? Thanks -- Ramy Mamdouh Kamel [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] - 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] -- Ramy Mamdouh Kamel Software Engineer Ute Imkenberg [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]
RE: turning off logging
Hi Fernando, I ran into this same problem a little bit ago, and I solved it by setting the log-level in the web.xml settings for the Cocoon servlet. The default in there is DEBUG, and I just moved it up to INFO just to avoid the logger created/returned messages. As for why that works, I _think_ it's because these messages are generated with no LogKit category specified, so they don't match any of the category matchers in the logkit.xconf file. As such, they default to whatever log-level filter is specified in the web.xml file. If someone else can confirm or correct this explanation, that'd be much appreciated. =) Thanks! Harry -Original Message- From: Fernando Padilla [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 11:11 AM To: [EMAIL PROTECTED] Subject: turning off logging Hello. LogKit seems to be continuously outputting log messages - like the ones below -, even though I have tried to turn off all logging ( to avoid using up the diskspace at our hosting provider ). Has anyone run into this? Any ideas of how to ask LogKit to please not tell me everytime that it's thinking about logging? Thank you very much. Fernando 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:802 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:804 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:813 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:815 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:901 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:903 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:926 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:928 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:971 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned 2002-08-19 17:24:31 DEBUG (2002-08-19) 17:24.31:973 [] (/aoltweurope/en/regions.html) Thread-4/LogKitLogger: Logger for category sitemap.serializer.xml returned - 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]
RE: turning off logging
On Tue, 20 Aug 2002, Lai, Harry wrote: Hi Fernando, I ran into this same problem a little bit ago, and I solved it by setting the log-level in the web.xml settings for the Cocoon servlet. The default in there is DEBUG, and I just moved it up to INFO just to avoid the logger created/returned messages. As for why that works, I _think_ it's because these messages are generated with no LogKit category specified, so they don't match any of the category matchers in the logkit.xconf file. As such, they default to whatever log-level filter is specified in the web.xml file. If someone else can confirm or correct this explanation, that'd be much appreciated. =) Thanks! Harry Thank you Thank you Thank you Harry. This exactly took care of it. I had already setting the logkit.xconf to ERROR, but these pesky messages were still being printed. Thank you. fernando - 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: Internal server error
Title: RE: Internal server error This could be way off the mark, but since no one else answered: Do you try to redirect after you've already written part of the content (like html or ?xml ...)? I used to get a similar error when programming with Active Server Pages, and it had to do with putting a redirect after some content (like the HTML head was already written to the browser). -Original Message- From: Hassan Abolhassani [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 7:44 PM To: [EMAIL PROTECTED] Subject: Internal server error On JDK1.3/Tomcat 4/Cocoon 2.0.3 I receive following error for some pages: Can anybody tell me what might be wrong and how I can resolve it. Hassan Abolhassani -- Error: 500 Location: ... Internal Servlet Error: java.lang.IllegalStateException: can't reset buffer after writing to client at org.apache.tomcat.core.Response.reset(Response.java:264) at org.apache.tomcat.facade.HttpServletResponseFacade.reset(HttpServletResponseFacade.java:295) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1074) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516) at java.lang.Thread.run(Thread.java:479) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [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]
authentication framework and bea weblogic
Hello, after trying out the Authentication Framework on Tomcat and everything worked fine, we now deployed on BEA Weblogic 6.1 SP1 on Solaris. There, we unfortunately get the following error message, where we couldn´t find out where the error is coming from. We think that we get the error when the application tries to access the xml which gets written into the session context (either authentication or temporary context) by the authentication resource. Maybe someone else has had problems with this and is able to give us a hint where to start. Thanx again for any help, miHam java.lang.NullPointerException at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XMLUtil.java:871) at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XMLUtil.java:873) at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodesFromPath(XMLUtil.java:873) at org.apache.cocoon.webapps.session.xml.XMLUtil.getNodeListFromPath(XMLUtil.java:838) at org.apache.cocoon.webapps.session.context.SimpleSessionContext.getXML(SimpleSessionContext.java:173) at org.apache.cocoon.webapps.authentication.context.SessionContextImpl.addParametersFromAuthenticationXML(SessionContextImpl.java:225) at org.apache.cocoon.webapps.authentication.context.SessionContextImpl.createParameters(SessionContextImpl.java:829) at org.apache.cocoon.webapps.authentication.components.AuthenticationManager.createParameters(AuthenticationManager.java:1457) at org.apache.cocoon.webapps.authentication.components.AuthenticationManager.createParameters(AuthenticationManager.java:1400) at org.apache.cocoon.webapps.authentication.components.AuthenticationManager.createMap(AuthenticationManager.java:1422) at org.apache.cocoon.webapps.authentication.acting.AuthAction.act(AuthAction.java:124) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:127) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:157) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:158) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:327) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:309) at org.apache.cocoon.Cocoon.process(Cocoon.java:587) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) - 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: Download Server - directory access denied
Wow! Great comment. I changed the URI to: cocoon base URI/download?file=../../../conf/web.xml and actually accessed the file. Is this a concern to anyone else? Thanks Per. Matthew Note: not sure if this will happen, but passing the file name as a request, you may want to make sure that it doesn't contain a sequence of '../' such that the user is walking up your tree to get at some other resource outside 'download'. I'm not sure if the resolver prevents this automatically or not. Per - 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: Download Server - directory access denied
Matthew Hailstone wrote: I see. So the map:parameter element, notwithstanding it is inside the map:act type=resource-exists element, is actually still inside the map:act type=request element's scope. Yes, this is correct. From your comment, I suppose I should have known this because it follows the XSLT specification. No, this has no relation to XSLT spec. Just this seems to be somewhat similar to behavior of xsl:attribute tag in XSLT: attribute gets attached to the parent tag (may be this seems only to me?) Vadim Thanks again! That is very helpful to know. Matthew !-- Download Server -- map:pipeline map:match pattern=download 1 Entered match scope map:act type=request map:parameter name=parameters value=true/ 2 Entered act request scope map:act type=resource-exists --- section of change --- map:parameter name=url value=download/{file}/ 3 Entered act resource-exists scope map:read src=download/{../file}/ --- section of change --- 3 About to exit act resource-exists scope /map:act 2 Again at act request scope map:generate src=filenotfound.xml/ map:transform src=filenotfound2html.xsl/ map:serialize/ 2 About to exit act request scope /map:act 1 About to exit match scope /map:match /map:pipeline See at scopes of variables. Parameters are not separate entities but belong to the parent tag (same as in XSLT). Vadim - 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: Strange error using JPEG/SVGSerializier under heavy load - ClassCastException
After a lot of resarching and debugging i found the source of this problem - a (minor) bug in Batik, that only appeared because some now unneeded code lines in the Cocoon SVG Builder. I submitted a patch to Bugzilla: #11856. I will submit a patch to Batik too, to resolve the real source of this problem. Stefan -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 4:42 PM To: [EMAIL PROTECTED] Subject: Re: Strange error using JPEG/SVGSerializier under heavy load - ClassCastException Stefan Seifert wrote: Hello Vadim. The Problem from the other thread is possibly related - but i do not use saxon nor changed the default configuration of cocoon-2.0.3 concerning XSLT processor usage (at least i'm not aware of this - i did some updates from earlier cocoon version, but always tried to get all changed configurations from the new cocoon.xconf etc.). Again, my XML streams transformed are not that big (usually 100kb), and the resulting JPEG is really small (~2-3kb). But perhaps the bug appears by either big XML input files or a long runtime (points to small errors summing up and finally resulting in the error - but why then a ClassCastException??). Unfortunately i have not found a way to reproduce the problem by force; in that case i would try to debug it. Perhaps i will try to blow up my XML input streams and see if i can produce the problem that way. You could try... But i'm not sure if it has really to do something with the other thread. May be not, but these ClassCastExceptions look very suspiciously to me. Vadim Stefan -Original Message- From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 14, 2002 3:49 PM To: [EMAIL PROTECTED] Subject: Re: Strange error using JPEG/SVGSerializier under heavy load - ClassCastException Stefan Seifert wrote: Configuration: Cocoon 2.0.3, Tomcat 3.2.3. We use the SVGSerializer with JPEG-Output to generate graphical menus (we could not get the customer to use only plain text menus). All works fine after a starting up tomcat. But after a few days (variing) without even touching the server the SVG Generantion fails with the Error below - a ClassCastException. Every following request of a JPEG generation failes with the same error. All other requests processing only HTML still work! This error is very strange, because all works until the SVG Serialization seems to hang up totally (but only the SVG Serialization). The memory utilisation is normal. There are no OutOfMemory-Erros or anything that points to a memory leak. Unfortunately it was not possible to reproduce this problem by force using a web stress tool, it only happens on the live servers and only after a few days. After a tomcat restart all works well again. Any ideas? I searched the mailing lists of Cocoon and Batik but found hints. We tried replacing the batik 1.5beta2 shipped with Cocoon 2.0.3 with the latest 1.5 beta3, same problem. I wonder is it related to this thread or not: http://marc.theaimsgroup.com/?t=10279522402r=1w=2 Vadim Stefan ... - 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]
RE: Download Server - directory access denied
Wow! Great comment. I changed the URI to: cocoon base URI/download?file=../../../conf/web.xml and actually accessed the file. Is this a concern to anyone else? Thanks Per. Sure. It might be a concern to others, but doing it in the resolver would probably break just about everything in C2: the resolver is used by the sitemap to get relative URLs for every pipeline, matcher etc. And viewing the source using the samples might use relative paths. I suggest that you subclass the default reader (which is what you're using I believe) and remove all string occurrences of '../' or '/..' or somesuch before resolving. Then let the rest of the reader's code execute, thereby returning 'invalid resource' errors when appropriate. Note: You might want to remove the 'download' prefix on the map:read in your sitemap and see if all of a sudden absolute URLs work too. Ouch if they do. Per - 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: Download Server - directory access denied
It might be a concern to others, but doing it in the resolver would probably break just about everything in C2: the resolver is used by the sitemap to get relative URLs for every pipeline, matcher etc. And viewing the source using the samples might use relative paths. I suggest that you subclass the default reader (which is what you're using I believe) and remove all string occurrences of '../' or '/..' or somesuch before resolving. Then let the rest of the reader's code execute, thereby returning 'invalid resource' errors when appropriate. Note: You might want to remove the 'download' prefix on the map:read in your sitemap and see if all of a sudden absolute URLs work too. Ouch if they do. It seems that absolute URLs are not a problem. The following examples give me an error page: URI: cocoon base URI/../filename.jpg cocoon base URI/download/../../filename.jpg cocoon base URI/images/../../filename.jpg error page: HTTP Status 404 - /filename.jpg type Status report message /filename.jpg description The requested resource (/filename.jpg) is not available. Apache Tomcat/4.1.3 Working URI: cocoon base URI/download/../filename.jpg Matthew Per - 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]
Pipelineand matchers
Hello. Is it better to have as many pipelines as matchers or is it recommended having one pipeline including all matchers ? What are the technical differences ? What are the consequences in terms of performances ? Thanks in advance. David LAGARDERE ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com - 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]
Dynamic data in XMLForm
Hello, i have a little problem to create dynamic xf:selectOne ... with XMLForm. I use a Bean which contains an java.util.Collection attribute myCollection. With the following sample i can show all names of the Objects of myCollection. xf:group ref=/ xf:captionMy Collection COntent/xf:caption xf:repeat nodeset=myCollection xf:output ref=./name/ /xf:repeat /xf:group But I need a Select-Component in my Form shich contains the values of my Collection, so i tried this: xf:selectMany ref=/ selectUIType=checkbox xf:captionMy Collection Content/xf:caption xf:repeat nodeset=myCollection xf:item xf:captionxf:output ref=./name//xf:caption xf:valuexf:output ref=./id//xf:value /xf:item /xf:repeat xf:selectMany ... my Problem is, that this doesnt work. Thank you for help Borstel - 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]
empty generation from xIndice or eXist
Hi happy Cocoon users, I have installed xIndice and eXist to test these DB in the Cocoon environment. After configuring cocoon.xconf and following advices from cocooncenter or others users from this list, I'm testing xIndice (or eXist) acces thru the xmldb protocol, i.e. (from my sitemap) map:match pattern=xindice/**!--collection/#/xpath-- map:generate src=xmldb:xindice://localhost:4080/db/{1}/ map:serialize type=xml/!--just to check the result from xIndice/eXist-- :map:match When I send the following HTTP request:: http://127.0.0.1:8080/cocoon/xindice/test/#/test.xml (new protocol usage) I only get and empty html document . However, according to the logs everything seems right, xIndice/eXist logs the access and, I presume, returns aa a result set, the content of my test.xml document. Anybody as an idea of what's wrong ? Thanks happy Cocoon users ;-) Daniel Fournier - 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: no longer
This site listed as the second entry under Live Sites powered by Apache Cocoon seems to be a Zope site (and has some technical problems): Sirvisetti UDDI Registrar WAP site http://www.sirvisetti.com/uddihtml/uddi Andreas - 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: Download Server - directory access denied
It seems that absolute URLs are not a problem. The following examples give me an error page: URI: cocoon base URI/../filename.jpg cocoon base URI/download/../../filename.jpg cocoon base URI/images/../../filename.jpg error page: HTTP Status 404 - /filename.jpg type Status report message /filename.jpg description The requested resource (/filename.jpg) is not available. Apache Tomcat/4.1.3 Working URI: cocoon base URI/download/../filename.jpg Doesn't that simply mean that /filename.jpg isn't there? What if it was in your root directory, outside of your webapp's space? Would it return? What if you try /etc/passwd? Or on Windows NT/2000, something in /winnt? Per - 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: Tomcat doesn't unpack cocoon.war
Simon Price wrote: Possible cause: You need to make sure that the tomcat user/group has permission to write to the webapps directory. Hah! That did it! I had to change the permissions for /var/cache/tomcat4 as well. Then it worked great. Thanks again! Martin Polley Technical Communicator Surf Communication Solutions [EMAIL PROTECTED] +972 4 9095732 +972 53 864162 winmail.dat - 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: Tomcat won't unpack cocoon.war
Title: Re: Tomcat won't unpack cocoon.war Simon Price wrote: Possible cause: You need to make sure that the tomcat user/group has permission to write to the webapps directory. Hah! That did it! I had to change the permissions for /var/cache/tomcat4 as well. Then it worked great. Thanks again! Martin Polley Technical Communicator Surf Communication Solutions [EMAIL PROTECTED] +972 4 9095732 +972 53 864162
RE: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
Carsten. I think it's not the same problem, since I'm just doing a map:read to get the .gif :-( (The bug you mentioned below seemed to be resolved by a patch to batik, so I guess it was a generated svgjpeg image in their case) I'm just going to look at something Vadim has suggested ... Christopher PS I've just bought yours and Matthew's book. It's VERY helpful, delightfully systematically presented. Wish it had been out there a year ago! Thank you -Original Message- From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] Sent: 20 August 2002 13:59 To: [EMAIL PROTECTED] Subject: RE: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject Perhaps this is the same bug as described here: http://marc.theaimsgroup.com/?t=10293301812r=1w=2 Carsten - 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: Using views
Igor, I think you can do what you want with a map:aggregrate, but not in every pipeline. Try somehting like this: map:match pattern=** map:aggregate element=site map:part src=cocoon:/part/{1}/ map:part src=cocoon:/menu.xml/ /map:aggregate map:transform src=something.xsl/ map:serialize/ /map:match This will match every url and then aggregate it with your other matchers. Then just have all your other matchers start with part/. Of course, I've never used views, so I don't really know if it's easier or even possible with them. Justin On Tuesday, August 20, 2002, at 07:10 AM, Per Kreipke wrote: Hi! I'm about to start using views. I'm trying to do something that I'm not sure can be done. Can I use map:aggregate in views? What for? Well, this way I would be able to add my side-menu XML elements after the content generation, but before the final transformation. I'm looking for a way to add content to *all* of my pages before their final transformation to HTML, without having to use map:agregate in every pipeline. - 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: ?something redirection
I think you want a RequestParameterMatcher or WildCardRequestParameterMatcher. -Original Message- From: Jesper Rasmussen [mailto:[EMAIL PROTECTED]] snip/ I'm porting some old systems to cocoon. Before our url's wast foo.com/?something In our new cocoon layout the url might be foo.com/somethingelse.html What would be the best way to have the only url's still work. One possibility i see is to use a match and redirect, but how do i macth on /?something - 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: Pipelineand matchers
David LAGARDERE wrote: Hello. Is it better to have as many pipelines as matchers or is it recommended having one pipeline including all matchers ? Split as you want. Usually, you have at least two pipelines: one internal and one is not. In the future (2.1), you will be able to choose pipeline implementation - then, you may have internal/external and caching/noncaching combos. What are the technical differences ? It was mentioned already on this list and somewhere else. 1. Internal or not 2. Pipelines can have different exception handling 3. In future: choose different pipeline implementations. What are the consequences in terms of performances ? One pipeline is a bit faster then many. Vadim Thanks in advance. David LAGARDERE - 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: empty generation from xIndice or eXist
Daniel Fournier wrote: Hi happy Cocoon users, How 'bout unhappy developers? :-? I have installed xIndice and eXist to test these DB in the Cocoon environment. After configuring cocoon.xconf and following advices from cocooncenter or others users from this list, I'm testing xIndice (or eXist) acces thru the xmldb protocol, i.e. (from my sitemap) map:match pattern=xindice/**!--collection/#/xpath-- map:generate src=xmldb:xindice://localhost:4080/db/{1}/ map:serialize type=xml/!--just to check the result from xIndice/eXist-- :map:match When I send the following HTTP request:: http://127.0.0.1:8080/cocoon/xindice/test/#/test.xml (new protocol usage) This won't fly: Sitemap parameter {1} will get (AFAIR) only 'test/' part, nothing after '#'. See samples sitemap for '#' handling. I only get and empty html document . However, according to the logs everything seems right, xIndice/eXist logs the access and, I presume, returns aa a result set, the content of my test.xml document. Query like xmldb:xindice://localhost:4080/db/test/ will return content of the *collection* named 'test'. If you append xpath, like xmldb:xindice://localhost:4080/db/test/#/test.xml, then result will be all documents with root *node* named 'test.xml'. I.e., if you have collection like: collection ... test.xml ... /test.xml data /data /collection Result of the query will be: result ... test.xml/ /result Vadim Anybody as an idea of what's wrong ? Thanks happy Cocoon users ;-) Daniel Fournier - 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: Link Livesites: no longer
On 20 Aug 2002, Andreas Kuckartz wrote: This site listed as the second entry under Live Sites powered by Apache Cocoon seems to be a Zope site (and has some technical problems): Sirvisetti UDDI Registrar WAP site http://www.sirvisetti.com/uddihtml/uddi Thanks for the pointer. Giacomo - 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]