This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Problems install Tomcat, cant run Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problems install Tomcat, cant run" Watch "Problems install Tomcat, cant run" New topic

Problems install Tomcat, cant run

Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 95
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/'
3) source /etc/profile.d/
4) cd /opt
5) wget
6) tar xvzf apache-tomcat-7.0.42.tar.gz
7) source /etc /profile.d/
8) $CATALINA_HOME/bin/ <--- not worked then better i run:
9) /opt/apache-tomcat-7.0.42/bin/
10) service iptables stop
11) tested the page: <-- say me these error: Oops! Google Chrome could not connect to
12) then i go to /opt/apache-tomcat-7.0.42/bin and execute the script
13) ./ run and get these erorr:

[root@chacc bin]# ./ 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: cannot open shared object file: No such file or directory
[root@chacc bin]#

how to fix?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16540

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.

Customer surveys are for companies who didn't pay proper attention to begin with.
Don't get me started about those stupid light bulbs.
subject: Problems install Tomcat, cant run