Problems install Tomcat, cant run catalina.sh
posted 12 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi friends i installed Tomcat Following this steps:
1) yum install java-1.7.0-openjdk-devel -y
2) sh -c 'echo export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk > /etc/profile.d/java.sh'
3) source /etc/profile.d/java.sh
4) cd /opt
5) wget http://apache.webxcreen.org/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz
6) tar xvzf apache-tomcat-7.0.42.tar.gz
7) source /etc /profile.d/tomcat.sh
8) $CATALINA_HOME/bin/startup.sh <--- not worked then better i run:
9) /opt/apache-tomcat-7.0.42/bin/startup.sh
10) service iptables stop
11) tested the page: http://192.168.0.7:8080 <-- say me these error: Oops! Google Chrome could not connect to 192.168.0.7:8080
12) then i go to /opt/apache-tomcat-7.0.42/bin and execute the script catalina.sh
13) ./catalina.sh run and get these erorr:
[root@chacc bin]# ./catalina.sh run
Using CATALINA_BASE: /opt/apache-tomcat-7.0.42
Using CATALINA_HOME: /opt/apache-tomcat-7.0.42
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.42/temp
Using JRE_HOME: /usr/lib/jvm/java-1.7.0-openjdk
Using CLASSPATH: /opt/apache-tomcat-7.0.42/bin/bootstrap.jar:/opt/apache-tomcat-7.0.42/bin/tomcat-juli.jar
/usr/lib/jvm/java-1.7.0-openjdk/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
[root@chacc bin]#
how to fix?
thanks
1) yum install java-1.7.0-openjdk-devel -y
2) sh -c 'echo export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk > /etc/profile.d/java.sh'
3) source /etc/profile.d/java.sh
4) cd /opt
5) wget http://apache.webxcreen.org/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz
6) tar xvzf apache-tomcat-7.0.42.tar.gz
7) source /etc /profile.d/tomcat.sh
8) $CATALINA_HOME/bin/startup.sh <--- not worked then better i run:
9) /opt/apache-tomcat-7.0.42/bin/startup.sh
10) service iptables stop
11) tested the page: http://192.168.0.7:8080 <-- say me these error: Oops! Google Chrome could not connect to 192.168.0.7:8080
12) then i go to /opt/apache-tomcat-7.0.42/bin and execute the script catalina.sh
13) ./catalina.sh run and get these erorr:
[root@chacc bin]# ./catalina.sh run
Using CATALINA_BASE: /opt/apache-tomcat-7.0.42
Using CATALINA_HOME: /opt/apache-tomcat-7.0.42
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.42/temp
Using JRE_HOME: /usr/lib/jvm/java-1.7.0-openjdk
Using CLASSPATH: /opt/apache-tomcat-7.0.42/bin/bootstrap.jar:/opt/apache-tomcat-7.0.42/bin/tomcat-juli.jar
/usr/lib/jvm/java-1.7.0-openjdk/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
[root@chacc bin]#
how to fix?
thanks
posted 12 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I recommend that you download and install the Oracle/Sun JDK instead of using OpenJDK.
Although OpenJDK is a lot more complete implementation of the Java spec than it used to be, apparently it still falls short when used with Tomcat7.
If you download and install the RPM version, it will place the JDK in the /usr/java directory and you can set JAVA_HOME using either the specific version or just set it to /usr/java/latest.
Although OpenJDK is a lot more complete implementation of the Java spec than it used to be, apparently it still falls short when used with Tomcat7.
If you download and install the RPM version, it will place the JDK in the /usr/java directory and you can set JAVA_HOME using either the specific version or just set it to /usr/java/latest.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
| brevity is the soul of wit - shakepeare. Tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |








