tomcat 3.1 OS linux Cocoon 1.8 kweelt 1.0 I have problem when I want to run cocoon in tomcat. If I run tomcat as a standalone server, the I can run cocoon on it. such as if I access http://tux01.cs.wisc.edu:8080/cocoon/Cocoon.xml (8080 is tomcat's port), then I can get the correct result. But if I run tomcat as a servlet server in apache, that is the problem, I can not access http://tux01.cs.wisc.edu:9000/cocoon/Cocoon.xml. netscape show such information. " Not Found The requested URL /cocoon/Cocoon.xml was not found on this server. Apache/1.3.12 Server at tux01.cs.wisc.edu Port 9000 " I think it show that cocoon/Cocoon.xml was processed by apache, not by tomcat. so I check the conf/tomcat-apache.conf, which is included in httpd.conf. then I found such paragraph " Alias /cocoon /afs/cs.wisc.edu/u/w/x/wxd/jakarta-tomcat/webapps/cocoon <Directory "/afs/cs.wisc.edu/u/w/x/wxd/jakarta-tomcat/webapps/cocoon"> Options Indexes Follow SymLinks </Directory> ApJServMount /cocoon/servlet /cocoon <Location /cocoon/WEB-INF/ > AllowOverride None deny from all </Location> " I think it means that apache will send the url /cocoon/servlet/* to tomcat /cocoon dir, not the url /cocoon/*. This paragraph is created after I add " <Context path="/cocoon" docBase="webapps/cocoon" debug="0" reloadable="true" > ^M </Context>^M " in conf/server.xml then I modify conf/tomcat.conf file, adding some thing as below " Alias /cocoon $TOMCAT_HOME/webapps/cocoon <Directory "$TOMCAT_HOME/webapps/cocoon"> Options Indexes FollowSymLinks </Directory> ApJServMount /cocoon /cocoon <Location /cocoon/WEB-INF/ > AllowOverride None deny from all </Location> " then I try to access http://tux01.cs.wisc.edu:9000/cocoon/Cocoon.xml again. It failed again with same error info. then I try access http://tux01.cs.wisc.edu:9000/cocoon/servlet/Cocoon.xml, netscape said " Error: 404 Location: /cocoon/servlet/ Not enough information /cocoon/servlet/ / " I am really confused. Is there some error in my configurartion? at last, I make comment in httpd.conf the line "include tomcat/conf/tomcat-apache.conf" . alternatively, I just add in httpd.conf the paragraph from conf/tomcat.conf " Alias /cocoon $TOMCAT_HOME/webapps/cocoon <Directory "$TOMCAT_HOME/webapps/cocoon"> Options Indexes FollowSymLinks </Directory> ApJServMount /cocoon /cocoon <Location /cocoon/WEB-INF/ > AllowOverride None deny from all </Location> " this time when I access http://tux01.cs.wisc.edu:9000/cocoon/, netscape said that the resulting web page is from Tomcat Web Server v3.1. and when I access http://tux01.cs.wisc.edu:9000/cocoon/Cocoon.xml, it return correct answer. But when I use ksp in cocoon, it does not work correctly. It seems that xml containing quilt query is first processed by cocoon then transfered to kweelt processor. So the quilt query document("some file") return exception. I am really confused. can some one tell me how to configure cocoon on tomcat correctly?
