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

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
This comment has been deleted
There is a little issue on tomcat.conf file, it’s needed to remove all initial spaces in each line to be able to run initctl reload-configuration successfully, that was the only problem here. Thanks for the tutorial!
I also get this error deploying a new app: Unable to create the directory [/opt/tomcat/webapps/ROOT] So, I guess that is needed to grant tomcat permissions to webapps folder, you can do this executing this command: sudo chown -R tomcat /opt/tomcat/webapp
Hi, Very nice guide. But if I follow this, there will be no catalina.out created. Can that be fixed?
tomcat.out is now in /var/log/upstart/tomcat.log. I’m still wondering where the base directory is (where is the application.log which is specified in logback.xml)
Very nice and helpful tutorial I had some issues with creating the user for tomcat https://www.mulesoft.com/tcat/tomcat-linux helped me here, also I use JAVA from Oracle, so http://stackoverflow.com/questions/17287542/setting-java-home-path-on-ubuntu helped me here, too. Thanks for writing this Tutorial :-)
Just in case, if anyone is looking for equivalent “Systemd” service script (e.g. to use on Ubuntu 15.04) , here is one I wrote:
Filename:
/etc/systemd/system/tomcat.service
Content:
[Unit] Description=Tomcat 8 Server [Service] Type=forking User=tomcat Group=tomcat EnvironmentFile=/etc/conf.d/tomcat ExecStart=/opt/tomcat/bin/catalina.sh run ExecStopPost=/bin/rm -rf /opt/tomcat/temp/* Restart=on-failure [Install] WantedBy=multi-user.target
The environment file should be created and defined as follows:
Filename:
/etc/conf.d/tomcat
Content:
JAVA_HOME=/usr/lib/jvm/java-8-oracle CATALINA_HOME=/opt/tomcat JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC
Relevant service enabling and start commands:
sudo systemctl enable tomcat
sudo systemctl start tomcat
hello.after creating a tomcat user, should not we change the user to tomcat somewhere?What is the password for tomcat user?After running tomcat, what should output be on console?
Great tutorial! Thanks!
I found that I could not deploy (server would start but the webpage would not load) unless I gave tomcat rights to the webapps folder too (as we did for conf):
sudo chgrp -R tomcat webapps sudo chmod g+rwx webapps sudo chmod g+r webapps/*