Report this

What is the reason for this report?

After war file Deployment apache tomcat service is failed.

Posted on March 25, 2020

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)



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.