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, 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??
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 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. - 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
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. 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, 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 clean
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??
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]] 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
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??
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 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
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??
if you did not touch server.xml forget about this for a moment. look again at following snippet from your last answer: Yes that address was a typing mistake. When I load http://192.168.0.5:8080/soundpool/soundpool.xml it shows the if you did NOT TOUCH server.xml and you did deploy cocoon under the directory webapps/cocoon, then you should connect to your cocoon as follows: http://192.168.0.5:8080/cocoon/soundpool/soundpool.xml ~~ assuming your xslt is named soundpool.xsl and lies besides soundpool.xml and both files live in a folder named soundpool which in turn lives in the cocoon webapplication + cocoon (webapp folder) +- soundpool (folder) +- soundpool.xml (file) +- soundpool.xsl (file) Then your pipeline looks like this: pipelines pipeline map:match pattern=soundpool/soundpool.xml map:generate src=soundpool/soundpool.xml/ map:transform src=soundpool/soundpool.xsl/ map:serialize type=xml/ /map:match /pipeline /pipelines Or have you created a subfolder named soundpool in your cocoon webapp, or is your cocoon webapp named soundpool +- soundpool (webapp folder) +- soundpool.xml (file) +- soundpool.xsl (file) in this case your sitemap would look like this: pipelines pipeline map:match pattern=soundpool.xml map:generate src=soundpool.xml/ map:transform src=soundpool.xsl/ map:serialize type=xml/ /map:match /pipeline /pipelines and your request would look like this: http://192.168.0.5:8080/soundpool/soundpool.xml hussayn -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
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 of the CSIR's Conditions of Service, subject to compliance with the CSIR's internal E-mail and Internet Policy. - 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
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
RE: I cant get cocoon to process??
Richard Please post your sitemap and the two soundpool files (xml + xsl) Derek [EMAIL PROTECTED] 28/01/2003 04:52:01 Derek,Ok I changed the match pattern, but it made no difference (its stillloading the xml source as text in the browser).I managed to get text in the logs, and I can not see anything in thereto say that I have just tried to access the addresshttp://192.168.0.5:8080/soundpool/soundpool.xml.I have attached the log with this e-mail. I obviously don't know what issupposed be in there, but there are a lot of unknowns (I don't know ifthis 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:55To: [EMAIL PROTECTED]Subject: RE: I cant get cocoon to process??RichardWell, I think Tomcat/Cocoon are working OK, otherwisethe basic Hello World would not not be working.You say you cannot see anything in the log files thatmakes sense - well, this is an area that its very useful(and I speak from bitter experience) and worth the timegetting up to speed in! If unsure, then: stop Tomcat,delete the log files, restart - they *should* be clear. Ifnot, note what is there and carry on. Try your URL andthen immediately look in the files again - any new messagesshould be related to what you have just tried. If thesedo not make sense, then post them here.Anyway - to your problem below. I think the issueis that your typed URL: ...soundpool/soundpool.xmldoes not match the pattern in the pipeline - which isexpecting only: soundpoolSo, either change your typed URL to:http://192.168.0.5:8080/soundpoolor 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/soundpooland:map:match pattern="soundpool/soundpool"for example - this is quite neat because it clearly shows that the URI that Cocoon processes canbe quite different from where the physical files arelocated; 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 thelogs, but to be honest I'm not sure how to interrupt them. When I didthe install examples I got cocoon to do the Hello world example. So yesthat's working. Here is the pipeline I have created for a soundpoolexample (this will just show the word soundpool) map:pipeline map:match pattern="soundpool" map:generate src=""/ map:transformsrc=""/ map:serialize/ /map:match/map:pipeline So when I type the my local addresshttp://192.168.0.5:8080/soundpool/soundpool.xml this is what isdisplayed: ?xml version="1.0" ? - document textsoundpool/text /document It looks liketomcat 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:03To: [EMAIL PROTECTED] Subject: Re: I cant get cocoon to process?? RichardWelcome to the wonderful world of Cocoon applicationdebugging !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 themlocated under the [cocoon] directory (which I guess youhave installed somewhere under tomcat) in a subdircalled 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 thatshould be doing the xml/xsl matching so we can tryand 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 towork. The problem I have is that when I try and load an xml page, itwill not use the style sheet and show the desired page. Instead thebrowser only shows the xml document (source code). I have linked cocoonand tomcat, and tomcat with apache using Jserv. What suggestions do youhave? 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'sConditions 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 clean."The CSIR exercises no editorial control over E-mail message