How to run the application on Tomcat
In this recipe, we will learn how to install, configure, and run the application on Tomcat in IntelliJ IDEA.
Note
Apache Tomcat, often referred to as Tomcat Server, is an open source Java Servlet Container developed by the Apache Software Foundation (ASF). Tomcat implements several Java EE specifications, including Java Servlet, JavaServer Pages (JSP), Java EL, and WebSocket, and provides a "pure Java" HTTP web server environment in which Java code can run. Source: Wikipedia
How to do it…
Now, let's follow the given steps to run the application on Tomcat:
- First, you need to download the Tomcat from http://tomcat.apache.org/download-80.cgi.
- The downloaded file will be a compressed file, and you can extract it with:
tar xvzf apache-tomcat-8.0.9.tar.gz
- Next, you need to move it from the downloaded folder to the proper location, at:
mv apache-tomcat-8.0.9 /opt/tomcat
- You also need to check whether you have JDK set up on your system. You can do that by typing in the...