Deploy a Spring Boot war file to a Tomcat 9 at Centos 7, to fix HTTP Error Code 404

Closed Posted 3 years ago Paid on delivery
Closed Paid on delivery

You have to experience the same issue before, so you can solve it in serval minutes. Here is the issue:

I can create a war file from my project in spring boot by: mvn clean, mvn install, I can run it by : java -jar *.war in Centos 7, all successful, but when copying the war to Tomcat 9's webapps as a [login to view URL], the sever get a HTTP code 404.

I have done the following steps:

1) Extends SpringBootServletInitializer

2)Marked the embedded servlet container as provided in the [login to view URL]

3)Update packaging to war <packaging>war</packaging>

4) Add scanPackage annotation as

@SpringBootApplication(scanBasePackages={"com.*})

but the HTTP error 404 is still there

Linux Java Spring

Project ID: #26941256

About the project

18 proposals Remote project Active 3 years ago

18 freelancers are bidding on average $28 for this job

bishoyabdo

8 years of experience in Linux server management and cloud systems which includes Installation, Monitoring, and Optimization. I can handle the installation of applications on Linux. I do web hosting support, Website mi More

$25 USD in 1 day
(26 Reviews)
4.7
sachinkumar19

Hi, I'm Redhat certified system administrator. I have worked on multiple Linux projects. And I would like to work on your project. please initiate the chat to talk on the project in details. Thanks & Regards, Sachin

$100 USD in 1 day
(21 Reviews)
4.3
umanglpatel

Hi, It looks like you took the necessary steps to generate war and deploy on tomcat, i can check more on error 404 can you provide me the environment? thank you, umnag

$30 USD in 1 day
(1 Review)
2.8
asr112

I am a Java Software Engineer having 3+ years of experience. I have good understanding about Java Stacks like Spring Cloud, Spring Boot, Jhipster, Spring Security, JPA & Hibernate etc. I am expertise in Microservice ar More

$30 USD in 1 day
(2 Reviews)
1.4
sreepathivinod

Hi, I am a software architect with cloud expertise in AWS, GCP. I have strong experience in completing your task in time. Please DM for further discussions. Thanks, Vinod

$30 USD in 1 day
(1 Review)
0.9
ngkhoan

Hi. Nice to meet you. I have read your task carefully. Now I 'm ready for you. I 'll satisfy you fully. Dear regards!

$30 USD in 7 days
(0 Reviews)
0.0
piyush12197

As a experienced spring boot Developer i have faced and resolved this type of issue to many time. I can fux it if you give a chance.

$17 USD in 2 days
(0 Reviews)
0.0
psup4wotk

Hello, I am a full stack java web developer since last 5 years. I have developed many web applications based on java ( jsp and servlets) and spring framework with maven and hibernate also. So I can help you with that i More

$30 USD in 2 days
(0 Reviews)
0.0
kesaveee

Hi Client, I have faced similar problem before and have resolved the issue. I believe that I can help you with your problem. Please initiate chat to discuss furthur

$20 USD in 7 days
(0 Reviews)
0.0
sayalisha

I have been working on building WAR files for deployment for over 3-4 years. I have experienced this issue frequently before. I do have a few quick tips which might resolve the issue

$20 USD in 2 days
(0 Reviews)
0.0
shariq1926

Dear Client, I have gone through your requirements. I have experience in deploying java applications on cloud and local servers. Recently, I have deployed spring boot app to linux ec2 instant in tomcat 9 as war. We nee More

$20 USD in 1 day
(0 Reviews)
0.0
kaushiksumit9995

HI Hiring manager, Full Stack Developer, Specialized Advanced knowledge of Advance Java Strong knowledge with Spring Boot,Servlets,Jsp,Mysql strong knowledge in IOT ,ThingsBoard,Rabbit Mq,node red,MQTT,Http Exce More

$20 USD in 7 days
(0 Reviews)
0.0
matheadithya7

Hello, I have 2 years experience in latest technology spring Boot, Tomcat 9 server and have issues resolving skill.

$20 USD in 2 days
(0 Reviews)
0.0
vjay16

Hi, I have checked your project description and understood your all requirements. I am very confident to handle this project perfectly. I have done many projects like this. I can start work immediately and provide a More

$15 USD in 7 days
(0 Reviews)
0.0
Kazishadab

I have faced similar problem when deploying Spring Boot Application on CentOS VPS Servers, I can help you Identify the issue and solve it.

$35 USD in 1 day
(0 Reviews)
0.0
mithilwane

I have experienced and solved this problem before. So I think I would be able to help. We can do a screenshare and solve the problem

$20 USD in 1 day
(0 Reviews)
0.0
gorantlas9

I recently did this kind of deployment. Reach out to me on my phone +91-7708378828 so that we can close it off asap

$15 USD in 1 day
(0 Reviews)
0.0
sadanandpchavan

I am a Java developer. I will provide best service. Recently gone through same error on same environment while deploying my spring boot application. Thanks.

$20 USD in 1 day
(0 Reviews)
0.0