https://bz.apache.org/bugzilla/show_bug.cgi?id=59390
Bug ID: 59390 Summary: Tomcat systemd/systemctl status tomcat don't show catalina errors. 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: dmaioc...@suse.com [Distros tested] -opensuse -fedora [HOW to Reproduce] installing tomcat. As user i want to setup tomcat with ssl. I generate the keystore using the java tool but "accidentally" i put it in a directory that as the wrong permission. example "root/keystore" So i setup tomcat and start it with systemctl start tomcat. when i run systemctl status tomcat i got : systemctl status tomcat.service ● tomcat.service - Apache Tomcat Web Application Container Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor preset: disabled) Active: active (running) since Do 2016-04-28 08:35:44 CEST; 1h 31min ago Process: 2657 ExecStop=/usr/libexec/tomcat/server stop (code=exited, status=0/SUCCESS) Main PID: 2693 (java) CGroup: /system.slice/tomcat.service └─2693 /usr/lib/jvm/jre/bin/java -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/... Apr 28 08:35:48 localhost.localdomain server[2693]: 28-Apr-2016 08:35:48.582 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web r[2693]: 28-Apr-2016 08:35:48.900 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application director.../webapps/docs Apr 28 08:35:49 localhost.localdomain server[2693]: 28-Apr-2016 08:35:49.154 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no T... Apr 28 08:35:49 localhost.localdomain server[2693]: 28-Apr-2016 08:35:49.157 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application dire...hed in 257 ms Apr 28 08:35:49 localhost.localdomain server[2693]: 28-Apr-2016 08:35:49.166 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] Apr 28 08:35:49 localhost.localdomain server[2693]: 28-Apr-2016 08:35:49.177 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"] Apr 28 08:35:49 localhost.localdomain server[2693]: 28-Apr-2016 08:35:49.180 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 2804 ms ==================== I would think that the status of tomcat with ssl is perfect and is working but, looking and catalina.log this is not the case. grep /var/log/tomcat/catalina.2016-04-28.log SEVERE [main] org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore Failed to load keystore type JKS with path /root/keystore due to /root/keystore (Keine Berechtigung) > (not Allowed). [EXPECTED RESULTS] I can expect 2 results: 1) If the configuration is broken for some reason, then systemctl start tomcat should fail. [ this could be a difficult approach if we have multiple hosts, or conf. Like http and https. and https is bad configured , but http well configured. So i'm thinking about the second solution. 2) systemctl status tomcat ● tomcat.service - Apache Tomcat Web Application Container Loaded: loaded (/usr/lib/systemd/system/tomcat.service; disabled; vendor preset: disabled) Active: active (running) since Do 2016-04-28 08:35:44 CEST; 1h 38min ago Process: 2657 ExecStop=/usr/libexec/tomcat/server stop (code=exited, status=0/SUCCESS) Main PID: 2693 (java) CGroup: /system.slice/tomcat.service Apr 28 08:35:48 localhost.localdomain server[2693]: 28-Apr-2016 08:35:48.900 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web applica SEVERE [main] org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore Failed to load keystore type JKS with path /root/keystore due to /root/keystore 2) solution should be that systemctl status should report directly that ths ssl configuration is failed, and the other configuration are fine, but starting tomcat, unlike solution 1). -- 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