Tomcat的安装过程包括安装ant和servletapi的过程
首先将Tomcat的jakarta-tomcat.tar.gz解包。然后读取README的过程安装。
cd /home/liling/tomcat
gz -d jakarta-tomcat.tar.gz
tar -xvf jakarta-tomcat.tar
cd jakarta-tomcat
vi README
将看到如下安装过程
cd $JAKARTA_HOME/jakarta-ant
./bootstrap.sh <-- Unix
This should result in the creation of a file "ant.jar" in the "lib"
subdirectory, which will be used when building Watchdog.
cd $JAKARTA_HOME/jakarta-servletapi
./build.sh dist <-- Unix
This should result in the creation of a file "servlet.jar" in the "lib"
subdirectory, which will be used when building Watchdog.
cd $JAKARTA_HOME/jakarta-tomcat
./build.sh <-- Unix
配置TOMCAT_HOME环境变量:
TOMCAT_HOME=/home/liling/tomcat/build/tomcat
export TOMCAT_HOME
cd /home/liling/jboss
jar -xvf jboss-cvs-sources.zip
cd src
cd build
./build.sh
· 三:启动jboss:
cd /home/liling/jboss/dist/bin/
/run.sh
· 四:配置Tomcat与Jboss
cd /home/liling/jboss/dist/conf
vi jboss.conf
会看到如下提示:
<!-- -- Uncomment this to add "Integrated Stack (fast) Tomcat support".
-- This service allows you to integrate the stack of Tomcat and jboss.
-- Invocations are not going through network but pass native pointers resulting in dramatic speed increases.
-- This service allows the J2EE deployer to add and remove Tomcat contexts dynamically
-- through JMX for you and in effect deploy EARs. Note that tomcat´s server.xml file will not be processed:
-- you can only use JMX to add contexts. Use the J2EE deployer to deploy full EARs on this stack
-- Be sure to set your ´TOMCAT_HOME´ environment variable before starting JBoss.