Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-516

RHEL6 RPM: /usr/sbin/tomcat7 and /usr/sbin/tomcat8 don't work

XMLWordPrintable

    • Release Notes

      +++ This bug was initially created as a clone of Bug #1374490 +++

      Description of problem:
      The /usr/sbin/tomcat7 and /usr/sbin/tomcat8 scripts are broken because they don't load any tomcat configuration files before trying to use tomcat-defined environment variables.

      Version-Release number of selected component (if applicable):
      tomcat7-7.0.70-5.ep7.el6.noarch
      tomcat8-8.0.36-5.ep7.el6.noarch

      How reproducible:
      Always

      Steps to Reproduce:
      1. yum install tomcat8
      2. `tomcat8 start` or `tomcat8 version` to observe the failure

      Actual results:

      1. tomcat8 start
        /usr/sbin/tomcat8: line 32: $CATALINA_PID: ambiguous redirect
        /usr/sbin/tomcat8: line 24: /logs/catalina.out: No such file or directory
      2. tomcat8 version
        Error: Could not find or load main class org.apache.catalina.util.ServerInfo

      Expected results:
      tomcat8 starts correctly

      Additional info:
      This is a direct result of the solution for https://bugzilla.redhat.com/show_bug.cgi?id=636997 (the lines that load config are commented out). I pushed a fix into epel-6/tomcat which is pertinent here (https://bugzilla.redhat.com/show_bug.cgi?id=1104704), so I'll likely do the same thing to resolve this. That fix can be found here: http://pkgs.fedoraproject.org/cgit/rpms/tomcat.git/commit/?h=el6&id=694a006

            rhn-support-csutherl Coty Sutherland
            rhn-support-csutherl Coty Sutherland
            Jan Onderka Jan Onderka
            David Michael David Michael (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: