From 87681f8873bd90c3e5a82e6aa46a120474ee5540 Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Wed, 3 May 2023 11:06:05 +0100 Subject: [PATCH 01/15] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 536b67a8c1..ec7d572e04 100644 --- a/pom.xml +++ b/pom.xml @@ -21,7 +21,7 @@ 5.1.2.RELEASE 4.11 1.2.17 - http:172.31.27.227:9000/ + http://13.38.122.47:9000 admin admin@123 UTF-8 From 556b3e6e3f0958b63cab47f3b8cc13c042a3b502 Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Fri, 5 May 2023 19:43:48 +0100 Subject: [PATCH 02/15] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index ec7d572e04..6c4b7ca5ae 100644 --- a/pom.xml +++ b/pom.xml @@ -21,9 +21,9 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://13.38.122.47:9000 + http://15.236.210.33:9000/ admin - admin@123 + admin UTF-8 UTF-8 From c18ffc4b567516fc0e092dc6c21cfa4808671025 Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Fri, 5 May 2023 20:04:54 +0100 Subject: [PATCH 03/15] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 6c4b7ca5ae..dd62d7af53 100644 --- a/pom.xml +++ b/pom.xml @@ -97,13 +97,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://172.31.18.29:8081/repository/ebay-bts-releases/ + http://13.38.53.109:8100/adeoye/repository/yinka-release/ nexus Landmark Technologies Snapshot Nexus Repository - http://172.31.18.29:8081/repository/ebay-bts-snapshot/ + http://13.38.53.109:8100/adeoye/repository/yinka-snapshots/ From 5a688d673ae78e32f3350767713d1875d47d28a0 Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Fri, 5 May 2023 20:09:57 +0100 Subject: [PATCH 04/15] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index dd62d7af53..a1e62667a9 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.mt maven-web-application war - 0.0.1-SNAPSHOT + 0.0.1 maven-web-application From 5f181269dee5240d6d631f9491129e2c4777b761 Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Fri, 5 May 2023 20:34:17 +0100 Subject: [PATCH 05/15] Update pom.xml --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a1e62667a9..bfabba3501 100644 --- a/pom.xml +++ b/pom.xml @@ -97,13 +97,13 @@ nexus Landmark Technologies Releases Nexus Repository - http://13.38.53.109:8100/adeoye/repository/yinka-release/ + http://13.38.53.109:8100/adeoye/repository/tesla-fe-releases/ nexus Landmark Technologies Snapshot Nexus Repository - http://13.38.53.109:8100/adeoye/repository/yinka-snapshots/ + http://13.38.53.109:8100/adeoye/repository/tesla-fe-snapshots/ From 5a657fdeeea6f6521af017fc5cb96097f256341f Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Tue, 6 Jun 2023 20:46:43 +0100 Subject: [PATCH 06/15] Update pom.xml --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index bfabba3501..adc2e330e9 100644 --- a/pom.xml +++ b/pom.xml @@ -21,9 +21,9 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://15.236.210.33:9000/ + http://172.31.24.24:5000/ admin - admin + Adeyinka17 UTF-8 UTF-8 @@ -103,7 +103,7 @@ nexus Landmark Technologies Snapshot Nexus Repository - http://13.38.53.109:8100/adeoye/repository/tesla-fe-snapshots/ + http://15.237.27.116:4000/repository/ebay-snapshot/ From aa1f484958f1447eb1cb5c66d033ec092af8e2df Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Mon, 9 Oct 2023 18:10:47 +0100 Subject: [PATCH 07/15] Update pom.xml --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index adc2e330e9..16569d5262 100644 --- a/pom.xml +++ b/pom.xml @@ -21,9 +21,9 @@ 5.1.2.RELEASE 4.11 1.2.17 - http://172.31.24.24:5000/ + http://13.38.100.127:4000/ admin - Adeyinka17 + admin123 UTF-8 UTF-8 @@ -103,7 +103,7 @@ nexus Landmark Technologies Snapshot Nexus Repository - http://15.237.27.116:4000/repository/ebay-snapshot/ + http://13.38.100.127:3000/repository/snapshot-myci/ From b415b0299c3ef45b2aca16aa84656181523dd65a Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Mon, 9 Oct 2023 18:15:40 +0100 Subject: [PATCH 08/15] Update pom.xml --- pom.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pom.xml b/pom.xml index 16569d5262..4828111b30 100644 --- a/pom.xml +++ b/pom.xml @@ -83,13 +83,6 @@ - - - javax.servlet - javax.servlet-api - 3.1.0 - provided - From 0fc73c162e269641ef11b33247a51be027040cce Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Tue, 10 Oct 2023 09:49:03 +0100 Subject: [PATCH 09/15] Update pom.xml --- pom.xml | 189 +++++++++++++++++--------------------------------------- 1 file changed, 56 insertions(+), 133 deletions(-) diff --git a/pom.xml b/pom.xml index 4828111b30..b9dd552c90 100644 --- a/pom.xml +++ b/pom.xml @@ -1,146 +1,69 @@ - 4.0.0 - - com.mt - maven-web-application - war - 0.0.1 - - maven-web-application + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + 4.0.0 - Maven Web Project for Java Project + com.mt + maven-web-application + war + 0.0.1-SNAPSHOT - - Landmark Technologies - http://landmarktechnologies.com/ - + maven-web-application - - 1.8 - 5.1.2.RELEASE - 4.11 - 1.2.17 - http://13.38.100.127:4000/ - admin - admin123 - UTF-8 - UTF-8 + Maven Web Project for Java Project - + + Landmark Technologies + http://landmarktechnologies.com/ + - - - - org.json - json - 20160212 - - - - - junit - junit - 3.8.1 - test - + + 1.8 + 5.1.2.RELEASE + 4.11 + 1.2.17 + http://172.31.22.85:4000/ + admin + admin123 + UTF-8 + UTF-8 + - - javax.servlet - javax.servlet-api - 3.1.0 - provided - + + + - - org.mockito - mockito-core - 1.9.5 - test - + + + nexus + Landmark Technologies Releases Nexus Repository + http://172.31.18.29:8081/repository/ebay-bts-releases/ + - + + nexus + Landmark Technologies Snapshot Nexus Repository + http://15.188.239.200:3000/repository/snapshot-myci/ + + - - org.springframework - spring-core - ${spring.version} - - - org.springframework - spring-web - ${spring.version} - - - org.springframework - spring-webmvc - ${spring.version} - - - org.springframework - spring-context - ${spring.version} - - - - - - - - - nexus - Landmark Technologies Releases Nexus Repository - http://13.38.53.109:8100/adeoye/repository/tesla-fe-releases/ - - - - nexus - Landmark Technologies Snapshot Nexus Repository - http://13.38.100.127:3000/repository/snapshot-myci/ - - - - - - maven-web-app - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.3 - - ${jdk.version} - ${jdk.version} - - + + maven-web-app + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + ${jdk.version} + ${jdk.version} + + + + + - - org.eclipse.jetty - jetty-maven-plugin - 9.2.11.v20150529 - - 10 - - /maven-web-application - - - + + - - org.apache.maven.plugins - maven-eclipse-plugin - 2.9 - - true - true - 2.0 - maven-web-application - - - - - - - From 0b3ce14b576081cf62815bc1aa398b3e941dd999 Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Tue, 10 Oct 2023 10:07:29 +0100 Subject: [PATCH 10/15] Update pom.xml --- pom.xml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b9dd552c90..a99294fa15 100644 --- a/pom.xml +++ b/pom.xml @@ -29,7 +29,58 @@ - + + + org.springframework + spring-webmvc + ${spring.version} + + + + + org.springframework.boot + spring-boot-starter-web + ${spring.version} + + + + + junit + junit + ${junit.version} + test + + + + + log4j + log4j + ${log4j.version} + + + + + javax.servlet + javax.servlet-api + 4.0.1 + provided + + + + + javax.servlet + jstl + 1.2 + + + + + org.springframework.security + spring-security-web + ${spring.version} + + + From 81efe33c1648efc3016fb2c6cc2a537378647f92 Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Sat, 8 Jun 2024 19:47:23 +0100 Subject: [PATCH 11/15] Update pom.xml --- pom.xml | 112 +++++++++----------------------------------------------- 1 file changed, 18 insertions(+), 94 deletions(-) diff --git a/pom.xml b/pom.xml index a99294fa15..25092afb61 100644 --- a/pom.xml +++ b/pom.xml @@ -1,120 +1,44 @@ - + 4.0.0 com.mt maven-web-application - war 0.0.1-SNAPSHOT + war - maven-web-application - - Maven Web Project for Java Project - - - Landmark Technologies - http://landmarktechnologies.com/ - - - - 1.8 - 5.1.2.RELEASE - 4.11 - 1.2.17 - http://172.31.22.85:4000/ - admin - admin123 - UTF-8 - UTF-8 - + + org.springframework.boot + spring-boot-starter-parent + 2.7.0 + + - - - org.springframework - spring-webmvc - ${spring.version} - - - org.springframework.boot spring-boot-starter-web - ${spring.version} - - - - - junit - junit - ${junit.version} - test - - - - - log4j - log4j - ${log4j.version} + 2.7.0 - - - javax.servlet - javax.servlet-api - 4.0.1 - provided + org.json + json + 20210307 - - - - javax.servlet - jstl - 1.2 - - - - - org.springframework.security - spring-security-web - ${spring.version} - - - - - nexus - Landmark Technologies Releases Nexus Repository - http://172.31.18.29:8081/repository/ebay-bts-releases/ - - - - nexus - Landmark Technologies Snapshot Nexus Repository - http://15.188.239.200:3000/repository/snapshot-myci/ - - - - maven-web-app - - org.apache.maven.plugins - maven-compiler-plugin - 3.11.0 + org.springframework.boot + spring-boot-maven-plugin - ${jdk.version} - ${jdk.version} - + com.mt.MavenWebApplication - - - - + From 28f4b81b5c55de17a7c880ed2d58be728f0347e5 Mon Sep 17 00:00:00 2001 From: OLUWATOBI Date: Thu, 20 Jun 2024 08:43:08 +0100 Subject: [PATCH 12/15] Modified jsp file to show server information --- src/main/webapp/jsps/home.jsp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 7bd0e8618c..44175b6d60 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -1,3 +1,5 @@ +<%@page import="java.net.InetAddress"%> + <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> @@ -28,6 +30,28 @@ Mail to Landmark Technologies +
+ +
+ + + +

Server Side IP Address


+

+<% +String ip = ""; +InetAddress inetAddress = InetAddress.getLocalHost(); +ip = inetAddress.getHostAddress(); +out.println("Server Host Name :: "+inetAddress.getHostName()); +%> +
+<% out.println("Server IP Address :: "+ip); %> + +

+ + + +

Service : Get Employee Details


From 2e787e577464aa91b9102f6cf685f2508398c6d4 Mon Sep 17 00:00:00 2001 From: OLUWATOBI Date: Thu, 20 Jun 2024 11:24:16 +0100 Subject: [PATCH 13/15] Added exception handling --- src/main/webapp/jsps/home.jsp | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index 44175b6d60..fa430380bc 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -38,15 +38,21 @@

Server Side IP Address


-<% -String ip = ""; -InetAddress inetAddress = InetAddress.getLocalHost(); -ip = inetAddress.getHostAddress(); -out.println("Server Host Name :: "+inetAddress.getHostName()); -%> -
-<% out.println("Server IP Address :: "+ip); %> - + <% + String ip = ""; + try { + InetAddress inetAddress = InetAddress.getLocalHost(); + ip = inetAddress.getHostAddress(); + out.println("Server Host Name :: " + inetAddress.getHostName()); + + } catch (Exception e) { + out.println("Error: " + e.getMessage()); + } + + %> +
+ <% out.println("Server IP Address :: " + ip);%> +

From 28c5ce5e2c89117122a56417b2284af457d53d77 Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Thu, 20 Jun 2024 11:56:19 +0100 Subject: [PATCH 14/15] Update home.jsp --- src/main/webapp/jsps/home.jsp | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/jsps/home.jsp b/src/main/webapp/jsps/home.jsp index fa430380bc..7a9b5183b0 100644 --- a/src/main/webapp/jsps/home.jsp +++ b/src/main/webapp/jsps/home.jsp @@ -6,15 +6,16 @@ -MylandmarkTech.com- Home Page +Adfunengineeringltd.com- Home Page -

Welcome to Landmark Technologies.

-

We are supporting the Ebay Black Friday Project. - Landmark Technologies is a software development company. - Class26 will run from October 2, 2021. +

Adfuns Engineering Limited.

+

We are a software development and DeVops company. + Adfuns Engineering Ltd will soon incooperate Cyber Security consultancy into their fold. + Please, be on the look out. The project is to deploy application using Maven into 3 Tomcat +server routing the traffic with Nginx web server using Round_Robbing The shout of the King Jesus is in our midst. HE IS OUR SUCCESS ACCESS KEY


@@ -22,12 +23,14 @@ - Landmark Technology, - Toronto, Ontario, Canada - +1 437 215 2483, - mylandmarktech@gmail.com + Adfuns Engineering Ltd, + No Agbowo Street, Opposite Univerity Of Ibadan, + Ibadan. + Oyo State + +2348034228676, + adfunsengineeringltd@gmail.com
-
Mail to Landmark Technologies + Mail Adfunsengineeringltd

@@ -62,8 +65,8 @@

Service : Get Employee Details



-

Landmark Technologies - Consultant, Training, Development Center.

-

Copyrights 2019 by Landmark Technologies

+

Adfuns Engineering Ltd - Consultant, Training, Development Center.

+

Copyrights 2024 by Adfunsengineering

From 86f973d8499d827654a55e3f6f7088636da08aa4 Mon Sep 17 00:00:00 2001 From: Adeoye Adeyinka <111874994+Hardey1774@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:49:24 +0100 Subject: [PATCH 15/15] Create README.md --- README.md | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000000..420bc7a3cc --- /dev/null +++ b/README.md @@ -0,0 +1,136 @@ +[Configuring and lauching an Nginx Webserver] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/b9820a50-815e-4959-a1c3-6922c4050451) + + + +Installing nginx web server Inginx installed + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/db316149-e3ab-40eb-8f5a-cb71eef4ec53) + + +[nginx installed and confirmed running] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/f5d2f7da-2186-4cc6-b3b3-db7de1a90154) + + +[nginx page on the browser] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/e54f0a1b-de36-4fbf-b0da-2176758959bf) + + + +[creating backup for nginx file] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/5a0a05b1-fd3f-455e-bbf1-52429ff399fc) + + + + +[creating new config nginx file to populate the 3 tomcat IPs] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/4f6e013d-0fb7-4163-b7a1-e36328ec3c47) + + + +[ populated with the 3 tomcats privateIPs] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/3554afb8-51fa-4058-9566-0a9c479ac97f) + + + +[confirming if configuration is ok and restarting nginx] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/c172cb25-5f24-4f0f-bbb2-771e3d8a5e60) + + + + +[ bad gateway on the browser ] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/870facf4-eb24-4672-a57a-3105c9deb9b4) + + + +[setting SELinux permission] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/8cc4a8e6-4513-48bb-82a7-731942b90a42) + + + + +[nginx page on the browser] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/2be8ee94-5a7d-4ca8-9072-04e9500cd9ec) + + +[cloning the repository to maven server] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/45bd15b9-5826-4afb-8794-5be4a95ef0b7) + + + +[building war file from maven server] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/82a1c190-8660-4bf6-8ed2-32c133e82021) + + + +[war file successfully built] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/f480a83b-58a4-4e11-8dec-921ffe24cbec) + + + +[successfully deployed to tomcats 1 and 3] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/ba8349f8-2c24-4d57-9b1e-5f712d9982c7) + + + + +[successfully deployed to tomcat 2] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/6e7a23a8-6621-4e65-90a9-e8108a9a69df) + + + + +[tomcatserver1] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/31d9f5e7-1c2c-4575-b70a-5f0c1f36081a) + + + +[tomcatserver2] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/d2c03767-1cf5-4f63-baef-4c55f887a384) + + +[tomcatserver3] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/6c81b3c0-ae80-4f74-ae76-ba9128346913) + + + + + +[Nginx routed traffic to tomcat1 172 31 35 7] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/7fb7952a-bf2a-4c03-8eba-f62820faf2a6) + + + + + +[Nginx routed traffic to tomcat2 172 31 34 132] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/73d2ea0c-a180-4cfc-9147-b46069e1645a) + + + + +[Nginx routed traffic to tomcat3 172 31 34 161] + +(https://github.com/Hardey1774/maven-web-application/assets/111874994/9b8bb743-c235-4291-97a4-00e331592889) +