TOMCAT4.1のインストール |
java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) |
export JAVA_HOME=/usr/local/j2sdk export ANT_HOME=/usr/local/ant export PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin |
Tomcat [root src]# tar zxvf jakarta-tomcat-4.1.24-src.tar.gz Servlet API Binary [root src]# tar zxvf jakarta-servletapi-4-20030603.tar.gz Commons Beanutils [root src]# tar zxvf commons-beanutils-1.6.1.tar.gz Commons Collections [root src]# tar zxvf collections-2.1.tar.gz Commons Digester [root src]# tar zxvf commons-digester-1.4.1.tar.gz Commons Logging [root src]# tar zxvf commons-logging-1.0.2.tar.gz Jakarta Regular Expressions Library [root src]# tar zxvf jakarta-regexp-1.2.tar.gz Commons Pool [root src]# tar zxvf commons-pool-1.0.1.tar.gz Jakarta Tomcat Connectors [root src]# tar zxvf jakarta-tomcat-connectors-4.1.24-src.tar.gz Commons FileUpload [root src]# tar zxvf commons-fileupload-1.0-beta-1.tar.gz Xerces XML Parser [root src]# tar zxvf Xerces-J-bin.2.4.0.tar.gz Java Naming and Directory Interface (JNDI) [root src]# unzip -d jndi-1.2.1 jndi-1_2_1.zip [root src]# unzip -d jndi-1.2.1 ldap-1_2_4.zip Commons Modeler [root src]# tar zxvf commons-modeler-1.0.tar.gz Java Management Extensions (JMX) [root src]# tar zxvf mx4j-1.1.1.tar.gz |
[root src]# cd jakarta-tomcat-4.1.24-src/ [root jakarta-tomcat-4.1.24-src]# cp build.properties.sample build.properties [root jakarta-tomcat-4.1.24-src]# vi build.properties |
# ----- Default Base Path for Dependent Packages ----- #base.path=/usr/local base.path=/usr/local/src <- コンパイルするディレクトリです。 # ----- Jakarta Tomcat Connectors source path ----- #jtc.home=../../jakarta-tomcat-connectors jtc.home=../../jakarta-tomcat-connectors-4.1.24-src <- ディレクトリ名変更 # ----- Jakarta Tomcat Jasper source path ----- #jasper.home=../jakarta-tomcat-jasper/jasper2 jasper.home=jasper <- jakarta-tomcat-jasperがどこから取得するか不明。それっぽいディレクトリがあったので指定してしまいました。^^; # ----- Xerces XML Parser, version 2.0.0 or later ----- # Note: Optional with JDK 1.4+, or if Xerces 1.x is present #xerces.home=${base.path}/xerces-2_3_0 xerces.home=${base.path}/xerces-2_4_0 <- ディレクトリ名変更 |
[root jakarta-tomcat-4.1.24-src]# ant |
BUILD FAILED file:/usr/local/src/jakarta-tomcat-4.1.24-src/webapps/tomcat-docs/build.xml:172: Basedir /usr/local/sr c/jakarta-tomcat-4.1.24-src/jakarta-tomcat-connectors-4.1.24-src/jk does not exist |
<property name="tomcat-jk.home" value="../${jtc.home}/jk"/> |
[root jakarta-tomcat-4.1.24-sr ]# cp -pr build ../../tomcat |
#!/bin/sh # securlevel: 40 # Source function library. . /etc/init.d/functions export JAVA_HOME=/usr/local/j2sdk INITLOG_ARGS="" BINDIR=/usr/local/tomcat/bin # See how we were called. case "$1" in start) echo -n "Starting tomcat: " ${BINDIR}/startup.sh echo touch /var/lock/subsys/tomcat ;; stop) echo -n "Shutting down tomcat: " ${BINDIR}/shutdown.sh echo rm -f /var/lock/subsys/tomcat rm -f /var/run/tomcat.pid ;; status) status tomcat ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 esac exit 0 |
[root init.d]# cd ../rc3.d [root rc3.d]# ln -s ../init.d/tomcat S81tomcat [root rc3.d]# cd ../rc5.d [root rc5.d]# ln -s ../init.d/tomcat S81tomcat [root rc5.d]# cd ../rc0.d [root rc0.d]# ln -s ../init.d/tomcat K09tomcat [root rc0.d]# cd ../rc6.d [root rc6.d]# ln -s ../init.d/tomcat K09tomcat |
お問い合わせはwebmaster@ryouto.jpまで。
Copyright (C)2003 ryouto.jp. All Rights Reserved.