stefano 00/07/19 17:11:02 Modified: xdocs installation-case.xml livesites.xml Log: updated installation case and new livesites Revision Changes Path 1.2 +356 -8 xml-cocoon/xdocs/installation-case.xml Index: installation-case.xml =================================================================== RCS file: /home/cvs/xml-cocoon/xdocs/installation-case.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- installation-case.xml 2000/05/30 21:16:36 1.1 +++ installation-case.xml 2000/07/20 00:11:01 1.2 @@ -71,7 +71,8 @@

- Warning : This is long and verbose ! + Warning : This is long and verbose ! The steps and file listings should be read in the order given i.e top + down to bottom. @@ -326,7 +327,7 @@
  • And again the really important step, copy the cocoon.properties file into the new gogo directory.
  • - +
  • Kill Jakarta-Tomcat.
  • Kill Apache.
  • @@ -350,12 +351,42 @@ as long as cocoon.properties is also in there (which it should be or else you won't be able to see the internal Cocoon.xml status page) then it should all work from that ROOT directory. +
  • In order to avoid Jakarta-Tomcat having to serve up the XML files on port 8080, the + C:\Program_Files\jakarta-tomcat\conf\tomcat-apache.conf file can be modified by adding + the line AddHandler jserv-servlet .xml. (Refer to the start of the listing for + C:\Program_Files\jakarta-tomcat\conf\tomcat-apache-cocoon.conf below to see where the line should be.)
  • + +
  • After starting/stopping Jakarta-Tomcat and Apache in the same manner as described above you should now + be able to access XML files without specifying port 8080. e.g http://shaggy.blimp.au/samples/index.xml. + Note : if your browser cannot find the file then make sure your C:\Program_Files\jakarta-tomcat\conf\server.xml + file has alias directives for the samples directory. See text below and code segment.
  • + +
  • Note: You must be careful when making modifications to C:\Program_Files\jakarta-tomcat\conf\tomcat-apache.conf + because this file is automatically generated each time Jakarta-Tomcat starts and will therefore overwrite any + modifications you have made. To complicate matters, the contents of C:\Program_Files\jakarta-tomcat\conf\server.xml, + where you might specify some context "AutoSetup actions", determines some of the content of + C:\Program_Files\jakarta-tomcat\conf\tomcat-apache.conf, so simply making a once off copy of + C:\Program_Files\jakarta-tomcat\conf\tomcat-apache.conf and adding the AddHandler jserv-servlet .xml + line and referencing the copied .conf file with the include statement in + C:\Program_Files\Apache Group\Apache\conf\httpd.conf may also lead to problems.
  • + +
  • My solution was to eliminate all context AutoSetup actions in C:\Program_Files\jakarta-tomcat\conf\server.xml, then copy + C:\Program_Files\jakarta-tomcat\conf\tomcat-apache.conf to C:\Program_Files\jakarta-tomcat\conf\tomcat-apache-cocoon.conf, then + add the line AddHandler jserv-servlet .xml to C:\Program_Files\jakarta-tomcat\conf\tomcat-apache-cocoon.conf, then + modify the include statement in C:\Program_Files\Apache Group\Apache\conf\httpd.conf to read + include C:/Program_Files/jakarta-tomcat/conf/tomcat-apache-cocoon.conf. This method places the onus on the webmaster + to make sure the copied and modified version of C:\Program_Files\jakarta-tomcat\conf\tomcat-apache-cocoon.conf is always + up to date. See code segment below.
  • + +
  • I have listed my simplied C:\Program_Files\jakarta-tomcat\conf\server.xml file. Note the references to my test gogo + directory in this file which are needed in order to get the hello-page.xml example working without using port 8080 in the + address. See code segment below.
  • -
  • Well, thats how I got it to work
  • +
  • Well, thats how I got it to work.
  • Works for me and I hope for you too.
  • -
  • No worries !
  • +
  • Sorry for all the completely specfied file and directory paths, but it should at least be unambiguous. No worries !
  • @@ -496,13 +527,177 @@ ]]> + +

    C:\Program_Files\jakarta-tomcat\conf\tomcat-apache-cocoon.conf

    + + + Options Indexes FollowSymLinks + + ApJServMount /examples/servlet /examples + + AllowOverride None + deny from all + + + Alias /test C:\Program_Files\jakarta-tomcat\webapps\test + + Options Indexes FollowSymLinks + + ApJServMount /test/servlet /test + + AllowOverride None + deny from all + + + Alias /admin C:\Program_Files\jakarta-tomcat\webapps\admin + + Options Indexes FollowSymLinks + + ApJServMount /admin/servlet /admin + + AllowOverride None + deny from all + + + Alias /samples C:\Program_Files\jakarta-tomcat\webapps\samples + + Options Indexes FollowSymLinks + + ApJServMount /samples/servlet /samples + + AllowOverride None + deny from all + + + Alias /gogo C:\Program_Files\jakarta-tomcat\webapps\gogo + + Options Indexes FollowSymLinks + + ApJServMount /gogo/servlet /gogo + + AllowOverride None + deny from all + + + ApJServMount /servlet /ROOT + ]]> + +

    C:\Program_Files\jakarta-tomcat\conf\server.xml

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + +

    C:\Program_Files\Apache Group\Apache\conf\httpd.conf

    + + + # ServerAdmin webmaster@host.some_domain.com + # DocumentRoot /www/docs/host.some_domain.com + # ServerName host.some_domain.com + # ErrorLog logs/host.some_domain.com-error_log + # CustomLog logs/host.some_domain.com-access_log common + # + + # + # + + # + # Jakarta-Tomcat conf file + # + include C:/Program_Files/jakarta-tomcat/conf/tomcat-apache-cocoon.conf + ]]> + -