The Fastest Way to Install Java and Tomcat on Enterprise Linux 7

  • by
If you'd like to install Java 8 and Tomcat 8 on Enterprise Linux (EL) 7, please refer to another post below:
How to Install Java 8 and Tomcat 8 on Enterprise Linux 7

Normally, seeking and installing the newest versions of Java and Tomcat are quite trivial and should be aware of many configuration issues. If you don't mind the not-so-new but verified versions of the twos, you can save your energy on seeking and installing by yum.

Enterprise Linux 7 hereby means Red Hat Enterprise Linux 7 or its clones like CentOS 7 or Oracle Enterprise Linux 7, etc.

Let's see what versions of Java and Tomcat we are going to have.
[root@test ~]# yum info java-1.7.0-openjdk-devel tomcat
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Loading mirror speeds from cached hostfile
 * base: mirror.neu.edu.cn
 * extras: centos.cs.nctu.edu.tw
 * updates: mirrors.btte.net
Available Packages
Name        : java-1.7.0-openjdk-devel
Arch        : x86_64
Epoch       : 1
Version     : 1.7.0.65
Release     : 2.5.1.2.el7_0
Size        : 9.1 M
Repo        : updates/7/x86_64
Summary     : OpenJDK Development Environment
URL         : http://openjdk.java.net/
License     : ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions
            : and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and
            : W3C
Description : The OpenJDK development tools.

Name        : tomcat
Arch        : noarch
Version     : 7.0.42
Release     : 6.el7_0
Size        : 84 k
Repo        : updates/7/x86_64
Summary     : Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 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.

OK, Java is 1.7.0.65 and Tomcat is 7.0.42 in repository.

Install Java 7 as well as Tomcat 7 via yum without prompt.
[root@test ~]# yum -y install java-1.7.0-openjdk-devel tomcat
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                     | 3.6 kB     00:00
extras                                                   | 3.3 kB     00:00
mysql-connectors-community                               | 2.5 kB     00:00
mysql-tools-community                                    | 2.5 kB     00:00
mysql56-community                                        | 2.5 kB     00:00
updates                                                  | 3.4 kB     00:00
(1/4): mysql-connectors-community/x86_64/primary_db        | 6.5 kB   00:00
(2/4): mysql-tools-community/x86_64/primary_db             | 4.7 kB   00:00
(3/4): mysql56-community/x86_64/primary_db                 |  43 kB   00:00
(4/4): updates/7/x86_64/primary_db                         | 2.8 MB   00:06
Loading mirror speeds from cached hostfile
 * base: mirror.neu.edu.cn
 * extras: centos.cs.nctu.edu.tw
 * updates: mirrors.btte.net
Resolving Dependencies
--> Running transaction check
---> Package java-1.7.0-openjdk-devel.x86_64 1:1.7.0.65-2.5.1.2.el7_0 will be installed
--> Processing Dependency: java-1.7.0-openjdk = 1:1.7.0.65-2.5.1.2.el7_0 for package: 1:java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: 1:java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el7_0.x86_64
---> Package tomcat.noarch 0:7.0.42-8.el7_0 will be installed
--> Processing Dependency: tomcat-lib = 7.0.42-8.el7_0 for package: tomcat-7.0.42-8.el7_0.noarch
--> Processing Dependency: apache-commons-pool for package: tomcat-7.0.42-8.el7_0.noarch
--> Processing Dependency: apache-commons-logging for package: tomcat-7.0.42-8.el7_0.noarch
--> Processing Dependency: apache-commons-dbcp for package: tomcat-7.0.42-8.el7_0.noarch
--> Processing Dependency: apache-commons-daemon for package: tomcat-7.0.42-8.el7_0.noarch
--> Processing Dependency: apache-commons-collections for package: tomcat-7.0.42-8.el7_0.noarch
--> Running transaction check
---> Package apache-commons-collections.noarch 0:3.2.1-21.el7 will be installed
--> Processing Dependency: jpackage-utils for package: apache-commons-collections-3.2.1-21.el7.noarch
---> Package apache-commons-daemon.x86_64 0:1.0.13-6.el7 will be installed
---> Package apache-commons-dbcp.noarch 0:1.4-17.el7 will be installed
--> Processing Dependency: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec) for package: apache-commons-dbcp-1.4-17.el7.noarch
---> Package apache-commons-logging.noarch 0:1.1.2-7.el7 will be installed
--> Processing Dependency: mvn(logkit:logkit) for package: apache-commons-logging-1.1.2-7.el7.noarch
--> Processing Dependency: mvn(log4j:log4j) for package: apache-commons-logging-1.1.2-7.el7.noarch
--> Processing Dependency: mvn(avalon-framework:avalon-framework-api) for package: apache-commons-logging-1.1.2-7.el7.noarch
---> Package apache-commons-pool.noarch 0:1.6-9.el7 will be installed
---> Package java-1.7.0-openjdk.x86_64 1:1.7.0.65-2.5.1.2.el7_0 will be installed
--> Processing Dependency: java-1.7.0-openjdk-headless = 1:1.7.0.65-2.5.1.2.el7_0 for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libpulse.so.0(PULSE_0)(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: fontconfig for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libpulse.so.0()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libpng15.so.15()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libjpeg.so.62()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libfontconfig.so.1()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libcups.so.2()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libawt.so()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64
---> Package libX11.x86_64 0:1.6.0-2.1.el7 will be installed
--> Processing Dependency: libX11-common = 1.6.0-2.1.el7 for package: libX11-1.6.0-2.1.el7.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.0-2.1.el7.x86_64
---> Package tomcat-lib.noarch 0:7.0.42-8.el7_0 will be installed
--> Processing Dependency: tomcat-servlet-3.0-api = 7.0.42-8.el7_0 for package: tomcat-lib-7.0.42-8.el7_0.noarch
--> Processing Dependency: tomcat-jsp-2.2-api = 7.0.42-8.el7_0 for package: tomcat-lib-7.0.42-8.el7_0.noarch
--> Processing Dependency: tomcat-el-2.2-api = 7.0.42-8.el7_0 for package: tomcat-lib-7.0.42-8.el7_0.noarch
--> Processing Dependency: ecj >= 1:4.2.1 for package: tomcat-lib-7.0.42-8.el7_0.noarch
--> Running transaction check
---> Package avalon-framework.noarch 0:4.3-10.el7 will be installed
--> Processing Dependency: xalan-j2 for package: avalon-framework-4.3-10.el7.noarch
---> Package avalon-logkit.noarch 0:2.1-14.el7 will be installed
--> Processing Dependency: jms for package: avalon-logkit-2.1-14.el7.noarch
---> Package cups-libs.x86_64 1:1.6.3-14.el7 will be installed
---> Package ecj.x86_64 1:4.2.1-8.el7 will be installed
---> Package fontconfig.x86_64 0:2.10.95-7.el7 will be installed
--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.10.95-7.el7.x86_64
---> Package geronimo-jta.noarch 0:1.1.1-17.el7 will be installed
---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed
--> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
--> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64
---> Package java-1.7.0-openjdk-headless.x86_64 1:1.7.0.65-2.5.1.2.el7_0 will be installed
--> Processing Dependency: lcms2 >= 2.5 for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: tzdata-java for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libpangoft2-1.0.so.0()(64bit) for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libpangocairo-1.0.so.0()(64bit) for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libpango-1.0.so.0()(64bit) for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: liblcms2.so.2()(64bit) for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libgtk-x11-2.0.so.0()(64bit) for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libgdk_pixbuf-2.0.so.0()(64bit) for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libgdk-x11-2.0.so.0()(64bit) for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libcairo.so.2()(64bit) for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
--> Processing Dependency: libatk-1.0.so.0()(64bit) for package: 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86_64
---> Package javapackages-tools.noarch 0:3.4.1-6.el7_0 will be installed
--> Processing Dependency: python-javapackages = 3.4.1-6.el7_0 for package: javapackages-tools-3.4.1-6.el7_0.noarch
--> Processing Dependency: libxslt for package: javapackages-tools-3.4.1-6.el7_0.noarch
---> Package libX11-common.noarch 0:1.6.0-2.1.el7 will be installed
---> Package libXext.x86_64 0:1.3.2-2.1.el7 will be installed
---> Package libXi.x86_64 0:1.7.2-2.1.el7 will be installed
---> Package libXrender.x86_64 0:0.9.8-2.1.el7 will be installed
---> Package libXtst.x86_64 0:1.2.2-2.1.el7 will be installed
---> Package libjpeg-turbo.x86_64 0:1.2.90-5.el7 will be installed
---> Package libpng.x86_64 2:1.5.13-5.el7 will be installed
---> Package libxcb.x86_64 0:1.9-5.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.9-5.el7.x86_64
---> Package log4j.noarch 0:1.2.17-15.el7 will be installed
--> Processing Dependency: mvn(javax.mail:mail) for package: log4j-1.2.17-15.el7.noarch
---> Package pulseaudio-libs.x86_64 0:3.0-22.el7 will be installed
--> Processing Dependency: libsndfile.so.1(libsndfile.so.1.0)(64bit) for package: pulseaudio-libs-3.0-22.el7.x86_64
--> Processing Dependency: libsndfile.so.1()(64bit) for package: pulseaudio-libs-3.0-22.el7.x86_64
--> Processing Dependency: libasyncns.so.0()(64bit) for package: pulseaudio-libs-3.0-22.el7.x86_64
---> Package tomcat-el-2.2-api.noarch 0:7.0.42-8.el7_0 will be installed
---> Package tomcat-jsp-2.2-api.noarch 0:7.0.42-8.el7_0 will be installed
---> Package tomcat-servlet-3.0-api.noarch 0:7.0.42-8.el7_0 will be installed
---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch
--> Running transaction check
---> Package atk.x86_64 0:2.8.0-4.el7 will be installed
---> Package cairo.x86_64 0:1.12.14-6.el7 will be installed
--> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.12.14-6.el7.x86_64
--> Processing Dependency: libGL.so.1()(64bit) for package: cairo-1.12.14-6.el7.x86_64
--> Processing Dependency: libEGL.so.1()(64bit) for package: cairo-1.12.14-6.el7.x86_64
---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed
---> Package gdk-pixbuf2.x86_64 0:2.28.2-4.el7 will be installed
--> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: gdk-pixbuf2-2.28.2-4.el7.x86_64
--> Processing Dependency: libtiff.so.5()(64bit) for package: gdk-pixbuf2-2.28.2-4.el7.x86_64
--> Processing Dependency: libjasper.so.1()(64bit) for package: gdk-pixbuf2-2.28.2-4.el7.x86_64
---> Package geronimo-jms.noarch 0:1.1.1-19.el7 will be installed
---> Package gtk2.x86_64 0:2.24.22-5.el7 will be installed
--> Processing Dependency: libXrandr >= 1.2.99.4-2 for package: gtk2-2.24.22-5.el7.x86_64
--> Processing Dependency: hicolor-icon-theme for package: gtk2-2.24.22-5.el7.x86_64
--> Processing Dependency: libXrandr.so.2()(64bit) for package: gtk2-2.24.22-5.el7.x86_64
--> Processing Dependency: libXinerama.so.1()(64bit) for package: gtk2-2.24.22-5.el7.x86_64
--> Processing Dependency: libXfixes.so.3()(64bit) for package: gtk2-2.24.22-5.el7.x86_64
--> Processing Dependency: libXdamage.so.1()(64bit) for package: gtk2-2.24.22-5.el7.x86_64
--> Processing Dependency: libXcursor.so.1()(64bit) for package: gtk2-2.24.22-5.el7.x86_64
--> Processing Dependency: libXcomposite.so.1()(64bit) for package: gtk2-2.24.22-5.el7.x86_64
---> Package javamail.noarch 0:1.4.6-8.el7 will be installed
---> Package lcms2.x86_64 0:2.5-4.el7 will be installed
---> Package libICE.x86_64 0:1.0.8-7.el7 will be installed
---> Package libSM.x86_64 0:1.2.1-7.el7 will be installed
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
---> Package libasyncns.x86_64 0:0.8-7.el7 will be installed
---> Package libsndfile.x86_64 0:1.0.25-9.el7 will be installed
--> Processing Dependency: libvorbisenc.so.2()(64bit) for package: libsndfile-1.0.25-9.el7.x86_64
--> Processing Dependency: libvorbis.so.0()(64bit) for package: libsndfile-1.0.25-9.el7.x86_64
--> Processing Dependency: libogg.so.0()(64bit) for package: libsndfile-1.0.25-9.el7.x86_64
--> Processing Dependency: libgsm.so.1()(64bit) for package: libsndfile-1.0.25-9.el7.x86_64
--> Processing Dependency: libFLAC.so.8()(64bit) for package: libsndfile-1.0.25-9.el7.x86_64
---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed
---> Package pango.x86_64 0:1.34.1-5.el7 will be installed
--> Processing Dependency: libthai >= 0.1.9 for package: pango-1.34.1-5.el7.x86_64
--> Processing Dependency: libthai.so.0(LIBTHAI_0.1)(64bit) for package: pango-1.34.1-5.el7.x86_64
--> Processing Dependency: libthai.so.0()(64bit) for package: pango-1.34.1-5.el7.x86_64
--> Processing Dependency: libharfbuzz.so.0()(64bit) for package: pango-1.34.1-5.el7.x86_64
--> Processing Dependency: libXft.so.2()(64bit) for package: pango-1.34.1-5.el7.x86_64
---> Package python-javapackages.noarch 0:3.4.1-6.el7_0 will be installed
--> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-6.el7_0.noarch
---> Package ttmkfdir.x86_64 0:3.0.9-41.el7 will be installed
---> Package tzdata-java.noarch 0:2014e-1.el7_0 will be installed
---> Package xalan-j2.noarch 0:2.7.1-23.el7 will be installed
--> Processing Dependency: xerces-j2 for package: xalan-j2-2.7.1-23.el7.noarch
--> Processing Dependency: osgi(org.apache.xerces) for package: xalan-j2-2.7.1-23.el7.noarch
---> Package xorg-x11-font-utils.x86_64 1:7.5-18.1.el7 will be installed
--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-18.1.el7.x86_64
--> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-18.1.el7.x86_64
--> Running transaction check
---> Package flac-libs.x86_64 0:1.3.0-4.el7 will be installed
---> Package gsm.x86_64 0:1.0.13-11.el7 will be installed
---> Package harfbuzz.x86_64 0:0.9.20-3.el7 will be installed
--> Processing Dependency: libgraphite2.so.3()(64bit) for package: harfbuzz-0.9.20-3.el7.x86_64
---> Package hicolor-icon-theme.noarch 0:0.12-7.el7 will be installed
---> Package jasper-libs.x86_64 0:1.900.1-26.el7 will be installed
---> Package libXcomposite.x86_64 0:0.4.4-4.1.el7 will be installed
---> Package libXcursor.x86_64 0:1.1.14-2.1.el7 will be installed
---> Package libXdamage.x86_64 0:1.1.4-4.1.el7 will be installed
---> Package libXfixes.x86_64 0:5.0.1-2.1.el7 will be installed
---> Package libXfont.x86_64 0:1.4.7-1.1.el7 will be installed
---> Package libXft.x86_64 0:2.3.1-5.1.el7 will be installed
---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed
---> Package libXrandr.x86_64 0:1.4.1-2.1.el7 will be installed
---> Package libfontenc.x86_64 0:1.1.1-5.el7 will be installed
---> Package libogg.x86_64 2:1.3.0-7.el7 will be installed
---> Package libthai.x86_64 0:0.1.14-9.el7 will be installed
---> Package libtiff.x86_64 0:4.0.3-14.el7 will be installed
--> Processing Dependency: libjbig.so.2.0()(64bit) for package: libtiff-4.0.3-14.el7.x86_64
---> Package libvorbis.x86_64 1:1.3.3-8.el7 will be installed
---> Package mesa-libEGL.x86_64 0:9.2.5-5.20131218.el7 will be installed
--> Processing Dependency: mesa-libgbm = 9.2.5-5.20131218.el7 for package: mesa-libEGL-9.2.5-5.20131218.el7.x86_64
--> Processing Dependency: libglapi.so.0()(64bit) for package: mesa-libEGL-9.2.5-5.20131218.el7.x86_64
--> Processing Dependency: libgbm.so.1()(64bit) for package: mesa-libEGL-9.2.5-5.20131218.el7.x86_64
---> Package mesa-libGL.x86_64 0:9.2.5-5.20131218.el7 will be installed
--> Processing Dependency: libXxf86vm.so.1()(64bit) for package: mesa-libGL-9.2.5-5.20131218.el7.x86_64
---> Package pixman.x86_64 0:0.32.4-3.el7 will be installed
---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed
---> Package xerces-j2.noarch 0:2.11.0-16.el7 will be installed
--> Processing Dependency: xml-commons-resolver >= 1.2 for package: xerces-j2-2.11.0-16.el7.noarch
--> Processing Dependency: xml-commons-apis >= 1.4.01 for package: xerces-j2-2.11.0-16.el7.noarch
--> Processing Dependency: osgi(org.apache.xml.resolver) for package: xerces-j2-2.11.0-16.el7.noarch
--> Processing Dependency: osgi(javax.xml) for package: xerces-j2-2.11.0-16.el7.noarch
--> Running transaction check
---> Package graphite2.x86_64 0:1.2.2-5.el7 will be installed
---> Package jbigkit-libs.x86_64 0:2.0-11.el7 will be installed
---> Package libXxf86vm.x86_64 0:1.1.3-2.1.el7 will be installed
---> Package mesa-libgbm.x86_64 0:9.2.5-5.20131218.el7 will be installed
---> Package mesa-libglapi.x86_64 0:9.2.5-5.20131218.el7 will be installed
---> Package xml-commons-apis.noarch 0:1.4.01-16.el7 will be installed
---> Package xml-commons-resolver.noarch 0:1.2-15.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                      Arch    Version                    Repository
                                                                           Size
================================================================================
Installing:
 java-1.7.0-openjdk-devel     x86_64  1:1.7.0.65-2.5.1.2.el7_0   updates  9.1 M
 tomcat                       noarch  7.0.42-8.el7_0             updates   84 k
Installing for dependencies:
 apache-commons-collections   noarch  3.2.1-21.el7               base     506 k
 apache-commons-daemon        x86_64  1.0.13-6.el7               base      54 k
 apache-commons-dbcp          noarch  1.4-17.el7                 base     167 k
 apache-commons-logging       noarch  1.1.2-7.el7                base      78 k
 apache-commons-pool          noarch  1.6-9.el7                  base     113 k
 atk                          x86_64  2.8.0-4.el7                base     233 k
 avalon-framework             noarch  4.3-10.el7                 base      88 k
 avalon-logkit                noarch  2.1-14.el7                 base      87 k
 cairo                        x86_64  1.12.14-6.el7              base     697 k
 cups-libs                    x86_64  1:1.6.3-14.el7             base     352 k
 ecj                          x86_64  1:4.2.1-8.el7              base     1.4 M
 flac-libs                    x86_64  1.3.0-4.el7                base     169 k
 fontconfig                   x86_64  2.10.95-7.el7              base     228 k
 fontpackages-filesystem      noarch  1.44-8.el7                 base     9.9 k
 gdk-pixbuf2                  x86_64  2.28.2-4.el7               base     533 k
 geronimo-jms                 noarch  1.1.1-19.el7               base      31 k
 geronimo-jta                 noarch  1.1.1-17.el7               base      20 k
 giflib                       x86_64  4.1.6-9.el7                base      40 k
 graphite2                    x86_64  1.2.2-5.el7                base      81 k
 gsm                          x86_64  1.0.13-11.el7              base      30 k
 gtk2                         x86_64  2.24.22-5.el7              base     3.4 M
 harfbuzz                     x86_64  0.9.20-3.el7               base     144 k
 hicolor-icon-theme           noarch  0.12-7.el7                 base      42 k
 jasper-libs                  x86_64  1.900.1-26.el7             base     147 k
 java-1.7.0-openjdk           x86_64  1:1.7.0.65-2.5.1.2.el7_0   updates  196 k
 java-1.7.0-openjdk-headless  x86_64  1:1.7.0.65-2.5.1.2.el7_0   updates   25 M
 javamail                     noarch  1.4.6-8.el7                base     758 k
 javapackages-tools           noarch  3.4.1-6.el7_0              updates   72 k
 jbigkit-libs                 x86_64  2.0-11.el7                 base      46 k
 lcms2                        x86_64  2.5-4.el7                  base     133 k
 libICE                       x86_64  1.0.8-7.el7                base      63 k
 libSM                        x86_64  1.2.1-7.el7                base      38 k
 libX11                       x86_64  1.6.0-2.1.el7              base     605 k
 libX11-common                noarch  1.6.0-2.1.el7              base     181 k
 libXau                       x86_64  1.0.8-2.1.el7              base      29 k
 libXcomposite                x86_64  0.4.4-4.1.el7              base      22 k
 libXcursor                   x86_64  1.1.14-2.1.el7             base      30 k
 libXdamage                   x86_64  1.1.4-4.1.el7              base      20 k
 libXext                      x86_64  1.3.2-2.1.el7              base      38 k
 libXfixes                    x86_64  5.0.1-2.1.el7              base      18 k
 libXfont                     x86_64  1.4.7-1.1.el7              base     143 k
 libXft                       x86_64  2.3.1-5.1.el7              base      57 k
 libXi                        x86_64  1.7.2-2.1.el7              base      39 k
 libXinerama                  x86_64  1.1.3-2.1.el7              base      14 k
 libXrandr                    x86_64  1.4.1-2.1.el7              base      25 k
 libXrender                   x86_64  0.9.8-2.1.el7              base      25 k
 libXtst                      x86_64  1.2.2-2.1.el7              base      20 k
 libXxf86vm                   x86_64  1.1.3-2.1.el7              base      17 k
 libasyncns                   x86_64  0.8-7.el7                  base      26 k
 libfontenc                   x86_64  1.1.1-5.el7                base      29 k
 libjpeg-turbo                x86_64  1.2.90-5.el7               base     134 k
 libogg                       x86_64  2:1.3.0-7.el7              base      24 k
 libpng                       x86_64  2:1.5.13-5.el7             base     212 k
 libsndfile                   x86_64  1.0.25-9.el7               base     149 k
 libthai                      x86_64  0.1.14-9.el7               base     187 k
 libtiff                      x86_64  4.0.3-14.el7               base     167 k
 libvorbis                    x86_64  1:1.3.3-8.el7              base     204 k
 libxcb                       x86_64  1.9-5.el7                  base     169 k
 libxslt                      x86_64  1.1.28-5.el7               base     242 k
 log4j                        noarch  1.2.17-15.el7              base     443 k
 mesa-libEGL                  x86_64  9.2.5-5.20131218.el7       base      69 k
 mesa-libGL                   x86_64  9.2.5-5.20131218.el7       base     142 k
 mesa-libgbm                  x86_64  9.2.5-5.20131218.el7       base      29 k
 mesa-libglapi                x86_64  9.2.5-5.20131218.el7       base      34 k
 pango                        x86_64  1.34.1-5.el7               base     283 k
 pixman                       x86_64  0.32.4-3.el7               base     254 k
 pulseaudio-libs              x86_64  3.0-22.el7                 base     555 k
 python-javapackages          noarch  3.4.1-6.el7_0              updates   31 k
 python-lxml                  x86_64  3.2.1-4.el7                base     758 k
 tomcat-el-2.2-api            noarch  7.0.42-8.el7_0             updates   68 k
 tomcat-jsp-2.2-api           noarch  7.0.42-8.el7_0             updates   91 k
 tomcat-lib                   noarch  7.0.42-8.el7_0             updates  3.5 M
 tomcat-servlet-3.0-api       noarch  7.0.42-8.el7_0             updates  188 k
 ttmkfdir                     x86_64  3.0.9-41.el7               base      47 k
 tzdata-java                  noarch  2014e-1.el7_0              updates  148 k
 xalan-j2                     noarch  2.7.1-23.el7               base     1.9 M
 xerces-j2                    noarch  2.11.0-16.el7              base     1.1 M
 xml-commons-apis             noarch  1.4.01-16.el7              base     227 k
 xml-commons-resolver         noarch  1.2-15.el7                 base     108 k
 xorg-x11-font-utils          x86_64  1:7.5-18.1.el7             base      87 k
 xorg-x11-fonts-Type1         noarch  7.5-9.el7                  base     521 k

Transaction Summary
================================================================================
Install  2 Packages (+81 Dependent packages)

Total download size: 57 M
Installed size: 182 M
Downloading packages:
(1/83): apache-commons-dbcp-1.4-17.el7.noarch.rpm          | 167 kB   00:00
(2/83): apache-commons-pool-1.6-9.el7.noarch.rpm           | 113 kB   00:00
(3/83): apache-commons-daemon-1.0.13-6.el7.x86_64.rpm      |  54 kB   00:01
(4/83): avalon-framework-4.3-10.el7.noarch.rpm             |  88 kB   00:00
(5/83): atk-2.8.0-4.el7.x86_64.rpm                         | 233 kB   00:00
(6/83): cups-libs-1.6.3-14.el7.x86_64.rpm                  | 352 kB   00:00
(7/83): avalon-logkit-2.1-14.el7.noarch.rpm                |  87 kB   00:01
(8/83): apache-commons-logging-1.1.2-7.el7.noarch.rpm      |  78 kB   00:04
(9/83): flac-libs-1.3.0-4.el7.x86_64.rpm                   | 169 kB   00:02
(10/83): ecj-4.2.1-8.el7.x86_64.rpm                        | 1.4 MB   00:03
(11/83): fontpackages-filesystem-1.44-8.el7.noarch.rpm     | 9.9 kB   00:00
(12/83): apache-commons-collections-3.2.1-21.el7.noarch.rp | 506 kB   00:07
(13/83): cairo-1.12.14-6.el7.x86_64.rpm                    | 697 kB   00:05
(14/83): fontconfig-2.10.95-7.el7.x86_64.rpm               | 228 kB   00:03
(15/83): geronimo-jms-1.1.1-19.el7.noarch.rpm              |  31 kB   00:01
(16/83): gsm-1.0.13-11.el7.x86_64.rpm                      |  30 kB   00:00
(17/83): giflib-4.1.6-9.el7.x86_64.rpm                     |  40 kB   00:01
(18/83): graphite2-1.2.2-5.el7.x86_64.rpm                  |  81 kB   00:01
(19/83): gdk-pixbuf2-2.28.2-4.el7.x86_64.rpm               | 533 kB   00:02
(20/83): geronimo-jta-1.1.1-17.el7.noarch.rpm              |  20 kB   00:01
(21/83): harfbuzz-0.9.20-3.el7.x86_64.rpm                  | 144 kB   00:00
(22/83): jasper-libs-1.900.1-26.el7.x86_64.rpm             | 147 kB   00:00
(23/83): hicolor-icon-theme-0.12-7.el7.noarch.rpm          |  42 kB   00:00
(24/83): java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64. | 196 kB   00:03
(26/83): java-1.7.0-openjd 11% [=-              ] 488 kB/s | 6.6 MB   01:46 ETA
Message from syslogd@test at Aug 21 23:41:16 ...
 kernel:BUG: soft lockup - CPU#0 stuck for 21s! [kworker/0:2:167]
javapackages-tools-3.4.1-6.el7 FAILED
http://mirrors.btte.net/centos/7.0.1406/updates/x86_64/Packages/javapackages-tools-3.4.1-6.el7_0.noarch.rpm: [Errno 12] Timeout on http://mirrors.btte.net/centos/7.0.1406/updates/x86_64/Packages/javapackages-tools-3.4.1-6.el7_0.noarch.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
(25/83): jbigkit-libs-2.0-11.el7.x86_64.rpm                |  46 kB   00:00
(26/83): lcms2-2.5-4.el7.x86_64.rpm                        | 133 kB   00:00
(27/83): libICE-1.0.8-7.el7.x86_64.rpm                     |  63 kB   00:00
(28/83): libSM-1.2.1-7.el7.x86_64.rpm                      |  38 kB   00:00
(29/83): libX11-1.6.0-2.1.el7.x86_64.rpm                   | 605 kB   00:02
(30/83): libX11-common-1.6.0-2.1.el7.noarch.rpm            | 181 kB   00:01
(31/83): libXau-1.0.8-2.1.el7.x86_64.rpm                   |  29 kB   00:00
(32/83): libXcomposite-0.4.4-4.1.el7.x86_64.rpm            |  22 kB   00:00
(33/83): libXcursor-1.1.14-2.1.el7.x86_64.rpm              |  30 kB   00:00
(34/83): libXdamage-1.1.4-4.1.el7.x86_64.rpm               |  20 kB   00:00
(35/83): libXext-1.3.2-2.1.el7.x86_64.rpm                  |  38 kB   00:00
(36/83): libXfixes-5.0.1-2.1.el7.x86_64.rpm                |  18 kB   00:00
(37/83): libXfont-1.4.7-1.1.el7.x86_64.rpm                 | 143 kB   00:01
(38/83): libXft-2.3.1-5.1.el7.x86_64.rpm                   |  57 kB   00:00
(39/83): libXi-1.7.2-2.1.el7.x86_64.rpm                    |  39 kB   00:00
(40/83): libXinerama-1.1.3-2.1.el7.x86_64.rpm              |  14 kB   00:00
(41/83): libXrandr-1.4.1-2.1.el7.x86_64.rpm                |  25 kB   00:00
(42/83): libXrender-0.9.8-2.1.el7.x86_64.rpm               |  25 kB   00:00
(43/83): libXtst-1.2.2-2.1.el7.x86_64.rpm                  |  20 kB   00:00
(44/83): libXxf86vm-1.1.3-2.1.el7.x86_64.rpm               |  17 kB   00:00
(45/83): libasyncns-0.8-7.el7.x86_64.rpm                   |  26 kB   00:00
(46/83): libfontenc-1.1.1-5.el7.x86_64.rpm                 |  29 kB   00:01
(47/83): libjpeg-turbo-1.2.90-5.el7.x86_64.rpm             | 134 kB   00:00
(48/83): libogg-1.3.0-7.el7.x86_64.rpm                     |  24 kB   00:00
(49/83): libpng-1.5.13-5.el7.x86_64.rpm                    | 212 kB   00:01
(50/83): libsndfile-1.0.25-9.el7.x86_64.rpm                | 149 kB   00:01
(51/83): libthai-0.1.14-9.el7.x86_64.rpm                   | 187 kB   00:01
(52/83): libtiff-4.0.3-14.el7.x86_64.rpm                   | 167 kB   00:01
(53/83): libvorbis-1.3.3-8.el7.x86_64.rpm                  | 204 kB   00:01
(54/83): libxcb-1.9-5.el7.x86_64.rpm                       | 169 kB   00:01
(55/83): libxslt-1.1.28-5.el7.x86_64.rpm                   | 242 kB   00:01
(56/83): log4j-1.2.17-15.el7.noarch.rpm                    | 443 kB   00:03
(57/83): mesa-libEGL-9.2.5-5.20131218.el7.x86_64.rpm       |  69 kB   00:00
javamail-1.4.6-8.el7.noarch.rp FAILED
http://mirror.neu.edu.cn/centos/7.0.1406/os/x86_64/Packages/javamail-1.4.6-8.el7.noarch.rpm: [Errno 14] curl#18 - "transfer closed with 480077 bytes remaining to read"
Trying other mirror.
java-1.7.0-openjdk-devel-1.7.0 FAILED
http://mirrors.pubyun.com/centos/7.0.1406/updates/x86_64/Packages/java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el7_0.x86_64.rpm: [Errno 12] Timeout on http://mirrors.pubyun.com/centos/7.0.1406/updates/x86_64/Packages/java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el7_0.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
gtk2-2.24.22-5.el7.x86_64.rpm  FAILED
http://mirrors.btte.net/centos/7.0.1406/os/x86_64/Packages/gtk2-2.24.22-5.el7.x86_64.rpm: [Errno 12] Timeout on http://mirrors.btte.net/centos/7.0.1406/os/x86_64/Packages/gtk2-2.24.22-5.el7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
(58/83): mesa-libGL-9.2.5-5.20131218.el7.x86_64.rpm        | 142 kB   00:01
(59/83): mesa-libgbm-9.2.5-5.20131218.el7.x86_64.rpm       |  29 kB   00:00
(60/83): mesa-libglapi-9.2.5-5.20131218.el7.x86_64.rpm     |  34 kB   00:00
(61/83): pango-1.34.1-5.el7.x86_64.rpm                     | 283 kB   00:02
(62/83): pulseaudio-libs-3.0-22.el7.x86_64.rpm             | 555 kB   00:02
(63/83): python-javapackages-3.4.1-6.el7_0.noarch.rpm      |  31 kB   00:02
(64/83): pixman-0.32.4-3.el7.x86_64.rpm                    | 254 kB   00:02
(65/83): tomcat-7.0.42-8.el7_0.noarch.rpm                  |  84 kB   00:00
(66/83): tomcat-jsp-2.2-api-7.0.42-8.el7_0.noarch.rpm      |  91 kB   00:00
(67/83): tomcat-el-2.2-api-7.0.42-8.el7_0.noarch.rpm       |  68 kB   00:01
(68/83): python-lxml-3.2.1-4.el7.x86_64.rpm                | 758 kB   00:02
(69/83): ttmkfdir-3.0.9-41.el7.x86_64.rpm                  |  47 kB   00:01
(70/83): tomcat-servlet-3.0-api-7.0.42-8.el7_0.noarch.rpm  | 188 kB   00:02
(71/83): tzdata-java-2014e-1.el7_0.noarch.rpm              | 148 kB   00:03
(72/83): xml-commons-apis-1.4.01-16.el7.noarch.rpm         | 227 kB   00:02
(73/83): xml-commons-resolver-1.2-15.el7.noarch.rpm        | 108 kB   00:01
(74/83): tomcat-lib-7.0.42-8.el7_0.noarch.rpm              | 3.5 MB   00:08
(75/83): xorg-x11-font-utils-7.5-18.1.el7.x86_64.rpm       |  87 kB   00:00
(76/83): javapackages-tools-3.4.1-6.el7_0.noarch.rpm       |  72 kB   00:00
(77/83): xerces-j2-2.11.0-16.el7.noarch.rpm                | 1.1 MB   00:12
(78/83): xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm         | 521 kB   00:06
(79/83): javamail-1.4.6-8.el7.noarch.rpm                   | 758 kB   00:06
(80/83): xalan-j2-2.7.1-23.el7.noarch.rpm                  | 1.9 MB   00:16
(81/83): gtk2-2.24.22-5.el7.x86_64.rpm                     | 3.4 MB   00:12
(82/83): java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_ |  25 MB   02:07
(83/83): java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el7_0.x | 9.1 MB   00:27
--------------------------------------------------------------------------------
Total                                              416 kB/s |  57 MB  02:21
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libjpeg-turbo-1.2.90-5.el7.x86_64                           1/83
  Installing : 1:cups-libs-1.6.3-14.el7.x86_64                             2/83
  Installing : 2:libogg-1.3.0-7.el7.x86_64                                 3/83
  Installing : libICE-1.0.8-7.el7.x86_64                                   4/83
  Installing : 2:libpng-1.5.13-5.el7.x86_64                                5/83
  Installing : mesa-libglapi-9.2.5-5.20131218.el7.x86_64                   6/83
  Installing : libSM-1.2.1-7.el7.x86_64                                    7/83
  Installing : atk-2.8.0-4.el7.x86_64                                      8/83
  Installing : libfontenc-1.1.1-5.el7.x86_64                               9/83
  Installing : libxslt-1.1.28-5.el7.x86_64                                10/83
  Installing : python-lxml-3.2.1-4.el7.x86_64                             11/83
  Installing : python-javapackages-3.4.1-6.el7_0.noarch                   12/83
  Installing : javapackages-tools-3.4.1-6.el7_0.noarch                    13/83
  Installing : tomcat-servlet-3.0-api-7.0.42-8.el7_0.noarch               14/83
  Installing : tomcat-jsp-2.2-api-7.0.42-8.el7_0.noarch                   15/83
  Installing : 1:ecj-4.2.1-8.el7.x86_64                                   16/83
  Installing : tomcat-el-2.2-api-7.0.42-8.el7_0.noarch                    17/83
  Installing : libXfont-1.4.7-1.1.el7.x86_64                              18/83
  Installing : 1:xorg-x11-font-utils-7.5-18.1.el7.x86_64                  19/83
  Installing : mesa-libgbm-9.2.5-5.20131218.el7.x86_64                    20/83
  Installing : 1:libvorbis-1.3.3-8.el7.x86_64                             21/83
  Installing : flac-libs-1.3.0-4.el7.x86_64                               22/83
  Installing : jasper-libs-1.900.1-26.el7.x86_64                          23/83
  Installing : lcms2-2.5-4.el7.x86_64                                     24/83
  Installing : gsm-1.0.13-11.el7.x86_64                                   25/83
  Installing : libsndfile-1.0.25-9.el7.x86_64                             26/83
  Installing : libXau-1.0.8-2.1.el7.x86_64                                27/83
  Installing : libxcb-1.9-5.el7.x86_64                                    28/83
  Installing : tzdata-java-2014e-1.el7_0.noarch                           29/83
  Installing : libasyncns-0.8-7.el7.x86_64                                30/83
  Installing : ttmkfdir-3.0.9-41.el7.x86_64                               31/83
  Installing : graphite2-1.2.2-5.el7.x86_64                               32/83
  Installing : harfbuzz-0.9.20-3.el7.x86_64                               33/83
  Installing : libthai-0.1.14-9.el7.x86_64                                34/83
  Installing : jbigkit-libs-2.0-11.el7.x86_64                             35/83
  Installing : libtiff-4.0.3-14.el7.x86_64                                36/83
  Installing : hicolor-icon-theme-0.12-7.el7.noarch                       37/83
  Installing : fontpackages-filesystem-1.44-8.el7.noarch                  38/83
  Installing : fontconfig-2.10.95-7.el7.x86_64                            39/83
  Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch                      40/83
  Installing : pixman-0.32.4-3.el7.x86_64                                 41/83
  Installing : libX11-common-1.6.0-2.1.el7.noarch                         42/83
  Installing : libX11-1.6.0-2.1.el7.x86_64                                43/83
  Installing : libXext-1.3.2-2.1.el7.x86_64                               44/83
  Installing : libXrender-0.9.8-2.1.el7.x86_64                            45/83
  Installing : libXfixes-5.0.1-2.1.el7.x86_64                             46/83
  Installing : libXi-1.7.2-2.1.el7.x86_64                                 47/83
  Installing : libXtst-1.2.2-2.1.el7.x86_64                               48/83
  Installing : libXdamage-1.1.4-4.1.el7.x86_64                            49/83
  Installing : gdk-pixbuf2-2.28.2-4.el7.x86_64                            50/83
  Installing : pulseaudio-libs-3.0-22.el7.x86_64                          51/83
  Installing : libXcursor-1.1.14-2.1.el7.x86_64                           52/83
  Installing : libXft-2.3.1-5.1.el7.x86_64                                53/83
  Installing : libXrandr-1.4.1-2.1.el7.x86_64                             54/83
  Installing : libXinerama-1.1.3-2.1.el7.x86_64                           55/83
  Installing : libXxf86vm-1.1.3-2.1.el7.x86_64                            56/83
  Installing : mesa-libGL-9.2.5-5.20131218.el7.x86_64                     57/83
  Installing : giflib-4.1.6-9.el7.x86_64                                  58/83
  Installing : libXcomposite-0.4.4-4.1.el7.x86_64                         59/83
  Installing : mesa-libEGL-9.2.5-5.20131218.el7.x86_64                    60/83
  Installing : cairo-1.12.14-6.el7.x86_64                                 61/83
  Installing : pango-1.34.1-5.el7.x86_64                                  62/83
  Installing : gtk2-2.24.22-5.el7.x86_64                                  63/83
  Installing : 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86   64/83
  Installing : 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64         65/83
  Installing : apache-commons-pool-1.6-9.el7.noarch                       66/83
  Installing : xml-commons-apis-1.4.01-16.el7.noarch                      67/83
  Installing : geronimo-jms-1.1.1-19.el7.noarch                           68/83
  Installing : apache-commons-collections-3.2.1-21.el7.noarch             69/83
  Installing : xml-commons-resolver-1.2-15.el7.noarch                     70/83
  Installing : xalan-j2-2.7.1-23.el7.noarch                               71/83
  Installing : xerces-j2-2.11.0-16.el7.noarch                             72/83
  Installing : apache-commons-daemon-1.0.13-6.el7.x86_64                  73/83
  Installing : javamail-1.4.6-8.el7.noarch                                74/83
  Installing : log4j-1.2.17-15.el7.noarch                                 75/83
  Installing : avalon-logkit-2.1-14.el7.noarch                            76/83
  Installing : avalon-framework-4.3-10.el7.noarch                         77/83
  Installing : apache-commons-logging-1.1.2-7.el7.noarch                  78/83
  Installing : geronimo-jta-1.1.1-17.el7.noarch                           79/83
  Installing : apache-commons-dbcp-1.4-17.el7.noarch                      80/83
  Installing : tomcat-lib-7.0.42-8.el7_0.noarch                           81/83
  Installing : tomcat-7.0.42-8.el7_0.noarch                               82/83
  Installing : 1:java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el7_0.x86_64   83/83
  Verifying  : libsndfile-1.0.25-9.el7.x86_64                              1/83
  Verifying  : libXinerama-1.1.3-2.1.el7.x86_64                            2/83
  Verifying  : mesa-libglapi-9.2.5-5.20131218.el7.x86_64                   3/83
  Verifying  : 1:java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el7_0.x86_64          4/83
  Verifying  : mesa-libGL-9.2.5-5.20131218.el7.x86_64                      5/83
  Verifying  : giflib-4.1.6-9.el7.x86_64                                   6/83
  Verifying  : 1:java-1.7.0-openjdk-headless-1.7.0.65-2.5.1.2.el7_0.x86    7/83
  Verifying  : libjpeg-turbo-1.2.90-5.el7.x86_64                           8/83
  Verifying  : avalon-logkit-2.1-14.el7.noarch                             9/83
  Verifying  : libX11-common-1.6.0-2.1.el7.noarch                         10/83
  Verifying  : libXtst-1.2.2-2.1.el7.x86_64                               11/83
  Verifying  : apache-commons-daemon-1.0.13-6.el7.x86_64                  12/83
  Verifying  : javamail-1.4.6-8.el7.noarch                                13/83
  Verifying  : python-lxml-3.2.1-4.el7.x86_64                             14/83
  Verifying  : 1:xorg-x11-font-utils-7.5-18.1.el7.x86_64                  15/83
  Verifying  : libXcomposite-0.4.4-4.1.el7.x86_64                         16/83
  Verifying  : pixman-0.32.4-3.el7.x86_64                                 17/83
  Verifying  : libXxf86vm-1.1.3-2.1.el7.x86_64                            18/83
  Verifying  : xml-commons-resolver-1.2-15.el7.noarch                     19/83
  Verifying  : mesa-libEGL-9.2.5-5.20131218.el7.x86_64                    20/83
  Verifying  : fontpackages-filesystem-1.44-8.el7.noarch                  21/83
  Verifying  : libtiff-4.0.3-14.el7.x86_64                                22/83
  Verifying  : libXfont-1.4.7-1.1.el7.x86_64                              23/83
  Verifying  : hicolor-icon-theme-0.12-7.el7.noarch                       24/83
  Verifying  : 1:ecj-4.2.1-8.el7.x86_64                                   25/83
  Verifying  : jbigkit-libs-2.0-11.el7.x86_64                             26/83
  Verifying  : libXcursor-1.1.14-2.1.el7.x86_64                           27/83
  Verifying  : libXi-1.7.2-2.1.el7.x86_64                                 28/83
  Verifying  : libXft-2.3.1-5.1.el7.x86_64                                29/83
  Verifying  : avalon-framework-4.3-10.el7.noarch                         30/83
  Verifying  : gtk2-2.24.22-5.el7.x86_64                                  31/83
  Verifying  : 2:libpng-1.5.13-5.el7.x86_64                               32/83
  Verifying  : tomcat-servlet-3.0-api-7.0.42-8.el7_0.noarch               33/83
  Verifying  : tomcat-7.0.42-8.el7_0.noarch                               34/83
  Verifying  : libthai-0.1.14-9.el7.x86_64                                35/83
  Verifying  : mesa-libgbm-9.2.5-5.20131218.el7.x86_64                    36/83
  Verifying  : pulseaudio-libs-3.0-22.el7.x86_64                          37/83
  Verifying  : log4j-1.2.17-15.el7.noarch                                 38/83
  Verifying  : libXrender-0.9.8-2.1.el7.x86_64                            39/83
  Verifying  : javapackages-tools-3.4.1-6.el7_0.noarch                    40/83
  Verifying  : cairo-1.12.14-6.el7.x86_64                                 41/83
  Verifying  : xml-commons-apis-1.4.01-16.el7.noarch                      42/83
  Verifying  : libxcb-1.9-5.el7.x86_64                                    43/83
  Verifying  : geronimo-jms-1.1.1-19.el7.noarch                           44/83
  Verifying  : xerces-j2-2.11.0-16.el7.noarch                             45/83
  Verifying  : graphite2-1.2.2-5.el7.x86_64                               46/83
  Verifying  : python-javapackages-3.4.1-6.el7_0.noarch                   47/83
  Verifying  : xorg-x11-fonts-Type1-7.5-9.el7.noarch                      48/83
  Verifying  : tomcat-jsp-2.2-api-7.0.42-8.el7_0.noarch                   49/83
  Verifying  : ttmkfdir-3.0.9-41.el7.x86_64                               50/83
  Verifying  : 1:java-1.7.0-openjdk-devel-1.7.0.65-2.5.1.2.el7_0.x86_64   51/83
  Verifying  : libxslt-1.1.28-5.el7.x86_64                                52/83
  Verifying  : libasyncns-0.8-7.el7.x86_64                                53/83
  Verifying  : pango-1.34.1-5.el7.x86_64                                  54/83
  Verifying  : libICE-1.0.8-7.el7.x86_64                                  55/83
  Verifying  : apache-commons-dbcp-1.4-17.el7.noarch                      56/83
  Verifying  : 2:libogg-1.3.0-7.el7.x86_64                                57/83
  Verifying  : libSM-1.2.1-7.el7.x86_64                                   58/83
  Verifying  : 1:cups-libs-1.6.3-14.el7.x86_64                            59/83
  Verifying  : xalan-j2-2.7.1-23.el7.noarch                               60/83
  Verifying  : libX11-1.6.0-2.1.el7.x86_64                                61/83
  Verifying  : tzdata-java-2014e-1.el7_0.noarch                           62/83
  Verifying  : 1:libvorbis-1.3.3-8.el7.x86_64                             63/83
  Verifying  : harfbuzz-0.9.20-3.el7.x86_64                               64/83
  Verifying  : apache-commons-collections-3.2.1-21.el7.noarch             65/83
  Verifying  : tomcat-lib-7.0.42-8.el7_0.noarch                           66/83
  Verifying  : apache-commons-logging-1.1.2-7.el7.noarch                  67/83
  Verifying  : libfontenc-1.1.1-5.el7.x86_64                              68/83
  Verifying  : jasper-libs-1.900.1-26.el7.x86_64                          69/83
  Verifying  : libXfixes-5.0.1-2.1.el7.x86_64                             70/83
  Verifying  : libXau-1.0.8-2.1.el7.x86_64                                71/83
  Verifying  : libXrandr-1.4.1-2.1.el7.x86_64                             72/83
  Verifying  : apache-commons-pool-1.6-9.el7.noarch                       73/83
  Verifying  : libXext-1.3.2-2.1.el7.x86_64                               74/83
  Verifying  : fontconfig-2.10.95-7.el7.x86_64                            75/83
  Verifying  : flac-libs-1.3.0-4.el7.x86_64                               76/83
  Verifying  : gsm-1.0.13-11.el7.x86_64                                   77/83
  Verifying  : libXdamage-1.1.4-4.1.el7.x86_64                            78/83
  Verifying  : geronimo-jta-1.1.1-17.el7.noarch                           79/83
  Verifying  : lcms2-2.5-4.el7.x86_64                                     80/83
  Verifying  : atk-2.8.0-4.el7.x86_64                                     81/83
  Verifying  : gdk-pixbuf2-2.28.2-4.el7.x86_64                            82/83
  Verifying  : tomcat-el-2.2-api-7.0.42-8.el7_0.noarch                    83/83

Installed:
  java-1.7.0-openjdk-devel.x86_64 1:1.7.0.65-2.5.1.2.el7_0
  tomcat.noarch 0:7.0.42-8.el7_0

Dependency Installed:
  apache-commons-collections.noarch 0:3.2.1-21.el7
  apache-commons-daemon.x86_64 0:1.0.13-6.el7
  apache-commons-dbcp.noarch 0:1.4-17.el7
  apache-commons-logging.noarch 0:1.1.2-7.el7
  apache-commons-pool.noarch 0:1.6-9.el7
  atk.x86_64 0:2.8.0-4.el7
  avalon-framework.noarch 0:4.3-10.el7
  avalon-logkit.noarch 0:2.1-14.el7
  cairo.x86_64 0:1.12.14-6.el7
  cups-libs.x86_64 1:1.6.3-14.el7
  ecj.x86_64 1:4.2.1-8.el7
  flac-libs.x86_64 0:1.3.0-4.el7
  fontconfig.x86_64 0:2.10.95-7.el7
  fontpackages-filesystem.noarch 0:1.44-8.el7
  gdk-pixbuf2.x86_64 0:2.28.2-4.el7
  geronimo-jms.noarch 0:1.1.1-19.el7
  geronimo-jta.noarch 0:1.1.1-17.el7
  giflib.x86_64 0:4.1.6-9.el7
  graphite2.x86_64 0:1.2.2-5.el7
  gsm.x86_64 0:1.0.13-11.el7
  gtk2.x86_64 0:2.24.22-5.el7
  harfbuzz.x86_64 0:0.9.20-3.el7
  hicolor-icon-theme.noarch 0:0.12-7.el7
  jasper-libs.x86_64 0:1.900.1-26.el7
  java-1.7.0-openjdk.x86_64 1:1.7.0.65-2.5.1.2.el7_0
  java-1.7.0-openjdk-headless.x86_64 1:1.7.0.65-2.5.1.2.el7_0
  javamail.noarch 0:1.4.6-8.el7
  javapackages-tools.noarch 0:3.4.1-6.el7_0
  jbigkit-libs.x86_64 0:2.0-11.el7
  lcms2.x86_64 0:2.5-4.el7
  libICE.x86_64 0:1.0.8-7.el7
  libSM.x86_64 0:1.2.1-7.el7
  libX11.x86_64 0:1.6.0-2.1.el7
  libX11-common.noarch 0:1.6.0-2.1.el7
  libXau.x86_64 0:1.0.8-2.1.el7
  libXcomposite.x86_64 0:0.4.4-4.1.el7
  libXcursor.x86_64 0:1.1.14-2.1.el7
  libXdamage.x86_64 0:1.1.4-4.1.el7
  libXext.x86_64 0:1.3.2-2.1.el7
  libXfixes.x86_64 0:5.0.1-2.1.el7
  libXfont.x86_64 0:1.4.7-1.1.el7
  libXft.x86_64 0:2.3.1-5.1.el7
  libXi.x86_64 0:1.7.2-2.1.el7
  libXinerama.x86_64 0:1.1.3-2.1.el7
  libXrandr.x86_64 0:1.4.1-2.1.el7
  libXrender.x86_64 0:0.9.8-2.1.el7
  libXtst.x86_64 0:1.2.2-2.1.el7
  libXxf86vm.x86_64 0:1.1.3-2.1.el7
  libasyncns.x86_64 0:0.8-7.el7
  libfontenc.x86_64 0:1.1.1-5.el7
  libjpeg-turbo.x86_64 0:1.2.90-5.el7
  libogg.x86_64 2:1.3.0-7.el7
  libpng.x86_64 2:1.5.13-5.el7
  libsndfile.x86_64 0:1.0.25-9.el7
  libthai.x86_64 0:0.1.14-9.el7
  libtiff.x86_64 0:4.0.3-14.el7
  libvorbis.x86_64 1:1.3.3-8.el7
  libxcb.x86_64 0:1.9-5.el7
  libxslt.x86_64 0:1.1.28-5.el7
  log4j.noarch 0:1.2.17-15.el7
  mesa-libEGL.x86_64 0:9.2.5-5.20131218.el7
  mesa-libGL.x86_64 0:9.2.5-5.20131218.el7
  mesa-libgbm.x86_64 0:9.2.5-5.20131218.el7
  mesa-libglapi.x86_64 0:9.2.5-5.20131218.el7
  pango.x86_64 0:1.34.1-5.el7
  pixman.x86_64 0:0.32.4-3.el7
  pulseaudio-libs.x86_64 0:3.0-22.el7
  python-javapackages.noarch 0:3.4.1-6.el7_0
  python-lxml.x86_64 0:3.2.1-4.el7
  tomcat-el-2.2-api.noarch 0:7.0.42-8.el7_0
  tomcat-jsp-2.2-api.noarch 0:7.0.42-8.el7_0
  tomcat-lib.noarch 0:7.0.42-8.el7_0
  tomcat-servlet-3.0-api.noarch 0:7.0.42-8.el7_0
  ttmkfdir.x86_64 0:3.0.9-41.el7
  tzdata-java.noarch 0:2014e-1.el7_0
  xalan-j2.noarch 0:2.7.1-23.el7
  xerces-j2.noarch 0:2.11.0-16.el7
  xml-commons-apis.noarch 0:1.4.01-16.el7
  xml-commons-resolver.noarch 0:1.2-15.el7
  xorg-x11-font-utils.x86_64 1:7.5-18.1.el7
  xorg-x11-fonts-Type1.noarch 0:7.5-9.el7

Complete!

On EL 7, there's a new service control mechanism named systemctld. If we want to startup / shutdown Tomcat through systemctld, we must have a service delegates Tomcat to operate with. Before we decide to create a customized Tomcat service, we can check whether a formal tomcat.service exists or not, which can save our time.
[root@test ~]# systemctl status tomcat.service
tomcat.service - Apache Tomcat Web Application Container
   Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled)
   Active: inactive (dead)

[root@test ~]# systemctl show tomcat.service
Id=tomcat.service
Names=tomcat.service
Requires=basic.target
Wants=system.slice
Conflicts=shutdown.target
Before=shutdown.target
After=syslog.target network.target systemd-journald.socket basic.target system.s
Description=Apache Tomcat Web Application Container
LoadState=loaded
ActiveState=inactive
SubState=dead
FragmentPath=/usr/lib/systemd/system/tomcat.service
UnitFileState=disabled
InactiveExitTimestampMonotonic=0
ActiveEnterTimestampMonotonic=0
ActiveExitTimestampMonotonic=0
InactiveEnterTimestampMonotonic=0
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
OnFailureIsolate=no
IgnoreOnIsolate=no
IgnoreOnSnapshot=no
NeedDaemonReload=no
JobTimeoutUSec=0
ConditionTimestampMonotonic=0
ConditionResult=no
Transient=no
Slice=system.slice
Type=forking
Restart=no
NotifyAccess=none
RestartUSec=100ms
TimeoutStartUSec=1min 30s
TimeoutStopUSec=1min 30s
WatchdogUSec=0
WatchdogTimestampMonotonic=0
StartLimitInterval=10000000
StartLimitBurst=5
StartLimitAction=none
ExecStart={ path=/usr/sbin/tomcat-sysd ; argv[]=/usr/sbin/tomcat-sysd start ; ig
ExecStop={ path=/usr/sbin/tomcat-sysd ; argv[]=/usr/sbin/tomcat-sysd stop ; igno
PermissionsStartOnly=no
RootDirectoryStartOnly=no
RemainAfterExit=no
GuessMainPID=yes
MainPID=0
ControlPID=0
Result=success
UMask=0022
LimitCPU=18446744073709551615
LimitFSIZE=18446744073709551615
LimitDATA=18446744073709551615
LimitSTACK=18446744073709551615
LimitCORE=18446744073709551615
LimitRSS=18446744073709551615
LimitNOFILE=4096
LimitAS=18446744073709551615
LimitNPROC=14573
LimitMEMLOCK=65536
LimitLOCKS=18446744073709551615
LimitSIGPENDING=14573
LimitMSGQUEUE=819200
LimitNICE=0
LimitRTPRIO=0
LimitRTTIME=18446744073709551615
OOMScoreAdjust=0
Nice=0
IOScheduling=0
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=journal
StandardError=inherit
TTYReset=no
TTYVHangup=no
TTYVTDisallocate=no
SyslogPriority=30
SyslogLevelPrefix=yes
SecureBits=0
CapabilityBoundingSet=18446744073709551615
User=tomcat
Group=tomcat
MountFlags=0
PrivateTmp=no
PrivateNetwork=no
SameProcessGroup=no
IgnoreSIGPIPE=yes
NoNewPrivileges=no
KillMode=control-group
KillSignal=15
SendSIGKILL=yes
SendSIGHUP=no
CPUAccounting=no
CPUShares=1024
BlockIOAccounting=no
BlockIOWeight=1000
MemoryAccounting=no
MemoryLimit=18446744073709551615
DevicePolicy=auto
ExecMainStartTimestampMonotonic=0
ExecMainExitTimestampMonotonic=0
ExecMainPID=0
ExecMainCode=0
ExecMainStatus=0

Great! A formal tomcat.service exists (but is disabled). This could be the best part of this approach, we don't have to create the service by ourselves, because creating a systemctl service is quite complicated.

If you're interested in creating a Tomcat service by yourselves, please refer to the following post:
How to Start Tomcat 8 Automatically at Server Boot on Enterprise Linux 7

Enable tomcat.service for starting up automatically at server boot.
[root@test ~]# systemctl enable tomcat.service
ln -s '/usr/lib/systemd/system/tomcat.service' '/etc/systemd/system/multi-user.target.wants/tomcat.service'
[root@test ~]# systemctl status tomcat.service
tomcat.service - Apache Tomcat Web Application Container
   Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled)
   Active: inactive (dead)

Startup Tomcat in current Linux instance.
[root@test ~]# systemctl start tomcat.service
[root@test ~]# systemctl status tomcat.service -l
tomcat.service - Apache Tomcat Web Application Container
   Loaded: loaded (/usr/lib/systemd/system/tomcat.service; enabled)
   Active: active (running) since Thu 2014-08-21 19:28:24 CST; 2s ago
  Process: 2517 ExecStart=/usr/sbin/tomcat-sysd start (code=exited, status=0/SUCCESS)
 Main PID: 2535 (java)
   CGroup: /system.slice/tomcat.service
           ??2535 java -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat/temp -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start

Aug 21 19:28:24 test.example.com
#localhost.localdomain systemd[1]: Starting Apache Tomcat Web Application Container...
Aug 21 19:28:24 test.example.com
#localhost.localdomain systemd[1]: Started Apache Tomcat Web Application Container.

Open port for public http (i.e. 80) accesses for both runtime and permanent. Since firewalld is newly introduced on EL 7, you should be aware of the settings below.
[root@test ~]# firewall-cmd --zone=public --add-service=http
success
[root@test ~]# firewall-cmd --zone=public --add-service=http --permanent
success

Forward port 80 to tomcat port 8080 for both runtime and permanent.
[root@test ~]# firewall-cmd --zone=public --add-forward-port=port=80:proto=tcp:toport=8080
success
[root@test ~]# firewall-cmd --zone=public --add-forward-port=port=80:proto=tcp:toport=8080 --permanent
success

By forwarding all the traffic from port 80 to port 8080 of Tomcat, you need not to open port 8080 on firewall and clients also need not to specify the port number in URL explicitly. I will explain more on the following post:
How to Make Tomcat Respond to Port 80

Leave a Reply

Your email address will not be published. Required fields are marked *