[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

tomcat4+J2SDK1.3 from Sun - up and working!



Hi this is my primitive solution but it is easy and working!

1)  download and install (sh ./) in "tmp" folder j2sdk1.3.1 from
www.java.sun.com
2)  put these debs in "/etc/apt/sources.list" :

	deb ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/debian/
	woody	non-free	deb http://www.tux.org/pub/java/debian sid main non-free

3)  apt-get install j2sdk1.3
4)  cp all the contents from "tmp" to "/usr/lib/j2se/1.3/" delete the
original first! (this is because the blackdown is not stable!!!)5)  try java -version and javac
6)  download tomcat 4.1.29 tgz from
"http://jakarta.apache.org/site/binindex.cgi"7)  tar -xvvzf tomctat~.tar.gz in "tmp2" folder
8)  apt-get install tomcat4
9)  cp all the contents from "tmp2" to /usr/share/tomcat4/ delete the
original first! (this because it is newer version!)10) try /usr/share/tomcat4/bin/startup.sh
11) erase entire contents of /etc/init.d/tomcat4 and put :

		#! /bin/sh
		#
		# tomcat   Start up tomcat
		#
		#     Written by Miquel van Smoorenburg <miquels@cistron.nl>.
		#     Modified for Debian GNU/Linux
		#     by Ian Murdock <imurdock@gnu.ai.mit.edu>.
		#     Modified for Tomcat and Cocoon by <markj@luminas.co.uk>

		export JAVA_HOME=/usr/lib/j2sdk1.3
		export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.3

		export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
		DAEMON=$TOMCAT_HOME/bin/tomcat.sh
		NAME=tomcat
		DESC="tomcat"

		test -f $DAEMON || exit 0

		set -e

		case "$1" in
		  start)
			echo -n "Starting $DESC: "
			/usr/bin/X11/Xvfb :0 &
			echo $! >/var/run/tomcat-xvfb.pid
			$DAEMON start >>/var/log/tomcat 2>&1
			echo "$NAME."
			;;
		  stop)
			echo -n "Stopping $DESC: "
			$DAEMON stop >>/var/log/tomcat 2>&1
			kill $(cat /var/run/tomcat-xvfb.pid)
			echo "$NAME."
			;;
		  restart|force-reload)
			echo -n "Restarting $DESC: "
			$DAEMON stop >>/var/log/tomcat 2>&1
			sleep 1
			$DAEMON start >>/var/log/tomcat 2>&1
			echo "$NAME."
			;;
		  *)
			N=/etc/init.d/$NAME
			echo "Usage: $N {start|stop|restart|force-reload}" >&2
			exit 1
			;;
		esac

		exit 0

(this from http://www.luminas.co.uk/technology/cocoon/initscript.html)

change
		DAEMON=$TOMCAT_HOME/bin/tomcat.sh
		NAME=tomcat
		DESC="tomcat"
		and log files too!
if needed!
12) try /etc/init.d/tomcat4 start
13) isue this: update-rc.d tomcat4 start 91 2 3 4 5  . stop 20 0 1 6 .

You got it Now link to apache and be happy!


	for mod_jk -> http://katanalynx.dyndns.org/archives/000002.html

edit these files to make sure you have the right path in all of them!

	/etc/apache/httpd.conf (at the end!)
	/etc/tomcat/jk/workers.properties
	/etc/tomcat/jk/tomcat.conf

edit server.conf (wherever it is!) disable standalone and enable ajp13!
(look and URL above!)
mine one is working just fine and it's looking stable so far!




Reply to: