https://bz.apache.org/bugzilla/show_bug.cgi?id=61174

            Bug ID: 61174
           Summary: Cannot install apache tomcat8 on linux mint v18
                    cinnamon
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: pwey...@gmail.com
  Target Milestone: ----

I am having trouble installing apache tomcat v8 (and 7) on linux mint v18. This
appears to be a general problem with people having a debian backend, as I have
seen other questions that are very similar to mine. (One example here:
https://askubuntu.com/questions/841655/cannot-install-tomcat8-on-16-04).
Unfortunately, I have not found any good answers on how to debug.

So here is the issue. The apache tomcat software will say that it installs
correctly, but it cannot run and "exits on status code 1". Googling does not
provide an answer to what this is or how to fix it. My logs that I am supposed
to check are also equally cryptic.

Here are the logs:

patientplatypus@next$ systemctl status tomcat8.service
● tomcat8.service - LSB: Start Tomcat.
   Loaded: loaded (/etc/init.d/tomcat8; bad; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-06-10 09:43:31 CDT; 13s
ago
     Docs: man:systemd-sysv-generator(8)
  Process: 29021 ExecStart=/etc/init.d/tomcat8 start (code=exited,
status=1/FAILURE)

Jun 10 09:43:26 next systemd[1]: Starting LSB: Start Tomcat....
Jun 10 09:43:26 next tomcat8[29021]:  * Starting Tomcat servlet engine tomcat8
Jun 10 09:43:31 next tomcat8[29021]:    ...fail!
Jun 10 09:43:31 next systemd[1]: tomcat8.service: Control process exited,
code=exited status=1
Jun 10 09:43:31 next systemd[1]: Failed to start LSB: Start Tomcat..
Jun 10 09:43:31 next systemd[1]: tomcat8.service: Unit entered failed state.
Jun 10 09:43:31 next systemd[1]: tomcat8.service: Failed with result
'exit-code'.


patientplatypus@next$ journalctl -xe
Jun 10 09:38:45 next systemd[1]: tomcat8.service: Failed with result
'exit-code'.
Jun 10 09:38:45 next sudo[27644]: pam_unix(sudo:session): session closed for
user root
Jun 10 09:38:56 next sudo[27744]: patientplatypus : TTY=pts/1 ;
PWD=/home/patientplatypus ; USER=root ; COMMAND=/usr/sbin/service tomcat8 start
Jun 10 09:38:56 next sudo[27744]: pam_unix(sudo:session): session opened for
user root by (uid=0)
Jun 10 09:38:57 next systemd[1]: Starting LSB: Start Tomcat....
-- Subject: Unit tomcat8.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit tomcat8.service has begun starting up.
Jun 10 09:38:57 next tomcat8[27773]:  * Starting Tomcat servlet engine tomcat8
Jun 10 09:39:02 next tomcat8[27773]:    ...fail!
Jun 10 09:39:02 next systemd[1]: tomcat8.service: Control process exited,
code=exited status=1
Jun 10 09:39:02 next systemd[1]: Failed to start LSB: Start Tomcat..
-- 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.
Jun 10 09:39:02 next systemd[1]: tomcat8.service: Unit entered failed state.
Jun 10 09:39:02 next systemd[1]: tomcat8.service: Failed with result
'exit-code'.
Jun 10 09:39:02 next sudo[27744]: pam_unix(sudo:session): session closed for
user root
Jun 10 09:39:23 next sudo[27842]: patientplatypus : TTY=unknown ;
PWD=/home/patientplatypus ; USER=root ;
COMMAND=/usr/lib/linuxmint/mintUpdate/checkAPT.py
Jun 10 09:39:23 next sudo[27842]: pam_unix(sudo:session): session opened for
user root by (uid=0)
Jun 10 09:39:27 next sudo[27842]: pam_unix(sudo:session): session closed for
user root
Jun 10 09:42:04 next sudo[28838]: patientplatypus : TTY=pts/1 ;
PWD=/home/patientplatypus ; USER=root ; COMMAND=/bin/mkdir /opt/tomcat/
Jun 10 09:42:04 next sudo[28838]: pam_unix(sudo:session): session opened for
user root by (uid=0)
Jun 10 09:42:04 next sudo[28838]: pam_unix(sudo:session): session closed for
user root
Jun 10 09:43:25 next sudo[28992]: patientplatypus : TTY=pts/1 ; PWD=/opt/tomcat
; USER=root ; COMMAND=/usr/sbin/service tomcat8 start
Jun 10 09:43:25 next sudo[28992]: pam_unix(sudo:session): session opened for
user root by (uid=0)
Jun 10 09:43:26 next systemd[1]: Starting LSB: Start Tomcat....
-- Subject: Unit tomcat8.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit tomcat8.service has begun starting up.
Jun 10 09:43:26 next tomcat8[29021]:  * Starting Tomcat servlet engine tomcat8
Jun 10 09:43:31 next tomcat8[29021]:    ...fail!
Jun 10 09:43:31 next systemd[1]: tomcat8.service: Control process exited,
code=exited status=1
Jun 10 09:43:31 next systemd[1]: Failed to start LSB: Start Tomcat..
-- 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.
Jun 10 09:43:31 next systemd[1]: tomcat8.service: Unit entered failed state.
Jun 10 09:43:31 next systemd[1]: tomcat8.service: Failed with result
'exit-code'.
Jun 10 09:43:31 next sudo[28992]: pam_unix(sudo:session): session closed for
user root
lines 1480-1531/1531 (END)



Uninstalling and reinstalling from the linux mint site
(https://community.linuxmint.com/software/view/tomcat8) also results in the
same error.

I have just tried with tomcat7 and get the same error. For clarification I am
installing with sudo apt-get install tomcat8.

Someone suggested that there might be a possible fix by unistalling jre and and
re-installing the default. So I tried entering the following two commands:

sudo apt-get --purge remove openjdk*

sudo apt-get install default-jre
and then  sudo apt-get install tomcat8.

Unfortunately, this did not work either. I still had the same issue.

Someone else also suggested to print out my logs, so I have found the tail logs
for tomcat8. Unfortunately I am not entirely sure what they mean (I am new to
all this). Perhaps they will say something to someone who has more experience
than I.

patientplatypus@next /var/log/tomcat8 $ tail catalina.2017-06-10.log
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

10-Jun-2017 10:30:18.216 INFO [main] org.apache.coyote.AbstractProtocol.pause
Pausing ProtocolHandler ["http-nio-8080"]
10-Jun-2017 10:30:18.216 INFO [main]
org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
10-Jun-2017 10:30:18.224 INFO [main] org.apache.coyote.AbstractProtocol.stop
Stopping ProtocolHandler ["http-nio-8080"]
10-Jun-2017 10:30:18.225 INFO [main] org.apache.coyote.AbstractProtocol.destroy
Destroying ProtocolHandler ["http-nio-8080"]



I have opened an issue on stackoverflow related to this issue (which can be
found here:
https://stackoverflow.com/questions/44474821/difficulty-installing-apache-tomcat8-on-linux-mint-v18-cinnamon).

Thank you very much for your help!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to