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>
<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:[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.
------------------------------------------------------------------------
---------------------------------------------------------------------
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
50935 Köln
Telefon: +49-221-56011-0
Fax: +49-221-56011-20
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]>