You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Chance, Sam USA" <sg...@nps.navy.mil> on 2003/08/28 02:33:29 UTC
Resource Not Found Message
Hi!
I recently upgraded my Tomcat version from 4.1.18 to 4.1.27 and I can no
longer access my Cocoon application. I'm using Cocoon 2.0.4. My main
sitemap includes the following mount to the sub sitemap:
<map:pipelines>
<!--my mount for the route application sub-sitemap-->
<map:pipeline>
<map:match pattern="route/**">
<map:mount uri-prefix="route"
src="route/sitemap.xmap" check-reload="yes" reload-method="synchron"/>
</map:match>
</map:pipeline>
.
.
.
</map:pipelines>
Here is the relevant snippet from the sub-sitemap:
<map:pipelines>
<map:pipeline>
<map:match pattern="">
<map:redirect-to uri="index.html"/>
</map:match>
</map:pipeline>
<!-- <map:pipeline>
<map:match pattern="index.htm*">
<map:redirect-to uri="index.html"/>
</map:match>
</map:pipeline>
-->
<map:pipeline>
<map:match pattern="index.html">
<map:generate type="file"
src="content/main.xml"/>
<map:transform type="xslt"
src="style/main.xsl"/>
<map:serialize type="html"/>
</map:match>
</map:pipeline>
.
.
.
</map:pipelines>
Can anyone explain what I'm doing wrong? I simply upgraded Tomcat and
it no longer works. I get "Cocoon 2 - Resource not found when I enter
http://localhost:8080/cocoon/route
Thank you!
Sam
Re: Resource Not Found Message
Posted by Joerg Heinicke <jh...@virbus.de>.
Sam Chance wrote:
> By the way, Can I use the latest Xerces/Xalan libs, or must I use the
> versions shipped with Cocoon?
>
> Thank you!
> Sam
The Xerces/Xalan libs in Tomcat's endorsed directory should correspond
to the ones used in Cocoon. So if you want to use latest Xerces/Xalan,
you should update them in both places.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Resource Not Found Message
Posted by Sam Chance <sg...@nps.navy.mil>.
Thank you! Rookie mistake. Just as you suggested, I am using JDK 1.4 and I
DID forget to copy the endorsed libs to the common/endorsed directory in the
new Tomcat...sorry about that!
By the way, Can I use the latest Xerces/Xalan libs, or must I use the
versions shipped with Cocoon?
Thank you!
Sam
-----Original Message-----
From: Geoff Howard [mailto:cocoon@leverageweb.com]
Sent: Wednesday, August 27, 2003 6:19 PM
To: users@cocoon.apache.org
Subject: Re: Resource Not Found Message
Chance, Sam USA wrote:
> Hi!
>
> I recently upgraded my Tomcat version from 4.1.18 to 4.1.27 and I can no
> longer access my Cocoon application. I’m using Cocoon 2.0.4. My main
> sitemap includes the following mount to the sub sitemap:
Which JDK? If 1.4, did you forget to move the endorsed libs to
common/endorsed in the new Tomcat?
> Can anyone explain what I’m doing wrong? I simply upgraded Tomcat and
> it no longer works. I get “Cocoon 2 – Resource not found when I enter
> http://localhost:8080/cocoon/route
Can you determine whether Cocoon or Tomcat is giving this message? What
happens if you simplify the sitemap and put a matcher in the root
sitemap to return a static page (like an html page with a reader)?
Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Resource Not Found Message
Posted by Geoff Howard <co...@leverageweb.com>.
Chance, Sam USA wrote:
> Hi!
>
> I recently upgraded my Tomcat version from 4.1.18 to 4.1.27 and I can no
> longer access my Cocoon application. I’m using Cocoon 2.0.4. My main
> sitemap includes the following mount to the sub sitemap:
Which JDK? If 1.4, did you forget to move the endorsed libs to
common/endorsed in the new Tomcat?
> Can anyone explain what I’m doing wrong? I simply upgraded Tomcat and
> it no longer works. I get “Cocoon 2 – Resource not found when I enter
> http://localhost:8080/cocoon/route
Can you determine whether Cocoon or Tomcat is giving this message? What
happens if you simplify the sitemap and put a matcher in the root
sitemap to return a static page (like an html page with a reader)?
Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: Resource Not Found Message
Posted by Sam Chance <sg...@nps.navy.mil>.
I actually did look at the logs, but I was unable to gain insight. As you
may have seen in my response to Geoff's advice, I made a mistake and forgot
to copy the xerces/xalan libs to the new Tomcat common/endorsed directory...
Thank you for responding!
Sam
-----Original Message-----
From: Christoph Gaffga [mailto:cgaffga@triplemind.com]
Sent: Wednesday, August 27, 2003 5:51 PM
To: users@cocoon.apache.org
Subject: Re: Resource Not Found Message
What are your logs telling?
Christoph
----- Original Message -----
From: "Chance, Sam USA" <sg...@nps.navy.mil>
To: <us...@cocoon.apache.org>
Sent: Thursday, August 28, 2003 2:33 AM
Subject: Resource Not Found Message
>
> Hi!
>
> I recently upgraded my Tomcat version from 4.1.18 to 4.1.27 and I can no
> longer access my Cocoon application. I'm using Cocoon 2.0.4. My main
> sitemap includes the following mount to the sub sitemap:
>
> ...
>
> Can anyone explain what I'm doing wrong? I simply upgraded Tomcat and
> it no longer works. I get "Cocoon 2 - Resource not found when I enter
> http://localhost:8080/cocoon/route
>
> Thank you!
> Sam
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Resource Not Found Message
Posted by Christoph Gaffga <cg...@triplemind.com>.
What are your logs telling?
Christoph
----- Original Message -----
From: "Chance, Sam USA" <sg...@nps.navy.mil>
To: <us...@cocoon.apache.org>
Sent: Thursday, August 28, 2003 2:33 AM
Subject: Resource Not Found Message
>
> Hi!
>
> I recently upgraded my Tomcat version from 4.1.18 to 4.1.27 and I can no
> longer access my Cocoon application. I'm using Cocoon 2.0.4. My main
> sitemap includes the following mount to the sub sitemap:
>
> ...
>
> Can anyone explain what I'm doing wrong? I simply upgraded Tomcat and
> it no longer works. I get "Cocoon 2 - Resource not found when I enter
> http://localhost:8080/cocoon/route
>
> Thank you!
> Sam
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Resource Not Found Message
Posted by Upayavira <uv...@upaya.co.uk>.
From your sitemap, the url http://localhost:8080/cocoon/route shouldn't
work. Using http://localhost:8080/cocoon/route/
<http://localhost:8080/cocoon/route> should.
I think you'll find Cocoon is working file, but you discretely changed
your URL!
To make the former work, add to your main sitemap:
<map:match pattern="route">
<map:mount uri-prefix="route" src="route/sitemap.xmap" check-reload"
reload-method="synchron"/>
</map:match>
Regards, Upayavira
Chance, Sam USA wrote:
> Hi!
>
> I recently upgraded my Tomcat version from 4.1.18 to 4.1.27 and I can
> no longer access my Cocoon application. I’m using Cocoon 2.0.4. My
> main sitemap includes the following mount to the sub sitemap:
>
> <map:pipelines>
>
> <!--my mount for the route application sub-sitemap-->
>
> <map:pipeline>
>
> <map:match pattern="route/**">
>
> <map:mount uri-prefix="route" src="route/sitemap.xmap"
> check-reload="yes" reload-method="synchron"/>
>
> </map:match>
>
> </map:pipeline>
>
> .
>
> .
>
> .
>
> </map:pipelines>
>
> Here is the relevant snippet from the sub-sitemap:
>
> <map:pipelines>
>
> <map:pipeline>
>
> <map:match pattern="">
>
> <map:redirect-to uri="index.html"/>
>
> </map:match>
>
> </map:pipeline>
>
> <!-- <map:pipeline>
>
> <map:match pattern="index.htm*">
>
> <map:redirect-to uri="index.html"/>
>
> </map:match>
>
> </map:pipeline>
>
> -->
>
> <map:pipeline>
>
> <map:match pattern="index.html">
>
> <map:generate type="file" src="content/main.xml"/>
>
> <map:transform type="xslt" src="style/main.xsl"/>
>
> <map:serialize type="html"/>
>
> </map:match>
>
> </map:pipeline>
>
> .
>
> .
>
> .
>
> </map:pipelines>
>
> Can anyone explain what I’m doing wrong? I simply upgraded Tomcat and
> it no longer works. I get “Cocoon 2 – Resource not found when I enter
> http://localhost:8080/cocoon/route
>
> Thank you!
>
> Sam
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org