I Created a droplet.

Memory vCPUs Transfer SSD Disk
1 GB 1 vCPU 1 TB(1000GB) 25 GB

Installed S/W.

  • ubuntu 18.04 OS
  • apache tomcat 9.0.31
  • MySQL server 8.0

Problem:

After uploading war file something going to wrong and tomcat service will be failed.

I attached problem link.
(http://riyatsa.in/u/Server%20config.PNG)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Before diving into troubleshooting the problem, it’s a good idea to read over: https://tomcat.apache.org/tomcat-9.0-doc/setup.html which guides you through the Tomcat configuration process. It might also have the exact answer you are searching for.

As root, you can try to gather more information by running journalctl -xe or find the apache-tomcat logs directory in /var/log/. The first option, if journalctl is installed on your system will give you a closer look at what actually failed. It may tell you that your configuration in the tomcat config file references a filename that does not exist, or that the apache user does not have permission to execute or read one of its directories – especially if any of those files were written by the root user. You can run chown root:apache /<path>/<to>/<filename> && chmod r+x /<path>/<to>/<filename> to any files that the apache user cannot run.

Submit an Answer