Install Tomcat 6 in CentOS 6.3


1) Install CentOS 6.3 -> How to install CentOS 6.3 ;

2) Create a Local Yum Repository in CentOS 6.3 -> Create a Local Yum Repository in CentOS 6.3 in 5 steps

3) Run yum install tomcat6 and Tomcat will be installed!!! Done!!!

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

[root@localhost ~]# yum install tomcat6

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds
from cached hostfile

Setting up Install Process

Resolving Dependencies

–> Running transaction check

—> Package
tomcat6.noarch 0:6.0.24-45.el6 will be installed

base/filelists
| 4.4 MB00:01

–> Processing Dependency: tomcat6-lib = 6.0.24-45.el6 for package:tomcat6-6.0.24-45.el6.noarch

–> Processing Dependency: mx4j for package: tomcat6-6.0.24-45.el6.noarch

–> Processing Dependency: log4j for package: tomcat6-6.0.24-45.el6.noarch

–> Processing Dependency: log4j for package: tomcat6-6.0.24-45.el6.noarch

–> Processing Dependency: jakarta-commons-pool for package: tomcat6-6.0.24-45.el6.noarch

–> Processing Dependency: jakarta-commons-logging for package: tomcat6-6.0.24-45.el6.noarch

–> Processing Dependency: jakarta-commons-dbcp for package: tomcat6-6.0.24-45.el6.noarch

–> Processing Dependency: jakarta-commons-daemon for package: tomcat6-6.0.24-45.el6.noarch

–> Processing Dependency: jakarta-commons-collections for package: tomcat6-6.0.24-45.el6.noarch

–> Running transaction check

—> Package jakarta-commons-collections.noarch 0:3.2.1-3.4.el6 will be installed

—> Package jakarta-commons-daemon.i686 1:1.0.1-8.9.el6 will be installed

–> Processing Dependency: libgcj_bc.so.1 for package: 1:jakarta-commons-daemon-1.0.1-8.9.el6.i686

–> Processing Dependency: java-gcjcompat for package: 1:jakarta-commons-daemon-1.0.1-8.9.el6.i686

–> Processing Dependency: java-gcjcompat for package: 1:jakarta-commons-daemon-1.0.1-8.9.el6.i686

—> Package jakarta-commons-dbcp.noarch 0:1.2.1-13.8.el6 will be installed

—> Package jakarta-commons-logging.noarch 0:1.0.4-10.el6 will be installed

—> Package jakarta-commons-pool.i686 0:1.3-12.7.el6 will be installed

—> Package log4j.i686 0:1.2.14-6.4.el6 will be installed

–> Processing Dependency: xml-commons-apis for package: log4j-1.2.14-6.4.el6.i686

—> Package mx4j.noarch 1:3.0.1-9.13.el6 will be installed

–> Processing Dependency: javamail >= 1.2-5jpp for package: 1:mx4j-3.0.1-9.13.el6.noarch

–> Processing Dependency: bcel >= 5.0 for package: 1:mx4j-3.0.1-9.13.el6.noarch

–> Processing Dependency: axis >= 1.1 for package: 1:mx4j-3.0.1-9.13.el6.noarch

–> Processing Dependency: xml-commons-resolver for package: 1:mx4j-3.0.1-9.13.el6.noarch

–> Processing Dependency: jaf for package: 1:mx4j-3.0.1-9.13.el6.noarch

—> Package tomcat6-lib.noarch 0:6.0.24-45.el6 will be installed

–> Processing Dependency: tomcat6-servlet-2.5-api = 6.0.24-45.el6 for package: tomcat6-lib-6.0.24-45.el6.noarch

–> Processing Dependency: tomcat6-jsp-2.1-api = 6.0.24-45.el6 for package: tomcat6-lib-6.0.24-45.el6.noarch

–> Processing Dependency: tomcat6-el-2.1-api = 6.0.24-45.el6 for package: tomcat6-lib-6.0.24-45.el6.noarch

–> Processing Dependency: ecj for package: tomcat6-lib-6.0.24-45.el6.noarch

–> Running transaction check

—> Package axis.noarch 0:1.2.1-7.2.el6 will be installed

–> Processing Dependency: wsdl4j for package: axis-1.2.1-7.2.el6.noarch

–> Processing Dependency: jakarta-commons-httpclient for package: axis-1.2.1-7.2.el6.noarch

–> Processing Dependency: jakarta-commons-discovery for package: axis-1.2.1-7.2.el6.noarch

—> Package bcel.i686 0:5.2-7.2.el6 will be installed

–> Processing Dependency: regexp for package: bcel-5.2-7.2.el6.i686

—> Package classpathx-jaf.i686 0:1.0-15.4.el6 will be installed

—> Package classpathx-mail.noarch 0:1.1.1-9.4.el6 will be installed

—> Package ecj.i686 1:3.4.2-6.el6 will be installed

—> Package java-1.5.0-gcj.i686 0:1.5.0.0-29.1.el6 will be installed

–> Processing Dependency: sinjdoc for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.i686

—> Package libgcj.i686 0:4.4.6-4.el6 will be installed

—> Package tomcat6-el-2.1-api.noarch 0:6.0.24-45.el6 will be installed

—> Package tomcat6-jsp-2.1-api.noarch 0:6.0.24-45.el6 will be installed

—> Package tomcat6-servlet-2.5-api.noarch 0:6.0.24-45.el6 will be installed

—> Package xml-commons-apis.i686 0:1.3.04-3.6.el6 will be installed

—> Package xml-commons-resolver.i686 0:1.1-4.18.el6 will be installed

–> Running transaction check

—> Package jakarta-commons-discovery.noarch

1:0.4-5.4.el6 will be installed

—> Package jakarta-commons-httpclient.i686 1:3.1-0.6.el6 will be installed

—> Package regexp.i686 0:1.5-4.4.el6 will be installed

—> Package sinjdoc.i686 0:0.5-9.1.el6 will be installed

–> Processing Dependency: java_cup >= 0.10 for package: sinjdoc-0.5-9.1.el6.i686

—> Package wsdl4j.noarch 0:1.5.2-7.8.el6 will be installed

–> Running transaction check

—> Package java_cup.i686 1:0.10k-5.el6 will be installed

–> Finished
Dependency Resolution

Dependencies Resolved

 

=================================================================================

PackageArchVersionRepositorySize

=================================================================================

Installing:

tomcat6noarch 6.0.24-45.el6 base87 k

Installing for dependencies:

axisnoarch 1.2.1-7.2.el6 base1.5 M

bceli6865.2-7.2.el6 base1.2 M

classpathxjafi6861.0-15.4.el6base92 k

classpathx-mailnoarch1.1.1-9.4.el6base479 k

ecj i6861:3.4.2-6.el6 base2.5 M

jakarta-commons-collections noarch3.2.1-3.4.el6base523 k

jakarta-commons-daemoni6861:1.0.1-8.9.el6base43 k

jakarta-commons-dbcpnoarch1.2.1-13.8.el6base116 k

jakarta-commons-discoverynoarch1:0.4-5.4.el6base73 k

jakarta-commons-httpclienti6861:3.1-0.6.el6base519 k

jakarta-commons-loggingnoarch1.0.4-10.el6base52 k

jakarta-commons-pooli6861.3-12.7.el6base110 k

java-1.5.0-gcji6861.5.0.0-29.1.el6base138 k

java_cupi6861:0.10k-5.el6base178 k

libgcji6864.4.6-4.el6base17 M

log4ji6861.2.14-6.4.el6base603 k

mx4jnoarch 1:3.0.1-9.13.el6 base1.1 M

regexpi6861.5-4.4.el6base97 k

sinjdoci6860.5-9.1.el6base646 k

tomcat6-el-2.1-apinoarch6.0.24-45.el6base43 k

tomcat6-jsp-2.1-apinoarch6.0.24-45.el6base80 k

tomcat6-libnoarch6.0.24-45.el6base2.8 M

tomcat6-servlet-2.5-apinoarch6.0.24-45.el6base94 k

wsdl4jnoarch1.5.2-7.8.el6base157 k

xml-commons-apisi6861.3.04-3.6.el6base388 k

xml-commons-resolveri6861.1-4.18.el6base128 k

 

Transaction Summary

==================================================================================

Install27 Package(s)

 

Total download size: 31 M

Installed size: 84 M

Is this ok [y/N]: y

Downloading Packages:

(1/27):axis-1.2.1-7.2.el6.noarch.rpm | 1.5 MB00:00

(2/27): bcel-5.2-7.2.el6.i686.rpm| 1.2 MB00:00

(3/27): classpathx-jaf-1.0-15.4.el6.i686.rpm |92 kB00:00

(4/27): classpathx-mail-1.1.1-9.4.el6.noarch.rpm| 479 kB00:00

(5/27): ecj-3.4.2-6.el6.i686.rpm | 2.5 MB00:04

(6/27): jakarta-commons-collections-3.2.1-3.4.el6.noarch.rpm| 523 kB 00:00

(7/27):jakarta-commons-daemon-1.0.1-8.9.el6.i686.rpm|43 kB00:00

(8/27): jakarta-commons-dbcp-1.2.1-13.8.el6.noarch.rpm | 116 kB 00:00

(9/27): jakarta-commons-discovery-0.4-5.4.el6.noarch.rpm|73 kB00:00

(10/27): jakarta-commons-httpclient-3.1-0.6.el6.i686.rpm| 519 kB 00:00

(11/27): jakarta-commons-logging-1.0.4-10.el6.noarch.rpm|52 kB00:00

(12/27): jakarta-commons-pool-1.3-12.7.el6.i686.rpm| 110 kB 00:00

(13/27): java-1.5.0-gcj-1.5.0.0-29.1.el6.i686.rpm| 138 kB 00:00

(14/27): java_cup-0.10k-5.el6.i686.rpm | 178 kB 00:00

(15/27): libgcj-4.4.6-4.el6.i686.rpm|17 MB00:10

(16/27): log4j-1.2.14-6.4.el6.i686.rpm| 603 kB 00:00

(17/27): mx4j-3.0.1-9.13.el6.noarch.rpm | 1.1 MB00:00

(18/27): regexp-1.5-4.4.el6.i686.rpm |97 kB00:00

(19/27): sinjdoc-0.5-9.1.el6.i686.rpm | 646 kB 00:00

(20/27): tomcat6-6.0.24-45.el6.noarch.rpm |87 kB00:00

(21/27): tomcat6-el-2.1-api-6.0.24-45.el6.noarch.rpm |43 kB00:00

(22/27): tomcat6-jsp-2.1-api-6.0.24-45.el6.noarch.rpm |80 kB00:00

(23/27): tomcat6-lib-6.0.24-45.el6.noarch.rpm | 2.8 MB00:02

(24/27): tomcat6-servlet-2.5-api-6.0.24-45.el6.noarch.rpm|94 kB00:00

(25/27): wsdl4j-1.5.2-7.8.el6.noarch.rpm| 157 kB 00:00

(26/27): xml-commons-apis-1.3.04-3.6.el6.i686.rpm| 388 kB 00:00

(27/27): xml-commons-resolver-1.1-4.18.el6.i686.rpm| 128 kB 00:00

—————————————————————————————————————————–

Total
1.4 MB/s |31

MB00:21

warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature,
key ID c105b9de: NOKEY

Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Importing GPG key 0xC105B9DE:

Userid : CentOS-6 Key (CentOS 6 Official Signing Key)
<centos-6-key@centos.org>

Package:
centos-release-6-3.el6.centos.9.i686 (@anaconda-CentOS-201207051201.i386/6.3)

From: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

 

Is this ok [y/N]: y

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB altered outside of yum.

Installing : jakarta-commons-logging-1.0.4-10.el6.noarch

1/27

Installing : jakarta-commons-collections-3.2.1-3.4.el6.noarch

2/27

Installing : tomcat6-servlet-2.5-api-6.0.24-45.el6.noarch

3/27

Installing : tomcat6-jsp-2.1-api-6.0.24-45.el6.noarch

4/27

Installing : 1:jakarta-commons-discovery-0.4-5.4.el6.noarch

5/27

Installing : tomcat6-el-2.1-api-6.0.24-45.el6.noarch
6/27

Installing : libgcj-4.4.6-4.el6.i686

7/27

Installing : java-1.5.0-gcj-1.5.0.0-29.1.el6.i686

8/27

Installing : 1:java_cup-0.10k-5.el6.i686

9/27

Installing : sinjdoc-0.5-9.1.el6.i686
10/27

Installing : jakarta-commons-pool-1.3-12.7.el6.i686

11/27

Installing : xml-commons-apis-1.3.04-3.6.el6.i686
12/27

Installing : log4j-1.2.14-6.4.el6.i686


13/27

Installing : classpathx-jaf-1.0-15.4.el6.i686
14/27

Installing : classpathx-mail-1.1.1-9.4.el6.noarch

15/27

Installing : jakarta-commons-dbcp-1.2.1-13.8.el6.noarch

16/27

Installing : wsdl4j-1.5.2-7.8.el6.noarch

17/27

Installing : xml-commons-resolver-1.1-4.18.el6.i686

18/27

Installing : 1:jakarta-commons-httpclient-3.1-0.6.el6.i686


19/27

Installing : axis-1.2.1-7.2.el6.noarch

20/27

Installing : 1:jakarta-commons-daemon-1.0.1-8.9.el6.i686

21/27

Installing : 1:ecj-3.4.2-6.el6.i686

22/27

Installing : regexp-1.5-4.4.el6.i686

23/27

Installing : bcel-5.2-7.2.el6.i686

24/27

Installing : 1:mx4j-3.0.1-9.13.el6.noarch

25/27

Installing : tomcat6-lib-6.0.24-45.el6.noarch

26/27

Installing : tomcat6-6.0.24-45.el6.noarch

27/27

Verifying: tomcat6-el-2.1-api-6.0.24-45.el6.noarch

1/27

Verifying: classpathx-mail-1.1.1-9.4.el6.noarch

2/27

Verifying: 1:jakarta-commons-httpclient-3.1-0.6.el6.i686

3/27

Verifying: 1:jakarta-commons-discovery-0.4-5.4.el6.noarch

4/27

Verifying: tomcat6-lib-6.0.24-45.el6.noarch

5/27

Verifying: jakarta-commons-pool-1.3-12.7.el6.i686

6/27

Verifying: jakarta-commons-collections-3.2.1-3.4.el6.noarch

7/27

Verifying: xml-commons-resolver-1.1-4.18.el6.i686

8/27

Verifying: tomcat6-servlet-2.5-api-6.0.24-45.el6.noarch

9/27

Verifying: tomcat6-6.0.24-45.el6.noarch

10/27

Verifying: 1:java_cup-0.10k-5.el6.i686

11/27

Verifying: sinjdoc-0.5-9.1.el6.i686

12/27

Verifying: libgcj-4.4.6-4.el6.i686

13/27

Verifying: jakarta-commons-logging-1.0.4-10.el6.noarch

14/27

Verifying: wsdl4j-1.5.2-7.8.el6.noarch

15/27

Verifying: axis-1.2.1-7.2.el6.noarch

16/27

Verifying: 1:jakarta-commons-daemon-1.0.1-8.9.el6.i686

17/27

Verifying: java-1.5.0-gcj-1.5.0.0-29.1.el6.i686
18/27

Verifying: bcel-5.2-7.2.el6.i686

19/27

Verifying: xml-commons-apis-1.3.04-3.6.el6.i686
20/27

Verifying: tomcat6-jsp-2.1-api-6.0.24-45.el6.noarch

21/27

Verifying: log4j-1.2.14-6.4.el6.i686

22/27

Verifying: 1:ecj-3.4.2-6.el6.i686

23/27

Verifying : 1:mx4j-3.0.1-9.13.el6.noarch

24/27

Verifying: jakarta-commons-dbcp-1.2.1-13.8.el6.noarch

25/27

Verifying: classpathx-jaf-1.0-15.4.el6.i686

26/27

Verifying: regexp-1.5-4.4.el6.i686

27/27

Installed:

tomcat6.noarch 0:6.0.24-45.el6

 

Dependency Installed:

axis.noarch 0:1.2.1-7.2.el6

bcel.i686 0:5.2-7.2.el6

classpathx-jaf.i686 0:1.0-15.4.el6classpathx-mail.noarch 0:1.1.1-9.4.el6

ecj.i686 1:3.4.2-6.el6jakarta-commons-collections.noarch

0:3.2.1-3.4.el6

jakarta-commons-daemon.i686
1:1.0.1-8.9.el6jakarta-commons-dbcp.noarch
0:1.2.1-13.8.el6

jakarta-commons-discovery.noarch 1:0.4-5.4.el6
jakarta-commons-httpclient.i686 1:3.1-0.6.el6

jakarta-commons-logging.noarch

0:1.0.4-10.el6
jakarta-commons-pool.i686 0:1.3-12.7.el6

java-1.5.0-gcj.i686
0:1.5.0.0-29.1.el6
java_cup.i686 1:0.10k-5.el6

libgcj.i686 0:4.4.6-4.el6log4j.i686
0:1.2.14-6.4.el6

mx4j.noarch 1:3.0.1-9.13.el6regexp.i686 0:1.5-4.4.el6

sinjdoc.i686 0:0.5-9.1.el6
tomcat6-el-2.1-api.noarch 0:6.0.24-45.el6

tomcat6-jsp-2.1-api.noarch

0:6.0.24-45.el6
tomcat6-lib.noarch 0:6.0.24-45.el6

tomcat6-servlet-2.5-api.noarch
0:6.0.24-45.el6
wsdl4j.noarch 0:1.5.2-7.8.el6

xml-commons-apis.i686

0:1.3.04-3.6.el6
xml-commons-resolver.i686 0:1.1-4.18.el6

Complete!

Get Tomcat related Information
after Successful Installation!!!

[root@localhost
~]#

 

[root@localhost ~]# yum info tomcat6

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

Installed Packages

Name: tomcat6

Arch: noarch

Version:6.0.24

Release: 45.el6

Size: 188 k

Repo:installed

From repo:base

Summary:Apache Servlet/JSP Engine, RI for Servlet 2.5/JSP 2.1 API

URL: http://tomcat.apache.org/

License: ASL 2.0

Description : Tomcat is the servlet container that is used in the official Reference :
Implementation for the Java Servlet and JavaServer Pages technologies. :
The Java Servlet and JavaServer
Pages specifications are developed by :
Sun under the Java Community Process.:: Tomcat is developed in an open and participatory environment and : released under the Apache Software License version 2.0. Tomcat is intended : to be a collaboration of the best-of-breed developers from around the world.

[root@localhost ~]#

================================================================================

Advertisements

2 thoughts on “Install Tomcat 6 in CentOS 6.3”

  1. I have found that the tomcat 6.024 version has glitch where it fails to load the custom jar files from the folder WEB_INF/lib. I have deployed an identical web application to both 6.024 and 6.035, and found 6.035 works perfectly where 6.024 was looking for the jar file.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s