Application / Web Server

Application Server / Web server

  1. Apache-Tomcat

  2. Jboss

  3. Nginx

  4. Glass-fish...etc

Setup

  1. Download apache tomcat software and Extract it.

  2. change port number in

    • vi /apache-tomcat-10.0.27/conf/server.xml

      Note:- Jenkins also running on 8080 port by default. we can't run multiple applications on single port.

  3. Create an account in tomcat under manager app

    • vi /apache-tomcat-10.0.27/conf/tomcat-users.xml

Note:- Please change the allow attribute value in the context.xml file, present in webapps/manager/META-INF folder. Old configuration change to new Configuration

This will allow access to manager remotely from all IP addresses for login. Further you won't get 403 access denied page

  1. start apache-tomcat

  2. Verify tomcat by giving http://3.91.178.105:80 in the browser.

Tomcat Integration With Jenkins

  1. Install Jenkins in ec2-instance

  2. Install Deploy to container plugin

  3. Create a deploy job and configure in post-build actions

WAR/EAR files: **/*.war Context path: sample.war Containers: Tomcat 9.x Remote Tomcat URL: http://3.91.178.105:8181

0
Subscribe to my newsletter

Read articles from Vinodh Machireddy directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Vinodh Machireddy
Vinodh Machireddy

My Name is Vinodh Machireddy I’m from Andhra Pradesh, Bharath Currently, I’m working as a Senior DevOps Engineer at Larc Software Pvt Ltd. I have 6+ years of experience in automating CI/CD pipelines, container orchestration, and automate Cloud infrastructure. I also work on Observability, and security to ensure system scalability and reliability. I specialize in Jenkins, Terraform, Ansible, Docker, Kubernetes and also bridging the gap between development and operations teams. My goal is to simplify CI/CD process, strengthen cloud infrastructure, and apply DevOps principles to achieve smooth and reliable deployments. Thank you!