You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ra...@aol.com on 2002/06/17 19:06:47 UTC

Getting 404 error when requesting XML docs

Hi all,
      I am not able to view XML files with Cocoon.  Everytime I request an 
XML document, I get the 404 error page - File Not Found.
     I am running Cocoon 2.0.2 with Tomcat 4.0.3 and Apache HTTP server 
2.0.36 on Windows XP Home Edition with JDK 1.3.1.  I've been working on this 
problem all week with zero results.  The error log is empty...is there 
anywhere other than the error log to track down this problem?  Has anyone 
seen this?  Any help is greatly appreciated -  

-Ray

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


Re: Getting 404 error when requesting XML docs

Posted by Michael Mangeng <mi...@ideefix.net>.
Hi

You have to make a appropriate entry in the sitemap for the file or a group
of files.. (or even all files ;-))

for example:


<map:pipeline>
<map:match pattern="{1}.xml">
    <map:generate type="file" src="xml/{1}.xml"/>
    <map:serialize type="xml"/>
</map:match>
... ...
</map:pipeline>


after a request to test.xml, you should get
/path/to/tomcat/webapps/contextroot/xml/test.xml

greetings
mike
----- Original Message -----
From: <Ra...@aol.com>
To: <co...@xml.apache.org>
Sent: Monday, June 17, 2002 7:06 PM
Subject: Getting 404 error when requesting XML docs


> Hi all,
>       I am not able to view XML files with Cocoon.  Everytime I request an
> XML document, I get the 404 error page - File Not Found.
>      I am running Cocoon 2.0.2 with Tomcat 4.0.3 and Apache HTTP server
> 2.0.36 on Windows XP Home Edition with JDK 1.3.1.  I've been working on
this
> problem all week with zero results.  The error log is empty...is there
> anywhere other than the error log to track down this problem?  Has anyone
> seen this?  Any help is greatly appreciated -
>
> -Ray
>
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>