安装tomcat-7.0.22遇到问题,求救!
安装环境是 redhat linux 企业版 5.4
报的错误是:
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.6.0_23/jre/lib/i386/server:/usr/java/jdk1.6.0_23/jre/lib/i386:/usr/java/jdk1.6.0_23/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
请教这是怎么回事儿啊?改怎么解决 ?
jdk变量环境是:
#set java environment
export JAVA_HOME=/usr/java/jdk1.6.0_23
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
tomcat变量环境是:
#for tomcat-7.0.22
CATALINA_BASE=/usr/local/apache-tomcat-7.0.22
export CATALINA_BASE
CATALINA_HOME=/usr/local/apache-tomcat-7.0.22
export CATALINA_HOME
PATH=$PATH:$CATALINA_HOME/bin
export PATH
救命!
------解决方案--------------------------------------------------------
export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
------解决方案--------------------------------------------------------
因为缺少 APR,没事,不用管。生产环境也不会拿 TOMCAT 作为静态资源 WEB 服务器用的。
APR 可以安装的,参考 TOMCAT 的文档:
http://tomcat.apache.org/tomcat-7.0-doc/apr