1 Reply Latest reply on Oct 2, 2016 4:07 AM by lchan RSS
    lchan Newbie

    Installation Tomcat8 on Ubuntu server 15.10 failed

    Installed the Ubuntu Server 15.10

    Following the installation procedure on manual: Installing ThingWorx 7.1 Version 1.3 Page 20 to 24

     

    Then issue command

    $ sudo service tomcat8 start

     

    Job for tomcat8.service failed because the control process exited with error code. See "systemctl status tomcat8.service" and "journalctl -xe" for details.

     

    Then issue command to check

    $ sudo systemctl status tomcat8.service

     

    ‚óŹ tomcat8.service - (null)

       Loaded: loaded (/etc/init.d/tomcat8)

       Active: failed (Result: exit-code) since Thu 2016-09-29 17:55:15; 5min ago

         Docs: man:systemd-sysv-generator(8)

      Process: 1202 ExecStart=/etc/init.d/tomcat8 start (code=exited, status=203/EXEC)

     

    Sep 29 17:55:15 ubuntu systemd[1]: Starting (null)...

    Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Control process exited, code=exited status=203

    Sep 29 17:55:15 ubuntu systemd[1]: Failed to start (null).

    Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Unit entered failed state.

    Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Failed with result 'exit-code'.

     

    Then issue command to check

    $ sudo journalctl -xe

    --

    -- The error number returned by this process is 8.

    Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Control process exited

    Sep 29 17:55:15 ubuntu systemd[1]: Failed to start (null).

    -- Subject: Unit tomcat8.service has failed

    -- Defined-By: systemd

    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

    --

    -- Unit tomcat8.service has failed.

    --

    -- The result is failed.

    Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Unit entered failed state.

    Sep 29 17:55:15 ubuntu systemd[1]: tomcat8.service: Failed with result 'exit-code'.

    Sep 29 17:55:15 ubuntu polkitd(authority=local)[641]: Unregistered Authentication Agent for unix-process:1173:655469 (system bus name :1.17, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)

     

    Please help to resolve.

    What I am missing during the step 1 to 33 in the installation manual for Ubuntu?

    What default user should I use during the installation of Ubuntu OS?

     

    Thanks in advance.

     

    Best Regards

    C. Louis

      • Re: Installation Tomcat8 on Ubuntu server 15.10 failed
        lchan Newbie

        Problem solved. As Ubuntu 15.10 onward uses only systemd to boot start service.

         

        I create a /etc/systemd.system/tomcat8.service


        sudo nano /etc/systemd/system/tomcat8.service

         

        #Start of File

        [Unit]

        Description = Tomcat8 script that runs a shell script at boot

        After = syslog.target

        [Service]

        Type=oneshot

        ExecStart = /usr/share/tomcat8/bin/startup.sh

        ExecStop = /usr/share/tomcat8/bin/shutdown.sh

        Restart = always

        RemainAfterExit = yes

        Restart = always

         

        [Install]

        WantedBy = multi-user.target

        #EOF


        sudo chmod 755 /etc/systemd/system/tomcat8.service

        sudo systemctl enable tomcat8.service

        sudo reboot

         

        #Verify tomcat8.service status.

        sudo systemctl status tomcat8.service