I found a way to use Cocoon via SSI in combination with Apache and Tomcat (no easy task). My assumption for doing this is, that in a productive environment Cocoon should only do that part of a page dynamic, which alters during execution (for example a guestbook -> jdbc-call) .
My problem is to get a unique session for these pages and transmit request parameters between the HTML-Pages, which I can retrieve in the dynamic Cocoon pages. I generated static HTML-Files form a Cocoon project. Inside these files I call dynamic Cocoon pages via Tomcat with a SSI call: <!--#set var="http_host" value="$http_host"--> <!--#set var="document_name" value="$document_name"--> <!--#set var="query_string" value="$query_string"--> <!--#config errmsg="<br><b>No server connection.</b><br>"--> <!--#include virtual="/dynamic/guestbook.xsp"--> In my httpd.conf File I can use the 'JkEnvVar'-statement to transmit some but not all environment variables (s.o. #set var encoding). I didn't found a way to transmit the request. LoadModule jk_module /usr/lib/apache/mod_jk-2.0.43.so <IfModule mod_jk.c> JkWorkersFile /hnet/tomcat/conf/workers.properties JkLogFile /var/log/httpd/t4_mod_jk.log JkLogLevel debug JkEnvVar http_host http_host JkEnvVar document_name document_name JkEnvVar query_string query_string </IfModule> To complete the configuration here my Tomcat4 server.xml file: <Service name="Tomcat-Apache"> <Connector className="org.apache.ajp.tomcat4.Ajp13Connector" port="8009" minProcessors="5" maxProcessors="75" acceptCount="10" debug="0" address="127.0.0.1"/> <Engine name="Standalone" defaultHost="localhost" debug="0"> <Logger className="org.apache.catalina.logger.FileLogger" directory="/var/log/httpd" prefix="t4_ajp." suffix=".txt" timestamp="true"/> <Realm className="org.apache.catalina.realm.MemoryRealm" /> <Host name="localhost" debug="0" appBase="webapps" unpackWARs="false"> <Context path="/dynamic" docBase="cocoon" debug="0" privileged="true" crossContext="true" cookies="true"> </Context> </Host> </Engine> </Service> My configuration is: Apache 2.0.43 Tomcat 4.1.12 Apache-Tomcat communication mod_jk2-2.0.43.so Cocoon 2.0.4 I also tried mod_webapp.so (self compiled from tomcat resources). This is faster, but the results are the same. Thanks for your help, Christian ________________________ Christian Hoofe Email [EMAIL PROTECTED] ________________________ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>