Developing with Tomcat user instances
10 Feb 2015In today’s post, I’ll take you through installing Apache Tomcat for the purposes of development.
Installing a user instance
To get started, install tomcat8
as you normally would:
For the purposes of development, it makes sense to have your own instance of tomcat which is away from the system installation. The tomcat8-user
package allows you to do just that.
After this install is complete, you can create yourself a local tomcat instance that you can blow up without hurting the system’s version. You do this with the tomcat8-instance-create
command:
The switches -p
puts this instance listening for application requests on port 10080 and the -c
switch puts the control port on 10005.
After you’ve done this, you’ll be notified by the console.
The directory that has been setup for you now looks like this:
Integrating with Eclipse
To get Eclipse to play nicely with your user-local version of tomcat, you’ll still need to add a few components. This tip is largly based off of the information in this stack overflow question.
You can now add your local user instance of tomcat to Eclipse.