OK, I have news with my problem: http://localhost:8080/examples/cocoon 
works fine, actually, but every other URL in the form 
http://localhost:8080/examples/cocoon/foobar seems to be resolved by Tomcat 
instead of Cocoon with its sitemap!!! So for every request I get "Apache 
Tomcat/4.0.1 - HTTP Status 404".
How can I force Cocoon resolving in place of Tomcat's???
I thought that a servlet mapping with the URI "/cocoon" was enough... but 
apparently not!

At 18:02 04/03/02 +0100, Olivier Rossel wrote:
>Florent =?iso-8859-1?Q?Soulière?= wrote:
>
>>Hi folks!
>>
>>I seeked in the mailing-list archive, but I did not found how to make 
>>cocoon and a webapp using servlets share the same session context.
>>I am using Tomcat 4.0.1 and Cocoon 2.0.1. Everything used to work well 
>>till I started to try the merge.
>>
>>Now the detailed situation:
>>For the try, I wanted to merge Cocoon2 and Tomcat's webapps/example 
>>application.
>>I included all the necessary files from cocoon directory (conf files, lib 
>>files, log directory), and checked every conf file for any manual 
>>modification. I dropped webapps/cocoon/WEB-INF/web.xml content into 
>>webapps/examples/WEB-INF/web.xml, while changing cocoon's URI from "/" to 
>>"/cocoon".
>>
>>And here is the result:
>>- Tomcat starts properly with no error msg, and cocoon initialization 
>>lines are displayed as usual
>>- when I type 
>>http://localhost:8080/examples/cocoonhttp://localhost:8080/examples/cocoon 
>>  in my web browser, I get a "resource not found" error
>>
>>After several tests around this problem, it appears in the logs that 
>>Cocoon "forgets" the examples/cocoon part of the URL during the URI 
>>resolving...
>>
>>So what is the problem? does anyone know?
>>
>>Thank you in advance.
>>
>>Florent Soulière @ T-Systems
>
>May be you should try the URL:
>http://localhost:8080/examples/cocoon/ (with the slash).
>Or add a pattern in the sitemap that matches the string "".
>BTW, the sitemap receives the substring of the URL that is AFTER the 
>context name.
>
>
>---------------------------------------------------------------------
>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: <[EMAIL PROTECTED]>
>For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to