Jenkins Tomcat Setup and installing steps for Tomcat

Setup Jenkins tomcat -Installation Guide for Tomcat

Below are the prerequisites which must be met for Jenkins Tomcat setup.

Step 1: Verifying Java Installation

To verify Java installation, open the console and execute below java command.
OS
Task
Command
Windows
Open command console
>java –version
Linux
Open command terminal
$java –version

If Java is successfully installed correctly on the system, then you will get one of the
below outputs, depending on the platform you are working on.

OS
Output
Windows
Java version "1.7.0_60"
Java (TM) SE Run Time Environment (build 1.7.0_60-b19)
Java Hotspot (TM) 64-bit Server VM (build 24.60-b09, mixed mode)
Linux
java version "1.7.0_25"
Open JDK Runtime Environment (rhel-2.3.10.4.el6_4-x86_64)
Open JDK 64-Bit Server VM (build 23.7-b01, mixed mode)


Before proceeding with this tutorial, Java 1.7.0_60 should be installed on your system.
If you do not have Java JDK, you can download it from the link Oracle

Step 2: Verifying Java Installation

Set the JAVA_HOME environment variable to point to the base directory location where Java is installed on your machine. For example,

OS
Output
Windows
Set Environmental variable JAVA_HOME to C:ProgramFilesjavajdk1.7.0_60
Linux
export JAVA_HOME=/usr/local/java-current


Append the full path of the Java compiler location to the System Path.

OS
Output
Windows
Append the String; C:Program FilesJavajdk1.7.0_60 in to the end of the system variable PATH.
Linux
export PATH=$PATH:$JAVA_HOME/bin/
Verify the command java-version from command prompt as explained above.

Step 3: Download Tomcat

By clicking on the given link, home page of the tomcat official website will be displayed as shown below.Browse to the link :

https://tomcat.apache.org/download-70.cgito

get the download for tomcat.

Go to the ‘Binary Distributions’ section.

Download the 32-bit Windows zip file.

Then unzip the contents of the downloaded zip file.

Step 4: Jenkins and Tomcat Setup

Copy Jenkis.war file which was downloaded from the previous section and copy it to the webapps folder in the tomcat folder.
Now open the command prompt and browse the directory where the tomcat7 folder is present. 

Browse the bin directory in this folder and run the start.bat

E:\Apps\Tomcat7\Bin>startup.bat

After processing is completed without major errors, below line comes in the output of the command prompt

INFO: Server startup in 1302 ms

Open the browser and go to the link 

http://localhost:8080/jenkins. 

Jenkins will be up and running on tomcat.


Comments

Post a Comment

Popular posts from this blog

Interview question for File and FTP Adapter

What is boot.properties file and how to create

SSL Exceptions in Admin Server and Node Manager.