MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Jenkins Tutorials: Installing Jenkins on Tomcat

We are going to discuss Installing Jenkins today. We will be focusing on installing it on Tomcat server as a servlet, and tomcat will act as a container for Jenkins.

Step 1 : Check java 1.8 is installed in the system.

Terminal output of java -version showing OpenJDK 1.8.0_242 installed
step 1

Step 2: Installing Tomcat server.

Tomcat server of your choice can be downloaded from below link :
https://tomcat.apache.org/download-90.cgi – I downloaded core zipped version for my mac. which was 11mb in size.

Create a new folder and place the downloaded zip file there and Unzip it:

For unzipping u can type :

>/ unzip <file.name>

Terminal ls output showing apache-tomcat-9.0.31 folder next to its extracted zip file
extracting zip file

Now, goto /Users/penguin/tomcat/apache-tomcat-9.0.31/bin , for you path could be different depending upon the time and version which you are using for tomcat but It could be pretty much similar in any case :

when you will run ls command there you will see something similar

Terminal ls of the Tomcat bin directory listing catalina.sh, startup.sh and other scripts
path to bin directory

Run, sh startup.sh command which should start tomcat for you.

Terminal running sh startup.sh showing CATALINA paths and Tomcat started message
starting tomcat

If you are getting a permission error like below :

Terminal output of sh startup.sh in the Tomcat bin directory, shown for the catalina.sh permission error step
permission error on catalina.sh

Run, chmod +x catalina.sh

Terminal running chmod +x catalina.sh in the Tomcat bin directory to fix the permission error

You should be good post this goto : localhost:8080 you will see something line this , Step 2 completed, phew !!!!

Apache Tomcat 9.0.31 landing page at localhost:8080 confirming successful installation
localhost:8080 – tomcat landing page

Step 3: Installing Jenkins as servlet on Tomcat as container.

First let’s download latest Jar of Jenkins, from here. Once done place the jar in /Users/penguin/tomcat/apache-tomcat-9.0.31/webapps

Make sure, your tomcat server is up and running, as we will copy the jar file Tomcat will start the jar automatically and a jenkins folder will get created in the webapps directory – which will be something like below –

Terminal copying jenkins.war into Tomcat webapps, then ls showing a new jenkins folder created
before and after – new jenkins folder created.

Now, let try accessing jenkins – try going to localhost:8080/jenkins

If you see something like this – you are done !!! thanks for holding your nerves and following all steps – if you see any error feel free to reach out to me.

Jenkins Welcome to Jenkins sign-in page at localhost:8080/jenkins running on Tomcat
Jenkins home page.

Reference :
https://wiki.jenkins.io/display/JENKINS/Tomcat
https://docs.oracle.com/javaee/5/tutorial/doc/bnafe.html – for servlet

Gaurav Bajpai

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
MotoShare.in offers unparalleled convenience and affordability in bike rentals, allowing users to enjoy hassle-free rides for commuting, exploring, or leisure trips. With a wide range of bikes and scooters, it’s your trusted partner for all two-wheeler needs.

Related Posts

Tomcat 7.0.6 in Context: What the First Stable Tomcat 7 Release Changed

Apache Tomcat 7.0.6 was announced as the first stable release in the Tomcat 7 branch, bringing Servlet 3.0-era capabilities into mainstream use. This revised guide explains the key changes, their operational impact, and practical steps for teams still touching legacy Tomcat 7 workloads.

Read More

Ant build.xml for WAR Packaging and Tomcat Deployment (Annotated Reference)

This guide turns a legacy Ant WAR build sample into a practical reference you can reuse. You will learn the target flow, required layout, runnable commands, and common pitfalls before using it in CI/CD.

Read More

Top 10 Application Servers: Features, Pros, Cons & Comparison

Introduction Application Servers are the backbone of modern software systems. They provide a runtime environment where business logic runs, data is processed, and applications interact with databases,…

Read More

Elastic: Elastic APM Java agent on Apache Tomcat

1) Prerequisites 2) Get your APM endpoint & token/key from Elastic Cloud 3) Download the Elastic APM Java Agent Create a directory for the agent and download…

Read More

Newrelic APM- Install and Configure using Tomcat & Java Agent Tutorials

Step 1 – Install JDK Step 2 – Install & Start Tomcat Step 3 – Install your apps Lets use Tomcat’s default example app only. You may…

Read More

How to Monitor & Integration of Apache Tomcat & JMX using NewRelic Infra Agent?

To set up New Relic JMX monitoring, follow these steps: Step 1: Install the New Relic infrastructure agent If you haven’t already, install the New Relic infrastructure…

Read More