cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <>
Subject C1 to C2
Date Wed, 11 Jul 2001 19:18:50 GMT

just recently I have posted a question about having cocoon2 recognizing 
my own context under tomcat/webapp. This may be a tomcat problem, still 
I had cocoon1.8.2, together with the apache web server and tomcat, 
working just fine with my own context. Obviously, I would like to be 
able to do the same with cocoon2, but I could not get it going.

I have removed everything that had something to do with cocoon1 and got 
cocoon2 installed. No problem, I could read cocoon/welcome and try some 
of the examples. I did not make any modifications in the existing 
configuration files. So, I continued and made a very simple sitemap in 
webapps/cocoon that simply transforms foo.xml into some html. Worked 
without problem in webapps/cocoon, but, after transferring the relevant 
files to webapps/Foo and restarting tomcat and apache, I got error 
messages. If I request localhost/Foo, the content of my context is 
displayed, but it fails to start the pipeline associated with the 
transformation (localhost/Foo/foo). I get the following error:

type resource-not-found

message Resource not found

description The requested URI "/Foo/foo" was not found.

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet






foo is the pattern that should start the pipeline. This works perfectly 
all right when carried out in the cocoon context 
(http://localhost/cocoon/foo). So, it must be a context setup problem.

It seems that tomcat properly sees my context:


2001-07-11 07:50:34 - ContextManager: Adding context Ctx( /Foo )


Is there anything special that I may need to do so that 
tomcat/apache/cocoon2 work nicely together?

This is the content of a configuation file that is included into the 
apache httpd.conf file (the same I have used before with cocoon1):


LoadModule jserv_module libexec/
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultHost localhost
ApJServDefaultPort 8007

AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
AddType text/xml .xml
AddHandler jserv-servlet .xml

Alias /cocoon /usr/local/jakarta-tomcat-3.2.1/webapps/cocoon
<Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/cocoon">
     Options Indexes FollowSymLinks
ApJServMount /cocoon /cocoon
<Location /cocoon/WEB-INF/ >
     AllowOverride None
     deny from all

Alias /Foo /usr/local/jakarta-tomcat-3.2.1/webapps/Foo
<Directory "/usr/local/jakarta-tomcat-3.2.1/webapps/Foo">
     Options Indexes FollowSymLinks
ApJServMount /Foo /Foo
<Location /Foo/WEB-INF/ >
     AllowOverride None
     deny from all


Thank you for any suggestion you may have to resolve this matter,

Andre H. Juffer              | Phone: +358-8-553 1683
The Biocenter and            | Fax: +358-8-553-1141
     the Dep. of Biochemistry | Email:
University of Oulu, Finland  | WWW:

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message