cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Rolappe" <m_rola...@web.de>
Subject AW: I cant get cocoon to process??
Date Tue, 28 Jan 2003 23:46:50 GMT
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: cocoon-users-return-45607-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-users-return-45607-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von Richard Cunliffe
> Gesendet: Dienstag, 28. Januar 2003 18:01
> An: cocoon-users@xml.apache.org
> 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:peterh@northropgrumman.com]
> Sent: 28 January 2003 16:26
> To: 'richard@cunliffe.net'
> Cc: 'cocoon-users@xml.apache.org'
> 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:richard@cunliffe.net]
>
> Sent: Tuesday, January 28, 2003 4:22 AM
>
> To: cocoon-users@xml.apache.org
>
> 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>
>
>                 <text>soundpool</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:DHohls@csir.co.za]
>
> Sent: 28 January 2003 09:03
>
> To: cocoon-users@xml.apache.org
>
> 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
>
>
>
> >>> richard@cunliffe.net 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>
>
>
> ---------------------------------------------------------------------
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message