cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Hoofe" <>
Subject Using Cocoon via SSI
Date Sun, 16 Feb 2003 10:51:51 GMT
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 

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/

   <IfModule mod_jk.c>
   JkWorkersFile	/hnet/tomcat/conf/
   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

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=""/>

      <Engine name="Standalone" defaultHost="localhost" debug="0">

      <Logger className="org.apache.catalina.logger.FileLogger"
              directory="/var/log/httpd" prefix="t4_ajp." suffix=".txt"

      <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"


My configuration is:
Apache 2.0.43
Tomcat 4.1.12

Apache-Tomcat communication 
Cocoon 2.0.4

I also tried (self compiled from tomcat resources). This is 
faster, but the results are the same.

Thanks for your help,


  Christian Hoofe

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