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

tomcat is not starting via jsvc scripts

    XMLWordPrintable

Details

    • Documentation (Ref Guide, User Guide, etc.), Release Notes, Compatibility/Configuration, User Experience
    • Needs More Info
    • Workaround Exists
    • Hide
      sed -i 's@/usr/bin/jsvc@/opt/rh/jbcs-httpd24/root/usr/bin/jsvc@g' /usr/libexec/tomcat{7,8}/functions
      
      Show
      sed -i 's@/usr/bin/jsvc@/opt/rh/jbcs-httpd24/root/usr/bin/jsvc@g' /usr/libexec/tomcat{7,8}/functions
    • Hide

      yum -y install tomcat7-jsvc tomcat8-jsvc
      systemctl start tomcat7-jsvc
      pgrep -l -f tomcat
      service should works

      Show
      yum -y install tomcat7-jsvc tomcat8-jsvc systemctl start tomcat7-jsvc pgrep -l -f tomcat service should works

    Description

      tomcatX-jsvc service doesn't starts due to wrong path to jsvc scrip defined in /usr/libexec/tomcatX/functions. It checks wrong (/usr/bin/jsvc) destination, instead of correct one (/opt/rh/jbcs-httpd24/root/usr/bin/jsvc).

      # /usr/libexec/tomcat7/functions
       17     if [ -x /usr/bin/jsvc ]; then
       18          TOMCAT_USER="tomcat"
       19          JSVC="/usr/bin/jsvc"
      
      You have to replace all references to the system's JSVC binary. This will fix it:
      # sed -i 's@/usr/bin/jsvc@/opt/rh/jbcs-httpd24/root/usr/bin/jsvc@g' /usr/libexec/tomcat7/functions
      

      Attachments

        Activity

          People

            dphilips@redhat.com Daniel Philips (Inactive)
            jonderka@redhat.com Jan Onderka
            Jan Onderka Jan Onderka
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: