- 论坛徽章:
- 0
|
我在Readme中看到的:
The tomcat-webapp.jar is build using Ant.
To get Ant see (http://jakarta.apache.org/ant/index.html).
To build the tomcat-webapp.jar you have to do the following:
* Edit build.properties to taste. This file is created by ./configure when
the WebApp module is configured, see below.
* Run "ant". It'll build the tomcat-webapp.jar
* Copy the build/lib/tomcat-webapp.jar in the Tomcat server/lib directory.
好像是说要用ant生成tomcat-webapp.jar然后copy到server/lib
是不是在整合过程中必须要做?我配了一天还是没整合好,apache和tomcat单独运行都没有问题,请大家帮帮我呀!
浏览http://192.168.1.71/examples/时的错误信息:
WebApp: Error 404
(File: /usr/src/jakarta-tomcat-connectors-4.1.12-src/webapp/lib/wa_request.c Line: 205)
--------------------------------------------------------------------------------
Web-application not yet deployed
以下是我的安装过程:
./j2sdk-1_4_1_02-linux-i586-rpm.bin
rpm -ivh j2sdk-1_4_1_02-fcs-linux-i586.rpm
cd /usr/java
ln -s j2sdk1.4.1_02 jdk
cd ~admin
tar zxvf jakarta-tomcat-4.1.12.tar.gz -C /usr/local
cd /usr/local/
ln -s jakarta-tomcat-4.1.2 tomcat
vi /etc/profile
#add profile
PATH=$PATH:/usr/java/jdk/bin:/usr/java/jdk/jre/bin
JAVA_HOME=/usr/java/jdk
CLASSPATH="./:/usr/java/jdk/lib:/usr/java/jdk/jre/lib"
CATALINA_HOME=/usr/local/tomcat
export JAVA_HOME CLASSPATH CATALINA_HOME
#end profile
useradd tomcat
chown -R tomcat:tomcat /usr/local/jakarta-tomcat-4.1.12
cd ~admin
tar zxvf apache_1.3.27.tar.gz -C /usr/src
cd /usr/src/apache_1.3.27/
./configure --prefix=/usr/local/apache --enable-module=so
make
make install
cd ~admin
rpm -Uvh autoconf-2.52-ximian.1.i386.rpm
tar zxvf jakarta-tomcat-connectors-4.1.12-src.tar.gz -C /usr/src
tar zxvf apr-0.9.1.tar.gz -C /usr/src/jakarta-tomcat-connectors-4.1.12-src/webapp/
cd /usr/src/jakarta-tomcat-connectors-4.1.12-src/webapp/
mv apr-0.9.1 apr
support/buildconf.sh
./configure --with-apxs=/usr/local/apache/bin/apxs
make
cp apache-1.3/mod_webapp.so /usr/local/apache/libexec
vi /usr/local/apache/conf/httpd.conf
#add httpd.conf
LoadModule webapp_module libexec/mod_webapp.so
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy examples warpConnection /examples
#end httpd.conf
su - tomcat -c "/usr/local/tomcat/bin/startup.sh"
/usr/local/apache/bin/apachectl start |
|