RSS
Hi, I want to call a RSS feed. Is it possible for the style sheet to use the XML document it is styling and the XML RSS feed. How would I set up my sitemap to do this? And how would I call the two different XML files in my style sheet? Thanks, Richard.
IGNORE THIS RE: RSS
IGNORE THIS Richard -Original Message- From: Richard Cunliffe [mailto:[EMAIL PROTECTED] Sent: 26 March 2003 17:34 To: [EMAIL PROTECTED] Subject: RSS Hi, I want to call a RSS feed. Is it possible for the style sheet to use the XML document it is styling and the XML RSS feed. How would I set up my sitemap to do this? And how would I call the two different XML files in my style sheet? Thanks, Richard.
RE: Newbie
Dave and Joerg, I am also having problems with going onto the 3rd web page. When the link is clicked only the XML displays, despite there being a style sheet for it. I have a attached my sitemap so you can check my pipelines. The !-- soundpool Database (PC Quick Queries) -- is the third page deep. Richard. -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 23:41 To: [EMAIL PROTECTED] Subject: Re: Newbie Hallo Dave, without further information it's only happy guessing ;-) How does the pipelines in the sitemap look like? Did you test the transformation independent from Cocoon/offline? Regards, Joerg [EMAIL PROTECTED] wrote: Hi, Im not sure if this is the right place to ask this question? I have set cocoon up and everything is up and running. My problem is that when i click on the 2nd link from the root, the xml file doesnt pick up its stylesheet. eg. www.website.com |- link to books |-link to chapters It is this chapters link that is causing my trouble. When i click the link it goes to the webpage, but only dispalys the xml (i looked at the source in IE6), this means its not using a stylesheet. Either I am forgetting to do something, or do I need to inform cocoon of the depth of the site? I have added the pipeline to the sitemap (obviously because its displaying the xml). Any feedback would be great. Dave. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie
Dave and Joerg, I am also having problems with going onto the 3rd web page. When the link is clicked only the XML displays, despite there being a style sheet for it. I have a attached my sitemap so you can check my pipelines. The !-- soundpool Database (PC Quick Queries) -- is the third page deep. Richard. -Original Message- From: Joerg Heinicke [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 23:41 To: [EMAIL PROTECTED] Subject: Re: Newbie Hallo Dave, without further information it's only happy guessing ;-) How does the pipelines in the sitemap look like? Did you test the transformation independent from Cocoon/offline? Regards, Joerg [EMAIL PROTECTED] wrote: Hi, Im not sure if this is the right place to ask this question? I have set cocoon up and everything is up and running. My problem is that when i click on the 2nd link from the root, the xml file doesnt pick up its stylesheet. eg. www.website.com |- link to books |-link to chapters It is this chapters link that is causing my trouble. When i click the link it goes to the webpage, but only dispalys the xml (i looked at the source in IE6), this means its not using a stylesheet. Either I am forgetting to do something, or do I need to inform cocoon of the depth of the site? I have added the pipeline to the sitemap (obviously because its displaying the xml). Any feedback would be great. Dave. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] sitemap.xmap Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SQL and Stylesheets
Thorsten and Marco, After reading the Cocoon: Building XML Applications and OReilly XSLT I have written my own tidy and simple XSL style sheet J (instead of using XML Spy). Its giving results, but its not right. I have included the style sheet, the XML document, and a picture of the results. Im sure its nothing to serious. It may be something to do with X-Paths but I cant be sure. Thanks, Richard. results.zip Description: Zip compressed data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SQL and Stylesheets
Thorsten Ok, I when I looked at the book I thought I would take it back one step, for it to make more sense to me. Therefore I thought I would start off doing all the XPATHs together instead of separating it out and doing many more MATCHes. If you look on page 171 of the 'Cocoon Building applications' we can the result that the SQL transformer comes out with, we don't normally see this. Therefore I think I was calling templates that exist(although temporarily). Can you check I'm right? I have got the results to come out correctly by just copying the book, but as soon as I start adding things to the style sheet, things start to go wrong, that's why I thought I would set it up myself from start to gain a better understanding. If I am calling the correct templates, can you see why it displays my XML document 3 times? If I'm wrong :-( about the templates on page 171, then tell me, and I will try and work from there example a bit more. Thanks Richard By the way I have included my sitemap! sitemap.xmap Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Image doesn't display
Ince, The apache folder htdocs or wwwROOT is the folder which apache serves its web pages from. Say your address was http://localhost/cocoon/GUITARS/index.html Then the folder directory structure would look like this C:\Programme\Apache\apache folder where you pages are served from\GUITARS\images\your files in here.gif You dont have any XML files in the guitars folder here, you have your XML files under the tomcat cocoon folder, so: C:\Programme\Apache Group\Tomcat4.1\webapps\cocoon\GUITARS You will have no images within this cocoon guitars folder. Rich. -Original Message- From: Ines Robbers [mailto:[EMAIL PROTECTED] Sent: 11 March 2003 22:17 To: [EMAIL PROTECTED] Subject: AW: Image doesn't display Many thanks, Richard! I have all the files under Programme/Apache Group/Tomcat 4.1/webapps/cocoon/MYFOLDER/img I have searched for something like a htdocs or wwwROOT - but without success. Not sure how to search for the folder you were talking about. ? Do you mean to save ALL my files under that directory or just the images? Ines * -Ursprüngliche Nachricht- * Von: Richard Cunliffe [mailto:[EMAIL PROTECTED] * Gesendet: Dienstag, 11. März 2003 23:05 * An: [EMAIL PROTECTED] * Betreff: RE: Image doesn't display * * * Ok I have had this trouble today as well. * * Do you have your xml files under the cocoon folder or one of * your own. If so put the images into a folder like shown: * * C:\Program Files\Apache Group\Apache2\htdocs\YOUR FOLDER\images * * YOUR FOLDER = if you have your xml files in a folder called * 'guitars' under the cocoon folder then your folder would be guitars. * * The htdocs folder is the folder that serves to the web from * apache, it might be different for you e.g. wwwROOT * * * You then reference your images in the xsl file like so: * * img src=/YOUR FOLDER/images/backgroundpda.jpg/ * * Your images will then display when the webpage is loaded * * * Hope this helps, * * Richard. * * * * * * -Original Message- * From: Ines Robbers [mailto:[EMAIL PROTECTED] * Sent: 11 March 2003 21:54 * To: Cocoon Mailingliste * Subject: Image doesn't display * * Hello! * * I have a problem displaying an image in a stylesheet: * * I have read the stuff on * http://wiki.cocoondev.org/Wiki.jsp?* page=ServingStaticFiles * Serving Static Files but I can't * get it to work. It sais in the end there is another why * serving images through apache. How does that work? * * For now I tried to generate, transform and serialize the * image because as is explain on wiki: the Reader method won't * work for a static HTML document * * What generator do I use to generate images? * * Can anybody please help? * * * This is what I wrote in the sitemap: * * !-- images -- * map:match pattern=img *map:generate src=img type=imagedirectory/ *map:transform src=img.xsl/ *map:serialize type=html/ * /map:match * map:match pattern=img/** *map:read src=img/{1}/ * /map:match * * Many thanks! * * Ines * * * * - * To unsubscribe, e-mail: [EMAIL PROTECTED] * For additional commands, e-mail: [EMAIL PROTECTED] * * * * * - * To unsubscribe, e-mail: [EMAIL PROTECTED] * For additional commands, e-mail: [EMAIL PROTECTED] * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SQL RE: 2 (should be) easy questions
Thorsten, Ok, I got some results to come out, but as soon as add more to the XSL style sheet nothing appears from the database. Is it possible for you to have a look at my style sheet, and see if there are any obvious mistakes? Many Thanks, Richard. -Original Message- From: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Sent: 12 March 2003 16:34 To: [EMAIL PROTECTED] Subject: AW: SQL RE: 2 (should be) easy questions Hello Richard, ok, i am still a whee bit confused but I try to answer. You don't need to declare it! If so the CDATA would be the best! You are using sql:... that tells me that you need a map:transform type=sql/ in your sitemap! Like that: map:match pattern=verkauf-cp map:generate src=""> map:transform type=sql/ map:serialize type=xml/ /map:match is that right? ...and is it working? King regards Thorsten -Ursprüngliche Nachricht- Von: Richard Cunliffe [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. März 2003 17:07 An: [EMAIL PROTECTED] Betreff: SQL RE: 2 (should be) easy questions Thorsten, The second question is about the SQL statement I have in my XML document. I am unsure how to declare it in my DTD. Do you know if it is possible to define the SQL statement in my XML document in the DTD? I have everything defined, but I know that the SQL statement is defined wrongly. It is currently defined as data, so that means when a style sheet is applied, it only gives the SQL statement and not the results. Can you help? I have attached my DTD and XML files. Richard. -Original Message- From: Scherler, Thorsten [mailto:[EMAIL PROTECTED] Sent: 12 March 2003 15:52 To: [EMAIL PROTECTED] Subject: AW: 2 (should be) easy questions Hello Richard, to 1) yes you have to define the image in the sitemap (e.g. from my sitemap (will not work with your configuration)): !-- === Ressources -- map:pipeline !-- images gif -- map:match pattern=img/**.gif map:read src="" mime-type=images/gif/ /map:match !-- images jpg -- map:match pattern=img/**.jpg map:read src="" mime-type=images/jpeg/ /map:match map:match pattern=img/**.jpeg map:read src="" mime-type=images/jpeg/ /map:match /map:pipeline to 2) ??? don't understand the problem King regards Thorsten -----Ursprüngliche Nachricht- Von: Richard Cunliffe [mailto:[EMAIL PROTECTED] Gesendet: Montag, 10. März 2003 18:49 An: [EMAIL PROTECTED] Betreff: 2 (should be) easy questions Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried img src=images\uktop10.gif/ this also doesnt work 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. Richard. ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:sql=http://apache.org/cocoon/SQL/2.0; xsl:template match=/ html head/ body img src=/soundpool/images/backgroundpda.jpg/ titlesoundpool/title xsl:for-each select=/ table border=0 width=99% xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td align=right xsl:for-each select=pda span style=color:#2B4E71; font-family:Verdana; font-size:8pt xsl:for-each select=title span style=color:#2B4E71; font-family:Verdana; font-size:8pt span style=color:#2B4E71; font-family:Verdana; font-size:8pt xsl:apply-templates/ /span /span /xsl:for-each /span /xsl:for-each /td /tr xsl:if test=position()=last() xsl:text disable-output-escaping=yeslt;/tbodygt;/xsl:text /xsl:if /table table border=0 width=99% xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td align=center width=33% a href=soun
RE: SQL RE: 2 (should be) easy questions
Thorsten, Ok the following statement is trying to display the results of the query from the MySQL database in a table, I dont know if this is right. What are you trying to do with, anyway: xsl:for-each select=query xsl:for-each select=execute-query xsl:apply-templates/ /xsl:for-each /xsl:for-each The code looks complicated, because I am using XML Spy designer which allows you to put together your style sheet visually, with the aid of the DTD. The code above was the XML Spys way of trying to represent it from the DTD. I have attached my xml, xsl, and dtd for you to have a look at to get a better understanding. Many thanks, Richard. sql.zip Description: Zip compressed data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with images
Niclas and Charles, I would prefer to get images working within cocoon, so that when I want to do more advance things I don't need to worry about it. I have done all that Charles has suggest and still only the backdrop works, any other suggestions? Richard. xsl.zip Description: Zip compressed data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with images
Yep, the address is www.cunliffe.net/soundpool Richard. -Original Message- From: Niclas Hedhman [mailto:[EMAIL PROTECTED] Sent: 11 March 2003 09:33 To: [EMAIL PROTECTED] Subject: Re: problems with images On Tuesday 11 March 2003 17:12, Richard Cunliffe wrote: Niclas and Charles, I would prefer to get images working within cocoon, so that when I want to do more advance things I don't need to worry about it. I have done all that Charles has suggest and still only the backdrop works, any other suggestions? It is very weird that the body background=/soundpool/images/background.gif would work and img img=/soundpool/images/musicnews.gif/ does not. First of all you must ensure that the files are the files you think they are, not cached and so on. Replace the background.gif with a different image, and see if that change happens (often it doesn't). Do you have this site public? I could take a quick look. Niclas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with images
Christian, I have put them within the pipeline now and still only the backdrop works. I have also discovered if you change the image, then nothing shows. Richard. -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: 11 March 2003 11:37 To: [EMAIL PROTECTED] Subject: Re: problems with images On 11.Mar.2003 -- 11:20 AM, Richard Cunliffe wrote: Niclas, Have tried changing the image to another, and it doesn't show anymore. When I revert it back to the backdrop image, it starts to work again??? Probably browser cache. I believe Charle's answer bears the key: The matches for your readers are outside of a map:pipeline. 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] xsl.zip Description: Zip compressed data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with images
Geoff, All the different versions of how I have tried to link the image are different methods I tried and not been successful with. To summarise what I have done: 1. I have added the readers into my pipelines in my sitemap 2. I have tried the following ways to link the images: background=/soundpool/images/background.gif (works)? src=/soundpool/images/background.gif (doesn't work) src=/soundpool/images/musicnews.gif (doesn't work) src=C:/tomcat/webapps/soundpool/images/background.gif (doesn't work) file://C:\tomcat\webapps\cocoon\soundpool\images\databasequeries.gif (doesn't work) I believe the first one should work when I have the readers in my pipeline, but it only works on the backdrop? Could someone tell me all the code that they have written in all relevant files to make images display. Thanks, Richard. -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED] Sent: 11 March 2003 13:28 To: [EMAIL PROTECTED] Subject: Re: problems with images To make matters worse - I found the following in the html: body background=C:\tomcat\webapps\cocoon\soundpool\images\backgroundpda.gif That would explain a lot... Geoff At 07:58 AM 3/11/2003, you wrote: On 11.Mar.2003 -- 11:44 AM, Richard Cunliffe wrote: From: Christian Haul [mailto:[EMAIL PROTECTED] On 11.Mar.2003 -- 11:20 AM, Richard Cunliffe wrote: Have tried changing the image to another, and it doesn't show anymore. When I revert it back to the backdrop image, it starts to work again??? Probably browser cache. I believe Charle's answer bears the key: The matches for your readers are outside of a map:pipeline. I have put them within the pipeline now and still only the backdrop works. I have also discovered if you change the image, then nothing shows. This is from your sitemap.xmap: map:match pattern=**.gif map:read mime-type=image/gif src=soundpool/images/*.gif/ /map:match map:match pattern=*.jpg map:read mime-type=image/jpg src=soundpool/images/{1}.jpg/ /map:match The gif pipeline does not use {1} like the jpg one does -- this is a problem. If you need to match arbitrarily deep paths, consider switching to the regexp matcher. If it all doesn't help, look at the access.log and sitemap.log. Try to reconstruct which matchers fire. It will sure provide some hints. 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Images - Lets get this straight
Geoff, Ok we are going to get this sorted! My directory structure looks like this: C:\tomcat\webapps\cocoon\soundpool\images\musicnews.gif C: |-Program Files |-Apaache Group |- ... |-tomcat |-webapps |-cocoon \sitemap.xmap |-soundpool \sitemap.xmap |-images \musicnews.gif I have put the following code into my MAIN sitemap which is located in the cocoon directory: - !-- soundpool Folder -- map:pipeline map:match pattern=soundpool/** map:mount check-reload=yes reload-method=synchron src=soundpool/sitemap.xmap uri-prefix=soundpool/ /map:match /map:pipeline - This tells cocoon where my soundpool folder is and its sitemap. I then have the soundpool sitemap in the soundpool folder. In the Apache httpd file the only code I have added is: - JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /jk ajp13 JkMount /jk/* ajp13 JkMount /cocoon ajp13 JkMount /cocoon/* ajp13 - Now my readers in my soundpool sitemap look like this, with my current directory set up: - !-- images Readers -- map:match pattern=soundpool/images/*.gif map:read mime-type=image/gif src=soundpool/images/{1}.gif/ /map:match map:match pattern=soundpool/images/*.jpg map:read mime-type=image/jpg src=soundpool/images/{1}.jpg/ /map:match - The above code is within my pipeline in the soundpool sitemap. I also have put the following code in the components section: - map:readers default=resource map:reader logger=sitemap.reader.resource name=resource pool-max=32 src=org.apache.cocoon.reading.ResourceReader/ /map:readers /map:components - Finally in my xsl file I have referenced the image like so: - body background=soundpool/images/musicnews.gif - So I have done (I think) everything you have suggest. Can you check to see if I have? Note: Look at the live site through Internet Explorer, as the Netscape version is currently set to PDA version, which needs a lot of work. If you don't have IE I can change them around. Thank you, Richard. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Images: Outside of cocoon
Geoff, This is obviously not working! How do I do it if I want the image outside of cocoon, and get then to load within a page being passed through cocoon? Richard.
SQL
Hi, Once an XML SQL statement has been passed through the Cocoon SQL Transformer, I would like it to parse through the XSLT to generate the results as HTML. Does anyone know how to represent the XML SQL query in the DTD? Thanks, Richard.
RE: Image doesn't display
Ok I have had this trouble today as well. Do you have your xml files under the cocoon folder or one of your own. If so put the images into a folder like shown: C:\Program Files\Apache Group\Apache2\htdocs\YOUR FOLDER\images YOUR FOLDER = if you have your xml files in a folder called 'guitars' under the cocoon folder then your folder would be guitars. The htdocs folder is the folder that serves to the web from apache, it might be different for you e.g. wwwROOT You then reference your images in the xsl file like so: img src=/YOUR FOLDER/images/backgroundpda.jpg/ Your images will then display when the webpage is loaded Hope this helps, Richard. -Original Message- From: Ines Robbers [mailto:[EMAIL PROTECTED] Sent: 11 March 2003 21:54 To: Cocoon Mailingliste Subject: Image doesn't display Hello! I have a problem displaying an image in a stylesheet: I have read the stuff on http://wiki.cocoondev.org/Wiki.jsp?page=ServingStaticFiles Serving Static Files but I can't get it to work. It sais in the end there is another why serving images through apache. How does that work? For now I tried to generate, transform and serialize the image because as is explain on wiki: the Reader method won't work for a static HTML document What generator do I use to generate images? Can anybody please help? This is what I wrote in the sitemap: !-- images -- map:match pattern=img map:generate src=img type=imagedirectory/ map:transform src=img.xsl/ map:serialize type=html/ /map:match map:match pattern=img/** map:read src=img/{1}/ /map:match Many thanks! Ines - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2 (should be) questions
Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried img src=images\uktop10.gif/ this also doesnt work 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. Richard. ?xml version=1.0 encoding=UTF-8 standalone=no? !-- Produced by Richard Cunliffe, Liverpool, UK - Last updated 09-March-2003 -- !-- DTD LOCATION -- !DOCTYPE document SYSTEM database.dtd !-- XML BODY -- document !-- SQL QUERY -- query titlethe database/title sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query SELECT * FROM album /sql:query /sql:execute-query /query !-- PDA VERSION -- pda titlePDA Version/title /pda !-- PC VERSION-- pc titlePC Version/title /pc !-- WAP VERSION -- wap titleWAP soundpool/title /wap /document - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: URL's help for cocoon
Here are a few sites that have helped me in the past: http://wiki.cocoondev.org/Wiki.jsp http://xml.apache.org/cocoon/index.html http://www.cocooncenter.de/cc/documents/home/ http://wiki.cocoondev.org/Wiki.jsp?page=CocoonCompetenceCenter http://www.mail-archive.com/ Regards, Richard. -Original Message- From: zze-MORY Nicolas FTRD/DMI/REN [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 12:18 To: [EMAIL PROTECTED] Subject: URL's help for cocoon Can you give me many site to help me to better understand cocoon please ? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
2 (should be) easy questions
Hi, I have two questions: 1. Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried img src=images\uktop10.gif/ this also doesnt work 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. Richard. ?xml version=1.0 encoding=UTF-8 standalone=no? !-- Produced by Richard Cunliffe, Liverpool, UK - Last updated 09-March-2003 -- !-- DTD LOCATION -- !DOCTYPE document SYSTEM database.dtd !-- XML BODY -- document !-- SQL QUERY -- query titlethe database/title sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:query SELECT * FROM album /sql:query /sql:execute-query /query !-- PDA VERSION -- pda titlePDA Version/title /pda !-- PC VERSION-- pc titlePC Version/title /pc !-- WAP VERSION -- wap titleWAP soundpool/title /wap /document - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2 (should be) easy questions
Chris, I have set up a reader for jpeg and gif, and the backdrop is loading from remote computers. The downside is that smaller images are still not loading. I have attached my style sheet and sitemap, to aid any suggestions. Thanks, Richard. -Original Message- From: Charles Yates [mailto:[EMAIL PROTECTED] Sent: 10 March 2003 18:04 To: [EMAIL PROTECTED] Subject: Re: 2 (should be) easy questions Richard Cunliffe wrote: Hi, I have two questions: 1. I'm not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not loading. I consequently checked on other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. The rest of my XML is being parsed correctly. Below is an example in my style sheet referencing an image: img src=C:\tomcat\webapps\cocoon\soundpool\images\uktop10.gif/ - This is what XML Spy produced in its XSLT designer, I have also tried to do it that way figure out how to browse to the image on your filesystem using the file:// scheme. should be something like file://C:\tomcat\webapps . . . Then use that url. img src=images\uktop10.gif/ - this also doesn't work to do it that way you need to define a reader for the gifs in your sitemap. see http://xml.apache.org/cocoon/userdocs/readers/resource-reader.html 2. My next question is a DTD question I have SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in my DTD?? I have attached a XML file. I would dispense with the dtd if you're just trying to get things working. Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/ html head/ body background=/soundpool/images/background.gif xsl:for-each select=document br/ br/ br/ br/ table border=0 width=760 xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td align=right colspan=2 xsl:for-each select=pc xsl:for-each select=title span style=color:#315273; font-family:Verdana span style=color:#315273; font-family:Verdana; font-size:10pt xsl:apply-templates/ /span /span /xsl:for-each /xsl:for-each br/ /td /tr xsl:if test=position()=last() xsl:text disable-output-escaping=yeslt;/tbodygt;/xsl:text /xsl:if /table table align=left border=0 cellpadding=0 width=70% xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td width=109 br/ span style=color:#2B4E71; font-family:Verdana; font-size:xx-smallhome/span br/ br/ a href=aboutus.html span style=color:#2B4E71; font-family:Verdana; font-size:xx-smallabout soundpool/span /a br/ br/ a href=database.html span style=color:#2B4E71; font-family:Verdana; font-size:xx-smalldatabase/span /a br/ br/ a href=contactus.html span style=color:#2B4E71; font-family:Verdana; font-size:xx-smallcontact us/span /a br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ br/ /td td align=center table border=0 width=100% xsl:if test=position()=1 xsl:text disable-output-escaping=yeslt;tbodygt;/xsl:text /xsl:if tr td align=left width=296 img img=/soundpool/images/musicnews.gif/ br/ xsl:for-each select=news span style=color:#2B4E71; font-family:Verdana; font-size:small; font-weight:bold xsl:for-each select=headline span style=color:#2B4E71; font-family:Verdana; font-size:small; font-weight:bold span style=color:#447F9D; font-family:Verdana; font-size:small; font-weight:bold xsl:apply-templates/ /span /span /xsl:for-each /span /xsl:for-each br/ br/ xsl:for-each select=news span style=color:#2B4E71; font
RE: 2 (should be) easy questions
Chris, I have set up a reader for jpeg and gif, and the backdrop is loading from remote computers. The downside is that smaller images are still not loading. I have attached my style sheet and sitemap, to aid any suggestions. Thanks, Richard. xsl.zip Description: Zip compressed data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sorry for asking these here :-(
Hi, I have to questions: Im not sure if this cocoon or my inability to do XSL, but I have my web page images in an images folder, under the root directory soundpool. Everything was looking good until I checked the site in netscape, when I found the images were not working. I consequently checked other on other computers, and they were not working there either. Do I need to included something in my sitemap to tell cocoon where the images are. If this is not the case, could someone please tell me how to get them to work. My next question is a DTD question sorry I have some SQL statements in my XML code to query a MySQL database, and I now want to display the results, but how do I define this SQL query in the XML in my DTD?? Sorry for asking these questions here, your help would be very much appreciated. Richard.
RE: 404 not found error
Asif, Where have you put your files? your file structure should look like this if you kept to all the original directory settings: C:\tomcat\webapps\cocoon\seegoogle.xml This gives the address http://localhost:8080/cocoon/seegoogle/seegoogle If you put map:match pattern=seegoogle.html then the address would be http://localhost:8080/cocoon/seegoogle/seegoogle.html Richard. -Original Message- From: Asif Talpur [mailto:[EMAIL PROTECTED]] Sent: 04 February 2003 12:23 To: [EMAIL PROTECTED] Subject: 404 not found error Hi guys, I am a novice user and I need your help with this problem. Following is an excerpt from my sitemap file. Basically at this moment I wantthe pagehttp://www.google.comto show up whenI request the page http://localhost:8080/cocoon/seegoogle map:pipeline map:match pattern=seegoogle map:generate src="" href="">http://www.google.comtype=html/ map:serialize/ /map:match /map:pipeline Now, when I request the page http://localhost:8080/cocoon/seegooglethe browser gives 404 not found error. But strange thing is that when I modify the pipeline by giving the src="" href="">http://localhost:8080/cocoon and request thepage http://localhost:8080/cocoon/seegoogle,it shows the cocoon welcome page. So can anybody help me with that? Thanks Asif Talpur Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
Directories
Hi, Cocoon 2.0.4 Tomcat 4.0.6 Can someone point me in the right direction for setting up directories? For example my current URI and hard disk location looks like this: http://192.168.0.5:8080/cocoon/soundpool/soundpool.html C:\tomcat\webapps\cocoon\soundpool.xml If I wanted to change the URI address to this: http://192.168.0.5:8080/soundpool/soundpool.html How would I change the disk location, and in what files would I need to change for it to direct the incoming request to the right disk location? Is there an equivalent to flash guide on this subject? Thanks, Richard. - 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: Directories
Jonathan, I have just tried the suggestion by Konstantin, which was this: Context path= docBase=cocoon ... /Context This has changed the address, but has not changed the physical directory that they are in. I am trying to clean up my directories! I have made a new folder called soundpool in webapps like you suggested, but what do I need to change in the server.xml. I have found the section vitual host and have copied it below: !-- Define the default virtual host -- Host name=localhost debug=0 appBase=webapps unpackWARs=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true/ Which part of this would I change for it to point it in the right direction? I am also not sure what you mean by my cocoon's main sitemap is mounting my soundpool sitemap. The way I have it set up at the moment is that I have main sitemap in the following directory: C:\tomcat\webapps\cocoon\sitemap.xml My XML and XSL files are also stored in this directory, hence the need for some organisation. Obviously I would need to move my sitemap with the files to there new folder, so how would I my main sitemap mount the soundpool sitemap? Thanks, Richard. (By the way I had a quick look on the wiki site, and couldn't find anything, hence my ask for help here) -Original Message- From: Jonathan Patrick Freeman [mailto:[EMAIL PROTECTED]] Sent: 04 February 2003 15:35 To: [EMAIL PROTECTED] Subject: Re: Directories Richard, Unless I'm wrong (and usually I am :) I think you need to move your directory soundpool to a webapp level and update the virtual host section of your server.xml file in tomcat's conf directory. Your cocoon's main sitemap is mounting your soundpool sitemap, correct? The cocoon directory is already a webapp. You simply need to make soundpool a webapp with its main sitemap and WEB-INF folder, jars, libs, etc... Something like: C:\tomcat\webapps\soundpool This really should be documented on Wiki too. Maybe it already is? Regards, -Jonathan - Original Message - From: Richard Cunliffe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 04, 2003 10:20 AM Subject: Directories Hi, Cocoon 2.0.4 Tomcat 4.0.6 Can someone point me in the right direction for setting up directories? For example my current URI and hard disk location looks like this: http://192.168.0.5:8080/cocoon/soundpool/soundpool.html C:\tomcat\webapps\cocoon\soundpool.xml If I wanted to change the URI address to this: http://192.168.0.5:8080/soundpool/soundpool.html How would I change the disk location, and in what files would I need to change for it to direct the incoming request to the right disk location? Is there an equivalent to flash guide on this subject? Thanks, Richard. - 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: [POLL] JDK 1.2 Support
MS Windows XP Apache 2.0.43 Tomcat 4.0.6 Cocoon 2.0.4 JDK 1.3.1_06 - 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: Cocoon and MySQL
Martin, I have made your suggested changes and the web page still comes up completely blank. Is there anything else I should be looking at? Thanks, Richard. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 03 February 2003 14:02 To: [EMAIL PROTECTED] Subject: Re: Cocoon and MySQL Hello Richard, Richard Cunliffe [EMAIL PROTECTED] writes: (logs attached) Hi, I have now got cocoon to start, and I have now put my pipeline in, but the page is coming up blank, when viewed through IE6. My pipeline in the sitemap looks like this: !-- soundpool Database (SQL) -- map:pipeline map:match pattern=soundpool/database.html map:generate src=soundpool/database.xml/ map:transform type=sql map:parameter name=RICHARD value=soundpool/ /map:transform map:transform src=databasepc.xsl/ Do one step after the other -- disable the transformer for testing or use labels. map:serialize/ /map:match /map:pipeline I am unsure what should go under name=. I have assumed it's the local host name given in mysql? No, it is the name of the connection as defined in your cocoon.xconf. My entry looks like this: !-- Datasources: -- datasources jdbc name=slide logger=vsc.sql pool-controller min=2 max=6 / auto-committrue/auto-commit dburljdbc:postgresql://bog.fiz-chemie.de/slidestore/dburl userslide/user passwordgeheim/password /jdbc /datasources So the parameter to the SQL Transformer is: map:transform type=sql map:parameter name=use-connection value=slide/ /map:transform Remember to restart your servlet engine after changes to cocoon.xconf. My web.xml looks like so: Looks okay. My database.xml looks like this: ?xml version=1.0 encoding=UTF-8? document textsoundpool/text titlethe databse/title sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:use-connectionlocalhost/soundpool/sql:use-connection You don't need this line. sql:query SELECT generalMusicTitle FROM album /sql:query /sql:execute-query /document -- Martin HolzFIZ CHEMIE Berlin [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]
Cocoon and MySQL
(I have attached my cocoon and tomcat logs as Zip files) Hi, MS Windows XP Apache 2.0.43 Tomcat 4.0.6 Cocoon 2.0.4 JDK 1.3.1_06 MySQL 3.23.55 JDBC 2.0.14 I am trying to connect to a MySQL database and have followed the instructions provided by Flash Guides and Wiki, but cocoon does not start-up after I edit the cocoon.xconf. If I comment out the inserted code, and restart tomcat then cocoon will load. I have download the JDBC file: mysql-connector-java-2.0.14.jar and have put it in the following directories: C:\tomcat\webapps\cocoon\WEB-INF\lib\mysql-connector-java-2.0.14-bin.jar C:\tomcat\lib\mysql-connector-java-2.0.14-bin.jar The relevant part of web.xml looks like this: init-param param-nameload-class/param-name param-value !-- For MySQL Driver: -- com.mysql.jdbc.Driver !-- For Database Driver: -- org.hsqldb.jdbcDriver !-- For parent ComponentManager sample: org.apache.cocoon.samples.parentcm.Configurator -- /param-value /init-param The relevant part of cocoon.xconf looks like so: !-- Datasources: -- datasources jdbc logger=core.datasources.personnel name=personnel !-- If you have an Oracle database, and are using the the pool-controller below, you should add the attribute oradb and set it to true. pool-controller min=5 max=10 oradb=true/ That way the test to see if the server has disconnected the JdbcConnection will function properly. -- pool-controller max=10 min=5/ !-- If you need to ensure an autocommit is set to true or false, then create the auto-commit element below. auto-commitfalse/auto-commit The default is true. -- dburljdbc:hsqldb:hsql://localhost:9002/dburl usersa/user password/ jdbc name=personnel pool-controller min=5 max=10/ auto-committrue/auto-commit dburljdbc:mysql://192.168.44.21:3306/soundpool/dbrul userr_cunliffe/user password/password /jdbc /jdbc /datasources The following line I was unsure about: dburljdbc:mysql://192.168.44.21:3306/dbrul I got the localhost address from MySQL Admin Im not sure if this is right? I uncommented these items from the my.ini file. I am also not sure about jdbc name = . I have tried researching this but Im still unsure. On the Flash Guide it suggested that I should delete the following directory, which I have done: C:\tomcat\work\Standalone\localhost\cocoon But it recreates itself. What can you suggest? Is there anything on the MySQL side I should be checking? Thanks, Richard. cocoon_logs.zip Description: Zip compressed data tomcat_logs.zip Description: Zip compressed 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]
Browser Selector
Hi, I am getting a strange result from my browser selector. I have specified two xsl stylesheets, one for a PDA to run on AvantGo, and another for a PC to run on Explorer. Now the expected result would be: PC = Welcome to soundpool. Your are viewing this site from personal computer PDA = Welcome to soundpool. You are viewing this site from a PDA But the result I get when loading the site for both devices is: Welcome to soundpool. Your are viewing this site from personal computer Welcome to soundpool. You are viewing this site from a PDA Why should it want to do this? I have configured my browser selector as follows: map:selectors default=browser map:selector logger=sitemap.selector.browser name=browser src=""> !-- # NOTE: The appearance indicates the search order. This is very important since # some words may be found in more than one browser description. (MSIE is # presented as Mozilla/4.0 (Compatible; MSIE 4.01; ...) -- browser name=explorer useragent=MSIE/ browser name=pocketexplorer useragent=MSPIE/ browser name=handweb useragent=HandHTTP/ browser name=avantgo useragent=AvantGo/ browser name=imode useragent=DoCoMo/ browser name=opera useragent=Opera/ browser name=lynx useragent=Lynx/ browser name=java useragent=Java/ browser name=wap useragent=Nokia/ browser name=wap useragent=UP/ browser name=wap useragent=Wapalizer/ browser name=mozilla5 useragent=Mozilla/5/ browser name=mozilla5 useragent=Netscape6// browser name=netscape useragent=Mozilla/ /map:selector map:select map:when test=avantgo map:transform src=""> map:seralize/ /map:when map:otherwise map:transform src=""> map:seralize/ /map:otherwise /map:select and my pipeline looks like this: !-- soundpool -- map:pipeline map:match pattern=soundpool/soundpool map:generate src=""> map:serialize/ /map:match /map:pipeline What can you suggest? Thanks Richard.
Apache error on startup
Hi, I have installed Apache 2.0.43 and tomcat 4.0.6, using mod_jk 2.0.43. I am following the flash guide produced by Lajos. I am getting the following error after I have started tomcat and then try and start Apache: Sntax error on line 4 of c:/tomcat/conf/auto/mod_jk.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from How should I go about fixing this? Thanks, Richard. -Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 21:53 To: [EMAIL PROTECTED] Subject: Re: WARP, Jserv or mod_jk? just one tip. As far as i see, you dont need to build the java components for mod_jk if you are planning to run a binary distribution of tomcat-4.*.*. The java components are already included in these tomcat distributions. You would only have to build the apache mod_jk module ... Therefor you may simply skip all the java and ant related topics... maybe that helps you getting faster to your goal. regards, hussayn Richard Cunliffe wrote: Lajos, I have reached point 6, where you build ant, but it is coming up with the following error: Warning: JAVA_HOME environment variable not set. If build fails because sun.* classes could not not be found You will need to set the JAVA_HOME environment variable To the installation directory of java. Bulidfile: build.xml does not exist! Build failed So, 1. How do you set the JAVA_HOME? (I have java 1.3 installed) 2. I checked if build.xml exsits and it does. Is it not finding it because it cant find the JAVA_HOME? Thanks, Richard -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 15:17 To: [EMAIL PROTECTED] Subject: Re: WARP, Jserv or mod_jk? Is that a link off my guide? Sorry, if it is - I have to update the damn things every couple of weeks 'cause they change so often. Anyhow, if you are using 4.0.6, you need the attached zip file. But you can also check for binaries at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.2/bin/ and save yourself some time. Regards, Lajos Richard Cunliffe wrote: Lajos, The following link is not working http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/j akarta-tomcat-connectors-4.0.2-01-src.zip. If you have the zip file could you e-mail it to me at [EMAIL PROTECTED] Thanks for the advice Richard. -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 14:46 To: [EMAIL PROTECTED] Subject: Re: WARP, Jserv or mod_jk? Hi Richard - mod_jk by far is the best. WARP is buggy and is may not even be actively developed any more. mod_jk is stable, widely used, and generally has few bugs reported. If you need help with the integration, my FlashGuides (www.galatea.com/flashguides) have instructions on connecting Apache 2.x with Tomcat 4.x using Jk. Regards, Lajos Richard Cunliffe wrote: Hi, I?m upgrading! Can anyone suggest the best way to connect Apache 2.0.42 and Tomcat 4.0.6. I will be using Cocoon 2.0.4. I have read that the WARP connecter is the best, but I used Jserv on my older version. There is also the mod_jk. Which is the most reliable etc. Thanks Richard. -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/, and is believed to be clean. The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy. -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - 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] -- Dr. Hussayn Dabbous SAXESS Software Design GmbH Neuenhöfer Allee 125 D-50935 Köln tel.:+49 221 56011 0 fax.:+49 221
RE: Apache error on startup
Hussayn, I have read that the mod_jk.so is for Unix and mod_jk.dll is for windows. I am running windows, and I have the following line already in my auto mod_jk: IfModule !mod_jk.c LoadModule jk_module c:/Program Files/Apache Group/Apache2/modules/mod_jk.dll /IfModule Is there anything that could wrong? Richard. -Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 10:12 To: [EMAIL PROTECTED] Subject: Re: Apache error on startup The error message says, you are missing one parameter. Check, that on your line 4 you have the following content. If you have, check that you are looking at the right file ;-) LoadModule jk_module modules/mod_jk.so regards, hussayn Richard Cunliffe wrote: Hi, I have installed Apache 2.0.43 and tomcat 4.0.6, using mod_jk 2.0.43. I am following the flash guide produced by Lajos. I am getting the following error after I have started tomcat and then try and start Apache: Sntax error on line 4 of c:/tomcat/conf/auto/mod_jk.conf: LoadModule takes two arguments, a module name and the name of a shared object file to load it from How should I go about fixing this? Thanks, Richard. -Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 21:53 To: [EMAIL PROTECTED] Subject: Re: WARP, Jserv or mod_jk? just one tip. As far as i see, you dont need to build the java components for mod_jk if you are planning to run a binary distribution of tomcat-4.*.*. The java components are already included in these tomcat distributions. You would only have to build the apache mod_jk module ... Therefor you may simply skip all the java and ant related topics... maybe that helps you getting faster to your goal. regards, hussayn Richard Cunliffe wrote: Lajos, I have reached point 6, where you build ant, but it is coming up with the following error: Warning: JAVA_HOME environment variable not set. If build fails because sun.* classes could not not be found You will need to set the JAVA_HOME environment variable To the installation directory of java. Bulidfile: build.xml does not exist! Build failed So, 1. How do you set the JAVA_HOME? (I have java 1.3 installed) 2. I checked if build.xml exsits and it does. Is it not finding it because it cant find the JAVA_HOME? Thanks, Richard -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 15:17 To: [EMAIL PROTECTED] Subject: Re: WARP, Jserv or mod_jk? Is that a link off my guide? Sorry, if it is - I have to update the damn things every couple of weeks 'cause they change so often. Anyhow, if you are using 4.0.6, you need the attached zip file. But you can also check for binaries at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.2/bin/ and save yourself some time. Regards, Lajos Richard Cunliffe wrote: Lajos, The following link is not working http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/j akarta-tomcat-connectors-4.0.2-01-src.zip. If you have the zip file could you e-mail it to me at [EMAIL PROTECTED] Thanks for the advice Richard. -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 14:46 To: [EMAIL PROTECTED] Subject: Re: WARP, Jserv or mod_jk? Hi Richard - mod_jk by far is the best. WARP is buggy and is may not even be actively developed any more. mod_jk is stable, widely used, and generally has few bugs reported. If you need help with the integration, my FlashGuides (www.galatea.com/flashguides) have instructions on connecting Apache 2.x with Tomcat 4.x using Jk. Regards, Lajos Richard Cunliffe wrote: Hi, I?m upgrading! Can anyone suggest the best way to connect Apache 2.0.42 and Tomcat 4.0.6. I will be using Cocoon 2.0.4. I have read that the WARP connecter is the best, but I used Jserv on my older version. There is also the mod_jk. Which is the most reliable etc. Thanks Richard. -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/, and is believed to be clean. The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy. -- Lajos Moczar Open Source Support, Consulting and Training
Apache Tomcat/4.0.6 - HTTP Status 404
Hi, I can see there is an argument going on at the moment, but if anyone has time. I now have installed the following: JDK 1.3 Cocoon 2.0.4 Tomcat 4.0.6 Apache 2.0.42 And they are all working! J I had previously had installed Cocoon 1.3 and tomcat 3.3a, and I put a simple soundpool example in the webapps directory. This displayed only the source code of the xml file, hence the upgrade. I have got all the new versions installed and I have put the same example in the webapps directory in tomcat again, and tried viewing it through Internet Explorer 6. It is coming up with the following error: Apache Tomcat/4.0.6 - HTTP Status 404 - /soundpool/soundpool.xml type Status report message /soundpool/soundpool.xml description The requested resource (/soundpool/soundpool.xml) is not available. I have put the following code in my sitemap under pipelines: !-- soundpool -- map:pipeline map:match pattern=soundpool/soundpool map:generate src=""> map:transform src=""> map:serialize/ /map:match /map:pipeline Im sure this is a really simple problem to fix. Thanks, Richard.
Im sure its a simple problem!
To anyone who can help, I now have installed the following: JDK 1.3 Cocoon 2.0.4 Tomcat 4.0.6 Apache 2.0.42 And they are all working! J When I say they are all working, I mean that they each show the own page, e.g http://192.168.0.5:8080/cocoon/ or http://192.168.0.5:8080/index.html for tomcat. What's not working: I had previously had installed Cocoon 1.3 and tomcat 3.3a, and I put a simple soundpool example in the webapps directory. This displayed only the source code of the xml file, hence the upgrade. I have got all the new versions installed and I have put the same example in the webapps directory in tomcat again, and tried viewing it through Internet Explorer 6. It is coming up with the following error: Apache Tomcat/4.0.6 - HTTP Status 404 - /soundpool/soundpool.xml type Status report message /soundpool/soundpool.xml description The requested resource (/soundpool/soundpool.xml) is not available. I have put the following code in my sitemap under pipelines: !-- soundpool -- map:pipeline map:match pattern=soundpool/soundpool map:generate src=soundpool.xml/ map:transform src=soundpool.xsl/ map:serialize/ /map:match /map:pipeline So I have put my xml and xsl file in directory called soundpool under webapps, so my directory structure looks like this: C:\tomcat\webapps\soundpool\soundpool.xml C:\tomcat\webapps\soundpool\soundpool.xsl + tomcat (folder) + webapps (folder) +- soundpool (folder) +- soundpool.xml (file) +- soundpool.xsl (file) I assume that webapps is the correct folder. I also used mod_jk to link tomcat and Apache, although this shouldn't make any difference at this stage. I followed Lajos's Flash guide to install the apache, tomcat and cocoon, found at the following sites: http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml http://www.galatea.com/flashguides/tomcat-cocoon-42-win32.xml any suggestions? Thanks Richard. - 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: Apache Tomcat/4.0.6 - HTTP Status 404
Geoff, Thanks for your e-mail! Yes its running locally at the moment on a hub. I have managed to get it working, it was just simply that I had put the xml, xsl and sitemap files in the wrong place. And yes everything is slowly clicking into place. I have been working on cocoon now for 4 days trying various versions to try and get it going. Success has finally come! Now onto more advanced things. Thanks to all that have helped so far! Richard. -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED]] Sent: 30 January 2003 23:15 To: [EMAIL PROTECTED] Subject: RE: Apache Tomcat/4.0.6 - HTTP Status 404 -Original Message- From: Richard Cunliffe [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 12:58 PM To: [EMAIL PROTECTED] Subject: RE: Apache Tomcat/4.0.6 - HTTP Status 404 Geoff, When I say they are all working, I mean that they each show the own page, e.g http://192.168.0.5:8080/cocoon/ or http://192.168.0.5:8080/index.html for tomcat. Ok, good - what that tells me is that you've created a typical cocoon webapp install. That'll be important below... What's not working: It's not finding soundpool.xml. What do you mean about my pipeline match: It looks like you requested /soundpool/soundpool.xml but your pipeline is set up to match /soundpool/soundpool -- note also that a trailing slash here will also fail. The following matcher element: map:match pattern=soundpool/soundpool is the only thing that matters when determining what requests will be handled. The fact that your resource is called soundpool.xml is completely irrelevant in cocoon. To the outside world, you have named it soundpool/soundpool cruciallyImportant _relative_ to the cocoon application base /cruciallyImportant - which should be http://192.168.0.5:8080/cocoon/ which means you need to be accessing http://192.168.0.5:8080/cocoon/soundpool/soundpool the way you have it set up. So I have put my xml and xsl file in directory called soundpool under webapps, so my directory structure looks like this: Wrong place. They should be inside the cocoon webapp folder (someone just wrote the same thing I think). The only way this would not be the case is if you created a new webapp either by copying cocoon.war to soundpool.war, or something like it. -- C:\tomcat\webapps\cocoon\soundpool\soundpool.xml -- C:\tomcat\webapps\cocoon\soundpool\soundpool.xsl I assume that webapps is the correct folder. I also used mod_jk to link tomcat and Apache, although this shouldn't make any difference at this stage. Well, you cut it out of the picture by going straight to port 8080. This is a good idea for now. No sense debugging multiple things at once. One more important question: When you say I have put the following code in my sitemap under pipelines: !-- soundpool -- map:pipeline map:match pattern=soundpool/soundpool map:generate src=soundpool.xml/ map:transform src=soundpool.xsl/ map:serialize/ /map:match /map:pipeline Which sitemap have you edited? If it's C:\tomcat\webapps\cocoon\sitemap.xmap, then everything above is valid. If it's C:\tomcat\webapps\soundpool\sitemap.xmap then you have either successfully or unsuccessfully created a new webapp as I mentioned above, and given that it's not working you can guess which one I've picked. Almost none of this problem is specific to cocoon. It seems that you are either unfamiliar with basic java webapps or cocoon has disoriented you. If the first one's the case, some general reading up on the basics would probably make everything a lot clearer. If the second (hope i didn't offend you) just remember that much within cocoon is just a webapp. The slightly unusual thing is that one servlet is configured to handle every request in the webapp's uri/url space. If you need to get cocoon out of the url, you can handle that after you get this working. There are several approaches that will work - in the cocoon faq's/howto's, on the wiki (i think) and several in the mail list archives. At some point (probably soon) this is all going to click and make sense to you. Just curious: do you have this on a public facing server? I'm pretty sure the IP in your example is one assigned by windows connection sharing internally. Geoff - 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]
WARP, Jserv or mod_jk?
Hi, Im upgrading! Can anyone suggest the best way to connect Apache 2.0.42 and Tomcat 4.0.6. I will be using Cocoon 2.0.4. I have read that the WARP connecter is the best, but I used Jserv on my older version. There is also the mod_jk. Which is the most reliable etc. Thanks Richard. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy."
RE: WARP, Jserv or mod_jk?
Lajos, The following link is not working http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/j akarta-tomcat-connectors-4.0.2-01-src.zip. If you have the zip file could you e-mail it to me at [EMAIL PROTECTED] Thanks for the advice Richard. -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 14:46 To: [EMAIL PROTECTED] Subject: Re: WARP, Jserv or mod_jk? Hi Richard - mod_jk by far is the best. WARP is buggy and is may not even be actively developed any more. mod_jk is stable, widely used, and generally has few bugs reported. If you need help with the integration, my FlashGuides (www.galatea.com/flashguides) have instructions on connecting Apache 2.x with Tomcat 4.x using Jk. Regards, Lajos Richard Cunliffe wrote: Hi, I?m upgrading! Can anyone suggest the best way to connect Apache 2.0.42 and Tomcat 4.0.6. I will be using Cocoon 2.0.4. I have read that the WARP connecter is the best, but I used Jserv on my older version. There is also the mod_jk. Which is the most reliable etc. Thanks Richard. -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/, and is believed to be clean. The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy. -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - 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: WARP, Jserv or mod_jk?
Lajos, I have reached point 6, where you build ant, but it is coming up with the following error: Warning: JAVA_HOME environment variable not set. If build fails because sun.* classes could not not be found You will need to set the JAVA_HOME environment variable To the installation directory of java. Bulidfile: build.xml does not exist! Build failed So, 1. How do you set the JAVA_HOME? (I have java 1.3 installed) 2. I checked if build.xml exsits and it does. Is it not finding it because it cant find the JAVA_HOME? Thanks, Richard -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 15:17 To: [EMAIL PROTECTED] Subject: Re: WARP, Jserv or mod_jk? Is that a link off my guide? Sorry, if it is - I have to update the damn things every couple of weeks 'cause they change so often. Anyhow, if you are using 4.0.6, you need the attached zip file. But you can also check for binaries at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1 .2.2/bin/ and save yourself some time. Regards, Lajos Richard Cunliffe wrote: Lajos, The following link is not working http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/src/j akarta-tomcat-connectors-4.0.2-01-src.zip. If you have the zip file could you e-mail it to me at [EMAIL PROTECTED] Thanks for the advice Richard. -Original Message- From: Lajos [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 14:46 To: [EMAIL PROTECTED] Subject: Re: WARP, Jserv or mod_jk? Hi Richard - mod_jk by far is the best. WARP is buggy and is may not even be actively developed any more. mod_jk is stable, widely used, and generally has few bugs reported. If you need help with the integration, my FlashGuides (www.galatea.com/flashguides) have instructions on connecting Apache 2.x with Tomcat 4.x using Jk. Regards, Lajos Richard Cunliffe wrote: Hi, I?m upgrading! Can anyone suggest the best way to connect Apache 2.0.42 and Tomcat 4.0.6. I will be using Cocoon 2.0.4. I have read that the WARP connecter is the best, but I used Jserv on my older version. There is also the mod_jk. Which is the most reliable etc. Thanks Richard. -- This message has been scanned for viruses and dangerous content by MailScanner http://www.mailscanner.info/, and is believed to be clean. The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy. -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - 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]
build.xml
Lajos, I have fixed the Java problem, but it is still coming up with the following error: Bulidfile: build.xml does not exist! Build failed What does this mean? Do I have to build the build.xml myself? If so how would I go about doing this. Richard. - 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: build.xml
Me again, Fixed the does not exist problem but I'm now getting the following error: BUILD FAILED C:\tomcat_connectors\jk\build.xml:379: Classorg.apache.tools.ant.taskdefs.condition.Not doesn't support the nested isset element. What should I do to correct this? Richard. -Original Message- From: Richard Cunliffe [mailto:[EMAIL PROTECTED]] Sent: 29 January 2003 22:49 To: [EMAIL PROTECTED]; 'Lajos' Subject: build.xml Lajos, I have fixed the Java problem, but it is still coming up with the following error: Bulidfile: build.xml does not exist! Build failed What does this mean? Do I have to build the build.xml myself? If so how would I go about doing this. Richard. - 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]
I cant get cocoon to process??
Apache - v1.3 Cocoon - v2.0 Tomcat - v3.3a Jserv - 1.1.1 Operating system - Windows XP I can not get cocoon to work. The problem I have is that when I try and load an xml page, it will not use the style sheet and show the desired page. Instead the browser only shows the xml document (source code). I have linked cocoon and tomcat, and tomcat with apache using Jserv. What suggestions do you have? Richard.
RE: I cant get cocoon to process??
Derek, Thank you for the big welcome! I have had a quick look at the logs, but to be honest Im not sure how to interrupt them. When I did the install examples I got cocoon to do the Hello world example. So yes thats working. Here is the pipeline I have created for a soundpool example (this will just show the word soundpool) map:pipeline map:match pattern=soundpool map:generate src=""> map:transform src=""> map:serialize/ /map:match /map:pipeline So when I type the my local address http://192.168.0.5:8080/soundpool/soundpool.xml this is what is displayed: ?xml version=1.0 ? - document textsoundpool/text /document It looks like tomcat is not forwarding the request to cocoon to me, what do you think? Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 09:03 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? Richard Welcome to the wonderful world of Cocoon application debugging ! First off, I assume that the Cocoon samples are up-and- running, so that you have tested that the Cocoon servlet as such is working OK. Next thing is to check the log files; you will find them located under the [cocoon] directory (which I guess you have installed somewhere under tomcat) in a subdir called WEB-INF/logs. Finally - and this is the hard part! - you will need to try and understand what is causing the missing link - it *seems* like it might be the entry in your site map - perhaps you can post that part of the site map that should be doing the xml/xsl matching so we can try and figure where there might be an error. Derek [EMAIL PROTECTED] 28/01/2003 10:40:03 Apache - v1.3 Cocoon - v2.0 Tomcat - v3.3a Jserv - 1.1.1 Operating system - Windows XP I can not get cocoon to work. The problem I have is that when I try and load an xml page, it will not use the style sheet and show the desired page. Instead the browser only shows the xml document (source code). I have linked cocoon and tomcat, and tomcat with apache using Jserv. What suggestions do you have? Richard. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. "The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy."
RE: I cant get cocoon to process??
Derek, Ok I changed the match pattern, but it made no difference (its still loading the xml source as text in the browser). I managed to get text in the logs, and I can not see anything in there to say that I have just tried to access the address http://192.168.0.5:8080/soundpool/soundpool.xml. I have attached the log with this e-mail. I obviously don't know what is supposed be in there, but there are a lot of unknowns (I don't know if this is healthy?). Thank you so much for taking the time to help! Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 09:55 To: [EMAIL PROTECTED] Subject: RE: I cant get cocoon to process?? Richard Well, I think Tomcat/Cocoon are working OK, otherwise the basic Hello World would not not be working. You say you cannot see anything in the log files that makes sense - well, this is an area that its very useful (and I speak from bitter experience) and worth the time getting up to speed in! If unsure, then: stop Tomcat, delete the log files, restart - they *should* be clear. If not, note what is there and carry on. Try your URL and then immediately look in the files again - any new messages should be related to what you have just tried. If these do not make sense, then post them here. Anyway - to your problem below. I think the issue is that your typed URL: ...soundpool/soundpool.xml does not match the pattern in the pipeline - which is expecting only: soundpool So, either change your typed URL to: http://192.168.0.5:8080/soundpool or change the match to: map:match pattern=soundpool/soundpool.xml or some other combination that links one to the other... you could have: http://192.168.0.5:8080/soundpool/soundpool and: map:match pattern=soundpool/soundpool for example - this is quite neat because it clearly shows that the URI that Cocoon processes can be quite different from where the physical files are located; a key concept in good pipeline design. Derek [EMAIL PROTECTED] 28/01/2003 11:22:21 Derek, Thank you for the big welcome! I have had a quick look at the logs, but to be honest I'm not sure how to interrupt them. When I did the install examples I got cocoon to do the Hello world example. So yes that's working. Here is the pipeline I have created for a soundpool example (this will just show the word soundpool) map:pipeline map:match pattern=soundpool map:generate src=soundpool.xml/map:transform src=soundpool.xsl/map:serialize/ /map:match/map:pipeline So when I type the my local address http://192.168.0.5:8080/soundpool/soundpool.xml this is what is displayed: ?xml version=1.0 ? - document textsoundpool/text /document It looks like tomcat is not forwarding the request to cocoon to me, what do you think? Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 09:03 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? Richard Welcome to the wonderful world of Cocoon application debugging ! First off, I assume that the Cocoon samples are up-and- running, so that you have tested that the Cocoon servlet as such is working OK. Next thing is to check the log files; you will find them located under the [cocoon] directory (which I guess you have installed somewhere under tomcat) in a subdir called WEB-INF/logs. Finally - and this is the hard part! - you will need to try and understand what is causing the missing link - it *seems* like it might be the entry in your site map - perhaps you can post that part of the site map that should be doing the xml/xsl matching so we can try and figure where there might be an error. Derek [EMAIL PROTECTED] 28/01/2003 10:40:03 Apache - v1.3Cocoon - v2.0Tomcat - v3.3aJserv - 1.1.1 Operating system -Windows XP I can not get cocoon to work. The problem I have is that when I try and load an xml page, it will not use the style sheet and show the desired page. Instead the browser only shows the xml document (source code). I have linked cocoon and tomcat, and tomcat with apache using Jserv. What suggestions do you have? Richard. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be
RE: I cant get cocoon to process??
Hussayn, I have just had a look, and its only been matched once. Any other suggestions? Thanks, Richard. -Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 15:00 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? once i looked hours and hours for a problem similar to what you report. finally i detected, that i introduced two match patterns, that would match on the same url within my sitemap. Since i was looking at the secnd definition wondering, why nothing helped i completely ignored the true causeing match further up in the sitemap. maybe this is what your problem causes: simply another more generic matcher, that sucks the file before your matcher comes into play ? just to mention it: first match wins... regards, hussayn Richard Cunliffe wrote: Derek, Ok I changed the match pattern, but it made no difference (its still loading the xml source as text in the browser). I managed to get text in the logs, and I can not see anything in there to say that I have just tried to access the address http://192.168.0.5:8080/soundpool/soundpool.xml. I have attached the log with this e-mail. I obviously don't know what is supposed be in there, but there are a lot of unknowns (I don't know if this is healthy?). Thank you so much for taking the time to help! Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 09:55 To: [EMAIL PROTECTED] Subject: RE: I cant get cocoon to process?? Richard Well, I think Tomcat/Cocoon are working OK, otherwise the basic Hello World would not not be working. You say you cannot see anything in the log files that makes sense - well, this is an area that its very useful (and I speak from bitter experience) and worth the time getting up to speed in! If unsure, then: stop Tomcat, delete the log files, restart - they *should* be clear. If not, note what is there and carry on. Try your URL and then immediately look in the files again - any new messages should be related to what you have just tried. If these do not make sense, then post them here. Anyway - to your problem below. I think the issue is that your typed URL: ...soundpool/soundpool.xml does not match the pattern in the pipeline - which is expecting only: soundpool So, either change your typed URL to: http://192.168.0.5:8080/soundpool or change the match to: map:match pattern=soundpool/soundpool.xml or some other combination that links one to the other... you could have: http://192.168.0.5:8080/soundpool/soundpool and: map:match pattern=soundpool/soundpool for example - this is quite neat because it clearly shows that the URI that Cocoon processes can be quite different from where the physical files are located; a key concept in good pipeline design. Derek [EMAIL PROTECTED] 28/01/2003 11:22:21 Derek, Thank you for the big welcome! I have had a quick look at the logs, but to be honest I'm not sure how to interrupt them. When I did the install examples I got cocoon to do the Hello world example. So yes that's working. Here is the pipeline I have created for a soundpool example (this will just show the word soundpool) map:pipeline map:match pattern=soundpool map:generate src=soundpool.xml/map:transform src=soundpool.xsl/map:serialize/ /map:match/map:pipeline So when I type the my local address http://192.168.0.5:8080/soundpool/soundpool.xml this is what is displayed: ?xml version=1.0 ? - document textsoundpool/text /document It looks like tomcat is not forwarding the request to cocoon to me, what do you think? Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 09:03 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? Richard Welcome to the wonderful world of Cocoon application debugging ! First off, I assume that the Cocoon samples are up-and- running, so that you have tested that the Cocoon servlet as such is working OK. Next thing is to check the log files; you will find them located under the [cocoon] directory (which I guess you have installed somewhere under tomcat) in a subdir called WEB-INF/logs. Finally - and this is the hard part! - you will need to try and understand what is causing the missing link - it *seems* like it might be the entry in your site map - perhaps you can post that part of the site map that should be doing the xml/xsl matching so we can try and figure where there might be an error. Derek [EMAIL PROTECTED] 28/01/2003 10:40:03 Apache - v1.3Cocoon - v2.0Tomcat - v3.3aJserv - 1.1.1 Operating system -Windows XP I can not get cocoon to work
RE: I cant get cocoon to process??
Hussayn, It sounds to me, like cocoon is not being forwarded the requested page and perhaps thats why there is no processing going on. I installed cocoon by copying in cocoon.war, and set-up apache and tomcat, by using jserv. Is there anything else I should do here? Richard. -Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 15:33 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? I learned to get very simple minded when it comes to cocoon debugging ;-) so i would ask: 1.) are you shure, cocoon is receiving the request at all you can verify by looking at WEB-INF/logs/access.log 2.) do any stack traces pop up in the cocoon log files ? besides access.log there are three others ... 3.) Are you using IE as browser? then try to delete the browser cache. sometimes this has driven me crasy. 4.) have you checked your servlet mounts from the webserver to tomcat are correct ? no other ideas. if cocoon is processing your request at all, the cocoon logs should reveal what happens... regards, hussayn Richard Cunliffe wrote: Hussayn, I have just had a look, and its only been matched once. Any other suggestions? Thanks, Richard. -Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 15:00 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? once i looked hours and hours for a problem similar to what you report. finally i detected, that i introduced two match patterns, that would match on the same url within my sitemap. Since i was looking at the secnd definition wondering, why nothing helped i completely ignored the true causeing match further up in the sitemap. maybe this is what your problem causes: simply another more generic matcher, that sucks the file before your matcher comes into play ? just to mention it: first match wins... regards, hussayn Richard Cunliffe wrote: Derek, Ok I changed the match pattern, but it made no difference (its still loading the xml source as text in the browser). I managed to get text in the logs, and I can not see anything in there to say that I have just tried to access the address http://192.168.0.5:8080/soundpool/soundpool.xml. I have attached the log with this e-mail. I obviously don't know what is supposed be in there, but there are a lot of unknowns (I don't know if this is healthy?). Thank you so much for taking the time to help! Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 09:55 To: [EMAIL PROTECTED] Subject: RE: I cant get cocoon to process?? Richard Well, I think Tomcat/Cocoon are working OK, otherwise the basic Hello World would not not be working. You say you cannot see anything in the log files that makes sense - well, this is an area that its very useful (and I speak from bitter experience) and worth the time getting up to speed in! If unsure, then: stop Tomcat, delete the log files, restart - they *should* be clear. If not, note what is there and carry on. Try your URL and then immediately look in the files again - any new messages should be related to what you have just tried. If these do not make sense, then post them here. Anyway - to your problem below. I think the issue is that your typed URL: ...soundpool/soundpool.xml does not match the pattern in the pipeline - which is expecting only: soundpool So, either change your typed URL to: http://192.168.0.5:8080/soundpool or change the match to: map:match pattern=soundpool/soundpool.xml or some other combination that links one to the other... you could have: http://192.168.0.5:8080/soundpool/soundpool and: map:match pattern=soundpool/soundpool for example - this is quite neat because it clearly shows that the URI that Cocoon processes can be quite different from where the physical files are located; a key concept in good pipeline design. Derek [EMAIL PROTECTED] 28/01/2003 11:22:21 Derek, Thank you for the big welcome! I have had a quick look at the logs, but to be honest I'm not sure how to interrupt them. When I did the install examples I got cocoon to do the Hello world example. So yes that's working. Here is the pipeline I have created for a soundpool example (this will just show the word soundpool) map:pipeline map:match pattern=soundpool map:generate src=soundpool.xml/map:transform src=soundpool.xsl/map:serialize/ /map:match/map:pipeline So when I type the my local address http://192.168.0.5:8080/soundpool/soundpool.xml this is what is displayed: ?xml version=1.0 ? - document textsoundpool/text /document It looks like tomcat is not forwarding the request to cocoon to me, what do you think? Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED
RE: I cant get cocoon to process??
Hussayn, Thank you for being patient! Ok I have just completed all of the below and everything is working up to point 3. Yes that address was a typing mistake. When I load http://192.168.0.5:8080/soundpool/soundpool.xml it shows the following: ?xml version=1.0 ? - document textsoundpool/text /document Obviously this is not right. You mention about doing something within tomcat, quote: Maybe you did something wrong within your tomcat Context definition also in tomcat/conf/server.xml ? Can you expand on this because I havent touched server.xml. Thanks, Richard. -Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 15:57 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? hmm.. I would do this: take your webserver out of the way for a moment. you want to test cocoon, not the webserver/tomcat connection, right ? then: 1.) setup tomcat so that you can direct access it from your browser. Look for these lines in tomcat/conf/server.xml: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / this should be already setup. test it: http://yourserver:8080 tomcat should show up. if it does not, double check that your tomcat has a HTTP connection and on whoich port it is serving. 2.) now test your cocoon: http://yourserver:8080/cocoon i suppose your cocoon startpage comes up. you already reported this. but double check it... 3.) now dive into your sitemap: http://192.168.0.5:8080/cocoon/soundpool/soundpool.xml or whatever... by the way, have you deployed cocoon under the name soundpool? or is the link i found further down missspelled ??? Maybe you did something wrong within your tomcat Context definition also in tomcat/conf/server.xml ? regards, hussayn Richard Cunliffe wrote: Hussayn, It sounds to me, like cocoon is not being forwarded the requested page and perhaps thats why there is no processing going on. I installed cocoon by copying in cocoon.war, and set-up apache and tomcat, by using jserv. Is there anything else I should do here? Richard. -Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 15:33 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? I learned to get very simple minded when it comes to cocoon debugging ;-) so i would ask: 1.) are you shure, cocoon is receiving the request at all you can verify by looking at WEB-INF/logs/access.log 2.) do any stack traces pop up in the cocoon log files ? besides access.log there are three others ... 3.) Are you using IE as browser? then try to delete the browser cache. sometimes this has driven me crasy. 4.) have you checked your servlet mounts from the webserver to tomcat are correct ? no other ideas. if cocoon is processing your request at all, the cocoon logs should reveal what happens... regards, hussayn Richard Cunliffe wrote: Hussayn, I have just had a look, and its only been matched once. Any other suggestions? Thanks, Richard. -Original Message- From: SAXESS - Hussayn Dabbous [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 15:00 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? once i looked hours and hours for a problem similar to what you report. finally i detected, that i introduced two match patterns, that would match on the same url within my sitemap. Since i was looking at the secnd definition wondering, why nothing helped i completely ignored the true causeing match further up in the sitemap. maybe this is what your problem causes: simply another more generic matcher, that sucks the file before your matcher comes into play ? just to mention it: first match wins... regards, hussayn Richard Cunliffe wrote: Derek, Ok I changed the match pattern, but it made no difference (its still loading the xml source as text in the browser). I managed to get text in the logs, and I can not see anything in there to say that I have just tried to access the address http://192.168.0.5:8080/soundpool/soundpool.xml. I have attached the log with this e-mail. I obviously don't know what is supposed be in there, but there are a lot of unknowns (I don't know if this is healthy?). Thank you so much for taking the time to help! Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 09:55 To: [EMAIL PROTECTED] Subject: RE: I cant get cocoon to process?? Richard Well, I think Tomcat/Cocoon are working OK, otherwise the basic Hello
RE: I cant get cocoon to process??
Hussayn Peter Ok I have everything you suggest setup, and it is still not coming out right! Can you suggest anything else - please don't give on me!! Richard -Original Message- From: Horsfield, Peter A. [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 16:26 To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: I cant get cocoon to process?? Hi Richard, Derek. Sorry to butt in, but heres my two cents: Tomcat/Cocoon is pulling your soundpool.xml file unchanged. This /could/ be because tomcat is not forwarding the request to Cocoon, but I think that is unlikely. You can test it by renaming the soundpool.xml file to something else and trying the url http://192.168.0.5:8080/soundpool/soundpool.xml If you get a Cocoon resource not found error, then you can be sure the request is reaching Cocoon. *However* the map:match pattern you showed seems to indicate that you should be accessing the URL without the final .xml instead: http://192.168.0.5:8080/soundpool/soundpool I would guess some other part of the sitemap is setup to supply a .xml file directly if it is requested as such. --Pause-- :) Next, your serializer might need to look something like this: map:serialize type=html / Then you know you're getting the html serializer and not the xml serializer. It's important because the serializer defines the content-type that the browser sees. Oh, and I'm assuming that your xsl transform converts your soundpool.xml into valid html, correct? So you would have something like ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=html / xsl:template match=/ html head /head body xsl:apply-templates / /body /html /xsl:template !-- plus soundpool templates -- /xsl:stylesheet Hope that's some help, Peter -Original Message- From: Richard Cunliffe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 4:22 AM To: [EMAIL PROTECTED] Subject: RE: I cant get cocoon to process?? Derek, Thank you for the big welcome! I have had a quick look at the logs, but to be honest I m not sure how to interrupt them. When I did the install examples I got cocoon to do the Hello world example. So yes that s working. Here is the pipeline I have created for a soundpool example (this will just show the word soundpool) map:pipeline map:match pattern=soundpool map:generate src=soundpool.xml/ map:transform src=soundpool.xsl/ map:serialize/ /map:match /map:pipeline So when I type the my local address http://192.168.0.5:8080/soundpool/soundpool.xml this is what is displayed: ?xml version=1.0 ? - document textsoundpool/text /document It looks like tomcat is not forwarding the request to cocoon to me, what do you think? Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 09:03 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? Richard Welcome to the wonderful world of Cocoon application debugging ! First off, I assume that the Cocoon samples are up-and- running, so that you have tested that the Cocoon servlet as such is working OK. Next thing is to check the log files; you will find them located under the [cocoon] directory (which I guess you have installed somewhere under tomcat) in a subdir called WEB-INF/logs. Finally - and this is the hard part! - you will need to try and understand what is causing the missing link - it *seems* like it might be the entry in your site map - perhaps you can post that part of the site map that should be doing the xml/xsl matching so we can try and figure where there might be an error. Derek [EMAIL PROTECTED] 28/01/2003 10:40:03 Apache - v1.3 Cocoon - v2.0 Tomcat - v3.3a Jserv - 1.1.1 Operating system -Windows XP I can not get cocoon to work. The problem I have is that when I try and load an xml page, it will not use the style sheet and show the desired page. Instead the browser only shows the xml document (source code). I have linked cocoon and tomcat, and tomcat with apache using Jserv. What suggestions do you have? Richard. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. The CSIR exercises no editorial control over E-mail messages and/or attachments thereto/links referred to therein originating in the organisation and the views in this message/attachments thereto are therefore not necessarily those of the CSIR and/or its employees. The sender of this e-mail is, moreover, in terms
RE: I cant get cocoon to process??
Marco, I have attached all the logs and my sitemap. I searched 'PreparableMatcher', but nothing came back. Thank you so much for taking a look at this for me! Richard. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 23:47 To: [EMAIL PROTECTED] Subject: AW: I cant get cocoon to process?? hi richard, you could take a look at tomcat's logs ($TOMCAT_HOME/logs). and look at cocoon's sitemap.log; around the end of the log search for 'PreparableMatcher' and the like. if there's nothing like that dealing with the uri match pattern you specified in your sitemap, definitely didn't get processed. maybe it would be best if you send your logs (if they're not too big) and sitemap in a .zip file. -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von Richard Cunliffe Gesendet: Dienstag, 28. Januar 2003 18:01 An: [EMAIL PROTECTED] Betreff: RE: I cant get cocoon to process?? Hussayn Peter Ok I have everything you suggest setup, and it is still not coming out right! Can you suggest anything else - please don't give on me!! Richard -Original Message- From: Horsfield, Peter A. [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 16:26 To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: I cant get cocoon to process?? Hi Richard, Derek. Sorry to butt in, but heres my two cents: Tomcat/Cocoon is pulling your soundpool.xml file unchanged. This /could/ be because tomcat is not forwarding the request to Cocoon, but I think that is unlikely. You can test it by renaming the soundpool.xml file to something else and trying the url http://192.168.0.5:8080/soundpool/soundpool.xml If you get a Cocoon resource not found error, then you can be sure the request is reaching Cocoon. *However* the map:match pattern you showed seems to indicate that you should be accessing the URL without the final .xml instead: http://192.168.0.5:8080/soundpool/soundpool I would guess some other part of the sitemap is setup to supply a .xml file directly if it is requested as such. --Pause-- :) Next, your serializer might need to look something like this: map:serialize type=html / Then you know you're getting the html serializer and not the xml serializer. It's important because the serializer defines the content-type that the browser sees. Oh, and I'm assuming that your xsl transform converts your soundpool.xml into valid html, correct? So you would have something like ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:output method=html / xsl:template match=/ html head /head body xsl:apply-templates / /body /html /xsl:template !-- plus soundpool templates -- /xsl:stylesheet Hope that's some help, Peter -Original Message- From: Richard Cunliffe [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 4:22 AM To: [EMAIL PROTECTED] Subject: RE: I cant get cocoon to process?? Derek, Thank you for the big welcome! I have had a quick look at the logs, but to be honest I m not sure how to interrupt them. When I did the install examples I got cocoon to do the Hello world example. So yes that s working. Here is the pipeline I have created for a soundpool example (this will just show the word soundpool) map:pipeline map:match pattern=soundpool map:generate src=soundpool.xml/ map:transform src=soundpool.xsl/ map:serialize/ /map:match /map:pipeline So when I type the my local address http://192.168.0.5:8080/soundpool/soundpool.xml this is what is displayed: ?xml version=1.0 ? - document textsoundpool/text /document It looks like tomcat is not forwarding the request to cocoon to me, what do you think? Richard. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED]] Sent: 28 January 2003 09:03 To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? Richard Welcome to the wonderful world of Cocoon application debugging ! First off, I assume that the Cocoon samples are up-and- running, so that you have tested that the Cocoon servlet as such is working OK. Next thing is to check the log files; you will find them located under the [cocoon] directory (which I guess you have installed somewhere under tomcat) in a subdir called WEB-INF/logs. Finally - and this is the hard part! - you will need to try and understand what is causing the missing link - it *seems* like it might be the entry in your site map - perhaps you can post that part of the site map that should be doing the xml/xsl matching so we