2015 1:59:28 PM org.apache.catalina.core.AprLifecycleListener Init
Info:the APR based Apache Tomcat Native Library which allows optimal performance in production environments is not found On the Java.library.path:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
2015 1:59:29 PM Org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [Setpropertiesrule]{server/service/engine/host/context} Setting Property ' Debug ' to ' 0 ' did don't find a matching p Roperty.
2015 1:59:29 PM Org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [Setpropertiesrule]{server/service/engine/host/context} Setting Property ' Debug ' to ' 0 ' did don't find a matching p Roperty.
2015 1:59:31 PM org.apache.coyote.AbstractProtocol Init
Info:initializing Protocolhandler ["http-bio-80"]
2015 1:59:31 PM org.apache.coyote.AbstractProtocol Init
Info:initializing Protocolhandler ["ajp-bio-8009"]
2015 1:59:31 PM Org.apache.catalina.startup.Catalina load
Info:initialization processed in 6813 ms
2015 1:59:31 PM Org.apache.catalina.core.StandardService startinternal
Info:starting Service Catalina
2015 1:59:31 PM org.apache.catalina.core.StandardEngine startinternal
Info:starting Servlet Engine:apache tomcat/7.0.55
2015 1:59:32 PM org.apache.catalina.core.ContainerBase startinternal
Severe:a child container failed during start
java.util.concurrent.ExecutionException:org.apache.catalina.LifecycleException:Failed to start component [ Standardengine[catalina]. Standardhost[null]. Standardcontext[/files]]
At Java.util.concurrent.FutureTask.report (futuretask.java:122)
At Java.util.concurrent.FutureTask.get (futuretask.java:188)
At Org.apache.catalina.core.ContainerBase.startInternal (containerbase.java:1123)
At Org.apache.catalina.core.StandardHost.startInternal (standardhost.java:816)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1575)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1565)
At Java.util.concurrent.FutureTask.run (futuretask.java:262)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615)
At Java.lang.Thread.run (thread.java:744)
caused by:org.apache.catalina.LifecycleException:Failed to start component [Standardengine[catalina]. Standardhost[null]. Standardcontext[/files]]
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:154)
Solution steps:
Step 1: Install OpenSSL libraries
Command: Yum install Openssl-devel
All the time, Y can
Step 2: Install Apr
wget http://apache.mirror.phpchina.com/apr/apr-1.3.2.tar.gz
"is in no way on their own download from the Internet, address is: http://download.chinaunix.net/down.php?id=25589&ResourceID=470"
Tar zxvf apr-1.3.2.tar.gz
CD apr-1.3.2
./configure
[ Error: Configure:error:no acceptable C compiler found in $PATH because the GCC package was not installed:
command: yum-y install gcc]
Make
Make install
Apr default installation in/USR/LOCAL/APR
Step 3: Install Apr-util
wget http://apache.mirror.phpchina.com/apr/apr-util-1.3.2.tar.gz
"is in no way on their own download from the Internet, address is: http://download.chinaunix.net/download.php?id=25796&ResourceID=472"
Tar zxvf apr-util-1.3.2.tar.gz
CD apr-util-1.3.2
./configure--WITH-APR=/USR/LOCAL/APR
Make
Make install
Step 4: Install Tomcat-native "in the Tomcat bin directory, do not need to wget network download"
Cd/usr/local/tomcat-6.0.18/bin
Tar zxvf tomcat-native.tar.gz
CD tomcat-native-1.1.14-src/jni/native
./configure--WITH-APR=/USR/LOCAL/APR--with-java-home=/usr/java/jdk1.6.0_11
"It is found that the JDK is installed by default in order to install software such as office, so it is necessary to remove the default installed JDK before reinstalling:" CentOS.
install JDK under CentOS:
Step one: View the CentOS default installed JDK: see if the Linux self-contained JDK is installed (uninstall CentOS installed)
Command: Java-version
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-bit Server VM (build 1.6.0-b09, Mixed mode)
Step Two: View the installed Java version
Command: RPM-QA | grep java
Displays the following information:
java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
Java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5
Third Uninstall: Paste the Java file in the second part into the following command:
RPM-E--nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
RPM-E--nodeps java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5 Step Fourth: Install a new JDK
Download the JDK RPM installation package
installation command: yum-y install java-1.6.0-openjdk*
Step Fifth: Configure environment variables
<1># Vi/etc/profile
<2> Add the following lines at the end:
Export JAVA_HOME=/USR/JAVA/JDK1.6.0_10
Export classpath=.: $JAVA _home/jre/lib/rt.jar: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export path= $PATH: $JAVA _home/bin
Save exit.
Execute the following command to make the environment variable effective
Source/etc/profile or reboot the reboot to take effect
Check to see if it is already in effect:
Command:
echo $JAVA _home;
Echo $CLASSPATH;
Echo PATH;
】
Make
Make install
Step 5: Set the APR's environment variable:
Vi/etc/profile
# after adding the following content
Export Ld_library_path= $LD _library_path:/usr/local/apr/lib
# Make profile effective,
Source/etc/profile
After you start Tomcat, look at the log: