You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mamadou Bobo Sylla <ma...@yahoo.com> on 2002/03/08 17:32:39 UTC
HTTP 404 error and sitemap setting
Hello to all,
I am using Tomcat4 and cocoon2. I am having the
following structure:
/cocoo/sic/ contains
voice-email.xsl
voice-exam-result.xsl
and /cocoo/sic/xsp/ contains
voice-email.xml
voice-exam-result.xml
Here is my sitemap entries for both voice-email.xml
and voice-exam-result.xml
<map:match pattern="sic/xsp/voice-email.xml">
<map:generate type="serverpages"
src="sic/xsp/voice-email.xml"/>
<map:transform type="xslt"
src="sic/voice-email.xsl"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="sic/xsp/voice-exam-result.xml">
<map:generate type="serverpages"
src="sic/xsp/voice-exam-result.xml"/>
<map:transform type="xslt"
src="sic/voice-exam-result.xsl"/>
<map:serialize type="xml"/>
</map:match>
As you have noticed both voice-email.xml
and voice-exam-result.xml are in the same directory
so are voice-email.xsl and voice-exam-result.xsl .
Yet I can request voice-exam-result.xml without any
problem but the request of voice-email.xml throws HTTP
404 not found error.
Please help me to solve this problem.
Thank you in advance.
Bobo
A final year student.
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: HTTP 404 error and sitemap setting
Posted by Mamadou Bobo Sylla <ma...@yahoo.com>.
Thanks to Luca,Olivier and Vadim.
I have now solved the problem!
The problem was the Motorola MADK I am using to voice
email a message was throwing HTTP 404 error because my
XSP was not being compiled by cocoon for some errors.
I had thought the cause of HTTP 404 could be that
cocoon was not receiving the request due to the
sitemap entries setting.
Regards,
Bobo.
--- Vadim Gritsenko <va...@verizon.net>
wrote:
> > From: Olivier Rossel
> [mailto:olivier.rossel@anyware-tech.com]
> >
> > Mamadou Bobo Sylla wrote:
> >
> > >I have cleared the sub-directories of work,
> started
> > >Tomcat but the error persists.
> > >
> > >By the way both voice-email.xml and
> > >voice-exam-result.xml receive parameters.
> > >
> > >Any other suggestion?
> > >
> > I wonder if the serverpages generator accepts XML
> files as input.
> >
> > Isn't it supposed to be XSP files (with xsp:page
> as the root element
> and
> > the xsp namespace declared)?
>
> XSP is XML. With ns1:page root element and
> ns1='http://apache.org/xsp'.
> Regarding file extension - Cocoon is not Windows; it
> does not care about
> file extensions.
>
>
> > Could the file generator be better?
>
> Only if input is not XSP.
>
>
> > What you can do also is to make the same pipeline
> for both files.
> > Here is the syntax:
> >
> > <map:match pattern="sic/xsp/*.xml">
> > <map:generate type="serverpages"
> > src="sic/xsp/{1}.xml"/>
> > <map:transform type="xslt"
> > src="sic/{1}.xsl"/>
> > <map:serialize type="xml"/>
> > </map:match>
>
> That's good advice.
>
> Vadim
>
> >
> > Try that with the "serverpages" generator and the
> "file" generator.
> >
>
>
>
---------------------------------------------------------------------
> Please check that your question has not already been
> answered in the
> FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
>
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: HTTP 404 error and sitemap setting
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Olivier Rossel [mailto:olivier.rossel@anyware-tech.com]
>
> Mamadou Bobo Sylla wrote:
>
> >I have cleared the sub-directories of work, started
> >Tomcat but the error persists.
> >
> >By the way both voice-email.xml and
> >voice-exam-result.xml receive parameters.
> >
> >Any other suggestion?
> >
> I wonder if the serverpages generator accepts XML files as input.
>
> Isn't it supposed to be XSP files (with xsp:page as the root element
and
> the xsp namespace declared)?
XSP is XML. With ns1:page root element and ns1='http://apache.org/xsp'.
Regarding file extension - Cocoon is not Windows; it does not care about
file extensions.
> Could the file generator be better?
Only if input is not XSP.
> What you can do also is to make the same pipeline for both files.
> Here is the syntax:
>
> <map:match pattern="sic/xsp/*.xml">
> <map:generate type="serverpages"
> src="sic/xsp/{1}.xml"/>
> <map:transform type="xslt"
> src="sic/{1}.xsl"/>
> <map:serialize type="xml"/>
> </map:match>
That's good advice.
Vadim
>
> Try that with the "serverpages" generator and the "file" generator.
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: HTTP 404 error and sitemap setting
Posted by Olivier Rossel <ol...@anyware-tech.com>.
Mamadou Bobo Sylla wrote:
>I have cleared the sub-directories of work, started
>Tomcat but the error persists.
>
>By the way both voice-email.xml and
>voice-exam-result.xml receive parameters.
>
>Any other suggestion?
>
I wonder if the serverpages generator accepts XML files as input.
Isn't it supposed to be XSP files (with xsp:page as the root element and
the xsp namespace declared)?
Could the file generator be better?
What you can do also is to make the same pipeline for both files.
Here is the syntax:
<map:match pattern="sic/xsp/*.xml">
<map:generate type="serverpages"
src="sic/xsp/{1}.xml"/>
<map:transform type="xslt"
src="sic/{1}.xsl"/>
<map:serialize type="xml"/>
</map:match>
Try that with the "serverpages" generator and the "file" generator.
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: HTTP 404 error and sitemap setting
Posted by Mamadou Bobo Sylla <ma...@yahoo.com>.
I have cleared the sub-directories of work, started
Tomcat but the error persists.
By the way both voice-email.xml and
voice-exam-result.xml receive parameters.
Any other suggestion?
--- Luca Morandini <lu...@tin.it> wrote:
> Mamadou,
>
> only a random thought... are you sure the sitemap
> was re-compiled after you
> added voice-email.xml ?
>
> Just in case: stop Tomcat, clear the sub-directories
> of work, start Tomcat
> again and see what happens.
>
> Best regards,
>
> ---------------------------------------------
> Luca Morandini
> GIS Consultant
> lmorandini@ieee.org
> http://utenti.tripod.it/lmorandini/index.html
> ---------------------------------------------
>
>
> > -----Original Message-----
> > From: Mamadou Bobo Sylla
> [mailto:mamadoubobo_sylla@yahoo.com]
> > Sent: Friday, March 08, 2002 5:33 PM
> > To: cocoon-users@xml.apache.org;
> m.beneteau@quaternove.fr
> > Subject: HTTP 404 error and sitemap setting
> >
> >
> > Hello to all,
> >
> > I am using Tomcat4 and cocoon2. I am having the
> > following structure:
> > /cocoo/sic/ contains
> > voice-email.xsl
> > voice-exam-result.xsl
> > and /cocoo/sic/xsp/ contains
> > voice-email.xml
> > voice-exam-result.xml
> >
> > Here is my sitemap entries for both
> voice-email.xml
> > and voice-exam-result.xml
> >
> > <map:match pattern="sic/xsp/voice-email.xml">
> > <map:generate type="serverpages"
> > src="sic/xsp/voice-email.xml"/>
> > <map:transform type="xslt"
> > src="sic/voice-email.xsl"/>
> > <map:serialize type="xml"/>
> > </map:match>
> > <map:match
> pattern="sic/xsp/voice-exam-result.xml">
> > <map:generate type="serverpages"
> > src="sic/xsp/voice-exam-result.xml"/>
> > <map:transform type="xslt"
> > src="sic/voice-exam-result.xsl"/>
> > <map:serialize type="xml"/>
> > </map:match>
> >
> > As you have noticed both voice-email.xml
> > and voice-exam-result.xml are in the same
> directory
> > so are voice-email.xsl and voice-exam-result.xsl .
> >
> > Yet I can request voice-exam-result.xml without
> any
> > problem but the request of voice-email.xml throws
> HTTP
> > 404 not found error.
> >
> > Please help me to solve this problem.
> > Thank you in advance.
> > Bobo
> > A final year student.
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Try FREE Yahoo! Mail - the world's greatest free
> email!
> > http://mail.yahoo.com/
> >
> >
>
---------------------------------------------------------------------
> > Please check that your question has not already
> been answered in the
> > FAQ before posting.
> <http://xml.apache.org/cocoon/faqs.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/faqs.html>
>
> To unsubscribe, e-mail:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@xml.apache.org>
>
__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: HTTP 404 error and sitemap setting
Posted by Luca Morandini <lu...@tin.it>.
Mamadou,
only a random thought... are you sure the sitemap was re-compiled after you
added voice-email.xml ?
Just in case: stop Tomcat, clear the sub-directories of work, start Tomcat
again and see what happens.
Best regards,
---------------------------------------------
Luca Morandini
GIS Consultant
lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
> -----Original Message-----
> From: Mamadou Bobo Sylla [mailto:mamadoubobo_sylla@yahoo.com]
> Sent: Friday, March 08, 2002 5:33 PM
> To: cocoon-users@xml.apache.org; m.beneteau@quaternove.fr
> Subject: HTTP 404 error and sitemap setting
>
>
> Hello to all,
>
> I am using Tomcat4 and cocoon2. I am having the
> following structure:
> /cocoo/sic/ contains
> voice-email.xsl
> voice-exam-result.xsl
> and /cocoo/sic/xsp/ contains
> voice-email.xml
> voice-exam-result.xml
>
> Here is my sitemap entries for both voice-email.xml
> and voice-exam-result.xml
>
> <map:match pattern="sic/xsp/voice-email.xml">
> <map:generate type="serverpages"
> src="sic/xsp/voice-email.xml"/>
> <map:transform type="xslt"
> src="sic/voice-email.xsl"/>
> <map:serialize type="xml"/>
> </map:match>
> <map:match pattern="sic/xsp/voice-exam-result.xml">
> <map:generate type="serverpages"
> src="sic/xsp/voice-exam-result.xml"/>
> <map:transform type="xslt"
> src="sic/voice-exam-result.xsl"/>
> <map:serialize type="xml"/>
> </map:match>
>
> As you have noticed both voice-email.xml
> and voice-exam-result.xml are in the same directory
> so are voice-email.xsl and voice-exam-result.xsl .
>
> Yet I can request voice-exam-result.xml without any
> problem but the request of voice-email.xml throws HTTP
> 404 not found error.
>
> Please help me to solve this problem.
> Thank you in advance.
> Bobo
> A final year student.
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>