2016-03-28 19 views
5

Utilizzo Vagrant per la distribuzione su Ubuntu Linux e il tentativo di avviare un servizio tomcat8.Il servizio tomcat8 non è stato avviato utilizzando il servizio tomcat8 start

Tomcat 8 è stato installato da apt-get install tomcat8.

Quando si utilizza il comando service tomcat8 start, ho ricevuto il seguente errore:

Job for tomcat8.service failed. See "systemctl status tomcat8.service" and "journalctl -xe" for details.

Poi ho rintracciato il systemctl status tomcat8.service, ha scoperto che:


? tomcat8.service - LSB: Start Tomcat. Loaded: loaded (/etc/init.d/tomcat8)
Active: failed (Result: exit-code) since Mon 2016-03-28 09:44:17 GMT; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 884 ExecStop=/etc/init.d/tomcat8 stop (code=exited, status=0/SUCCESS)
Process: 1312 ExecStart=/etc/init.d/tomcat8 start (code=exited, status=1/FAILURE)
Mar 28 09:44:12 vagrant-ubuntu-trusty systemd[1]: Starting LSB: Start Tomcat....
Mar 28 09:44:12 vagrant-ubuntu-trusty tomcat8[1312]: * Starting Tomcat servlet engine tomcat8
Mar 28 09:44:17 vagrant-ubuntu-trusty tomcat8[1312]: ...fail!
Mar 28 09:44:17 vagrant-ubuntu-trusty systemd[1]: tomcat8.service: control process exited, code=exited status=1
Mar 28 09:44:17 vagrant-ubuntu-trusty systemd[1]: Failed to start LSB: Start Tomcat..
Mar 28 09:44:17 vagrant-ubuntu-trusty systemd[1]: Unit tomcat8.service entered failed state.
Mar 28 09:44:17 vagrant-ubuntu-trusty systemd[1]: tomcat8.service failed.

io sono sicuro di come procedere per far funzionare il mio servizio Tomcat 8.

+1

ci sono dei registri in '/ var/log/tomcat8 /'? – dahrens

+0

Ho scoperto che non potevo avviare tomcat8 usando 'service tomcat8 start', ma per qualche motivo dovrei iniziare a usare' /etc/init.d/tomcat8 start'. Non sono sicuro che ti aiuterà comunque ... –

risposta

2

Questo potrebbe essere correlato a this bug. Le versioni recenti di Java deprecano l'uso delle directory approvate e falliscono se ne viene specificato uno, ma Tomcat8 ne specifica uno anche se non esiste. Controlla il log in /var/log/tomcat8/ come suggerito nei commenti alla tua domanda per vedere se questa è davvero la fonte del tuo problema. Se lo è, puoi aspettare che il bug sia corretto o provare il file catalina.sh aggiornato suggerito nel rapporto bug collegato.

Problemi correlati