Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 136 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

195 changes: 43 additions & 152 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,153 +1,44 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.mt</groupId>
<artifactId>maven-web-application</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>

<name>maven-web-application</name>

<description>Maven Web Project for Java Project</description>

<organization>
<name>Landmark Technologies</name>
<url>http://landmarktechnologies.com/</url>
</organization>

<properties>
<jdk.version>1.8</jdk.version>
<spring.version>5.1.2.RELEASE</spring.version>
<junit.version>4.11</junit.version>
<log4j.version>1.2.17</log4j.version>
<sonar.host.url>http:172.31.27.227:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>admin@123</sonar.password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

</properties>

<dependencies>

<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20160212</version>
</dependency>

<!-- test dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>

<!-- compile dependencies -->

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>

<!-- provided dependencies -->

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>

</dependencies>

<distributionManagement>
<repository>
<id>nexus</id>
<name>Landmark Technologies Releases Nexus Repository</name>
<url> http://172.31.18.29:8081/repository/ebay-bts-releases/</url>
</repository>

<snapshotRepository>
<id>nexus</id>
<name>Landmark Technologies Snapshot Nexus Repository </name>
<url>http://172.31.18.29:8081/repository/ebay-bts-snapshot/</url>
</snapshotRepository>

</distributionManagement>

<build>
<finalName>maven-web-app</finalName>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>

<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.11.v20150529</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webApp>
<contextPath>/maven-web-application</contextPath>
</webApp>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<wtpversion>2.0</wtpversion>
<wtpContextName>maven-web-application</wtpContextName>
</configuration>
</plugin>

</plugins>
</build>


<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.mt</groupId>
<artifactId>maven-web-application</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.0</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>

<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20210307</version>
</dependency>
<!-- Add other dependencies as needed -->
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.mt.MavenWebApplication</mainClass> <!-- Replace with your actual main class -->
</configuration>
</plugin>
</plugins>
</build>
</project>

Loading