You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Aurélien DEHAY <au...@sncf.fr> on 2000/10/05 17:04:15 UTC

[C2] Ressource not found

Hello.

I've got some problems while running Cocoon2/Tomcat 3.1.

I've installed this using the xdocs/installing.xml file, but when I
try to read the http://localhost:8080/cocoon/welcome file, and any
other file in /cocoon (simple-dynamic-page, status, etc.), I've always
got the same problem:

Netscape whant to save the file (welcome), and here is the content of
this file:

<notify type="resource-not-found" sender="org.apache.cocoon.servlet.CocoonServlet">
  <title>Resource not found</title>
  <source>Cocoon servlet</source>
  <message>Resource not found</message>
  <description>The requested URI "/cocoon/welcome" was not found.</description>
  <extra description="request-uri">/cocoon/welcome</extra>
  <extra description="path-info">/welcome</extra>
</notify>

Does someone have an answer? 

Thanks.
-- 
Aurélien

Re: [C2] Ressource not found

Posted by Aurélien DEHAY <au...@sncf.fr>.
dima <di...@hyperfluid.com> writes:

> The problem is as I have outlined in my last email. There is a bug in
> CocoonServlet.java.
> 
>  I was getting exactly the same error with the Cocoon 2.0a3 build until
> I fixed it in the manner outlined :
> 
>  in org.apache.cocoon.servlet.CocoonServlet.java (:276)
> 
> 	if (pathInfo !=  null) uri += pathInfo; //that's what should be
> 	if (pathInfo != null) uri += "/" + pathInfo; //is what there now.
> 
> 	if you pump req.getServletPath () to output you get "" (empty string),
> not null obviously, my stupidity :)
> 	if you pump reg.getPathIinfo () , you get "/".
> 
> patch it, and it will certainly work :)

With Tomcat 3.1? I've installed Tomcat 4 and it works without the patch.

> 
> 
>  I am running Tomcat on Linux Slackware. :)

Me too :).

>  
> 
> cheers, dima
> 
> Simeon Walker wrote:
> > 
> > I have the same exactly the same problem with the version just checked
> > out of cvs :-( Same Tomcat version too.
> > 
> > Simeon
> > 
> > Aurélien DEHAY wrote:
> > >
> > > Hello.
> > >
> > > I've got some problems while running Cocoon2/Tomcat 3.1.
> > >
> > > I've installed this using the xdocs/installing.xml file, but when I
> > > try to read the http://localhost:8080/cocoon/welcome file, and any
> > > other file in /cocoon (simple-dynamic-page, status, etc.), I've always
> > > got the same problem:
> > >
> > > Netscape whant to save the file (welcome), and here is the content of
> > > this file:
> > >
> > > <notify type="resource-not-found" sender="org.apache.cocoon.servlet.CocoonServlet">
> > >   <title>Resource not found</title>
> > >   <source>Cocoon servlet</source>
> > >   <message>Resource not found</message>
> > >   <description>The requested URI "/cocoon/welcome" was not found.</description>
> > >   <extra description="request-uri">/cocoon/welcome</extra>
> > >   <extra description="path-info">/welcome</extra>
> > > </notify>
> > >
> > > Does someone have an answer?
> > >
> > > Thanks.
> > > --
> > > Aurélien
> > 
> > --
> > ---------------------------------------------------------------------
> > Simeon Walker,                      email: simeon@sbs.bangor.ac.uk
> > School of Biological Sciences,      phone: +44 (0)1248 383702
> > University of Wales, Bangor,        fax: +44 (0)1248 382569
> > Gwynedd, LL57 2UW, UK.              www: http://sbsweb.bangor.ac.uk/
> > ---------------------------------------------------------------------
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

-- 
Aurélien

Re: [C2] Ressource not found

Posted by dima <di...@hyperfluid.com>.
The problem is as I have outlined in my last email. There is a bug in
CocoonServlet.java.

 I was getting exactly the same error with the Cocoon 2.0a3 build until
I fixed it in the manner outlined :

 in org.apache.cocoon.servlet.CocoonServlet.java (:276)

	if (pathInfo !=  null) uri += pathInfo; //that's what should be
	if (pathInfo != null) uri += "/" + pathInfo; //is what there now.

	if you pump req.getServletPath () to output you get "" (empty string),
not null obviously, my stupidity :)
	if you pump reg.getPathIinfo () , you get "/".

patch it, and it will certainly work :)

 I am running Tomcat on Linux Slackware. :)

cheers,
dima

Simeon Walker wrote:
> 
> I have the same exactly the same problem with the version just checked
> out of cvs :-( Same Tomcat version too.
> 
> Simeon
> 
> Aurélien DEHAY wrote:
> >
> > Hello.
> >
> > I've got some problems while running Cocoon2/Tomcat 3.1.
> >
> > I've installed this using the xdocs/installing.xml file, but when I
> > try to read the http://localhost:8080/cocoon/welcome file, and any
> > other file in /cocoon (simple-dynamic-page, status, etc.), I've always
> > got the same problem:
> >
> > Netscape whant to save the file (welcome), and here is the content of
> > this file:
> >
> > <notify type="resource-not-found" sender="org.apache.cocoon.servlet.CocoonServlet">
> >   <title>Resource not found</title>
> >   <source>Cocoon servlet</source>
> >   <message>Resource not found</message>
> >   <description>The requested URI "/cocoon/welcome" was not found.</description>
> >   <extra description="request-uri">/cocoon/welcome</extra>
> >   <extra description="path-info">/welcome</extra>
> > </notify>
> >
> > Does someone have an answer?
> >
> > Thanks.
> > --
> > Aurélien
> 
> --
> ---------------------------------------------------------------------
> Simeon Walker,                      email: simeon@sbs.bangor.ac.uk
> School of Biological Sciences,      phone: +44 (0)1248 383702
> University of Wales, Bangor,        fax: +44 (0)1248 382569
> Gwynedd, LL57 2UW, UK.              www: http://sbsweb.bangor.ac.uk/
> ---------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org

Re: [C2] Ressource not found

Posted by Simeon Walker <si...@sbs.bangor.ac.uk>.
I have the same exactly the same problem with the version just checked
out of cvs :-( Same Tomcat version too.

Simeon

Aurélien DEHAY wrote:
> 
> Hello.
> 
> I've got some problems while running Cocoon2/Tomcat 3.1.
> 
> I've installed this using the xdocs/installing.xml file, but when I
> try to read the http://localhost:8080/cocoon/welcome file, and any
> other file in /cocoon (simple-dynamic-page, status, etc.), I've always
> got the same problem:
> 
> Netscape whant to save the file (welcome), and here is the content of
> this file:
> 
> <notify type="resource-not-found" sender="org.apache.cocoon.servlet.CocoonServlet">
>   <title>Resource not found</title>
>   <source>Cocoon servlet</source>
>   <message>Resource not found</message>
>   <description>The requested URI "/cocoon/welcome" was not found.</description>
>   <extra description="request-uri">/cocoon/welcome</extra>
>   <extra description="path-info">/welcome</extra>
> </notify>
> 
> Does someone have an answer?
> 
> Thanks.
> --
> Aurélien

-- 
---------------------------------------------------------------------
Simeon Walker,                      email: simeon@sbs.bangor.ac.uk
School of Biological Sciences,      phone: +44 (0)1248 383702
University of Wales, Bangor,        fax: +44 (0)1248 382569
Gwynedd, LL57 2UW, UK.              www: http://sbsweb.bangor.ac.uk/
---------------------------------------------------------------------

Re: [C2] Ressource not found

Posted by Aurélien DEHAY <au...@sncf.fr>.
"Aurélien DEHAY" <au...@sncf.fr> writes:


[...]

It's works better with Tomcat 4-m1. Much better.
-- 
Aurélien