Question

After war file Deployment apache tomcat service is failed.

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 config.PNG)


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.