Subject: Cocoon/Jakarta on Mac 4400 (A happy story)
To: None <port-macppc@netbsd.org>
From: Robert Schmid <robert_schmid@fourthgen.com>
List: port-macppc
Date: 08/01/2001 11:10:37
Hi folks,

It was suggested that I report my experiences with this.

Several weeks ago I set out to make Cocoon run on my mac 4400/200 running 
NetBSD.
I now have them running.  I don't recommend this setup for a production 
server because it is not fast enough to handle a serious load however, a 
faster mac should be fine.

This is how it was done, and you should be able to use this with any powermac.

Step 1.  Build NetBSD-current

In order to run Java on NetBSD you must have linux emulation running.  This 
requires building NetBSD with the LINUX_COMPAT turned on.  Instructions for 
this can be found elsewhere.

Step 2. Install the lInuxppc libraries.  The best way to do this is to use 
the pkgsrc system under emulators/linuxppc_lib.

Step 3. Install the BLACKDOWN Java package.

	You will find this in the pkgsrc under /lang/blackdown-jdk13/.
            You may need to patch the pkg for use under macppc - look to 
the site above for the patch.  (I believe it now comes patched to handle 
macppc.)
	Do not try to install the tarball from linuxppc.  The pkgsrc version is 
the only reliable release.

Step 4.  Install Jakarta-Tomcat.  http://www.apache.org
             Follow the simple instructions.

Step 5. Connect it to Apache.
	You will have to compile your own version of mod_jk.so.  This used to be 
mod_jserv and changed very recently.  You can get the source for mod_jk at 
http://jakarta.apache.org/builds/jakarta-tomcat/nightly-3.3/jakarta-tomcat-connectors-src.tar.gz. 
I assume this will eventually move to a better spot when it is confirmed 
stable.
  	Again, follow the simple instructions and run 
jakarta-tomcat-connectors/jk/native/apache-1.3/build-unix.sh.
	If this doesn't install mod_jk into the appropriate place move it to 
APACHE_HOME/libexec

Step 5.  Install Cocoon. (Optional)  http://xml.apache.org Follow the 
normal instructions.

This covers the basics - it won't win any tech-writing awards.  Good luck!