spring boot application war deployment in AWS Beanstalk - spring-boot

My colleague and me developed simple spring boot application and deployed (war file) in AWS Beanstalk. It is not worked properly.My first
page(loginpage.jsp-Get mapping) loaded perfectly in AWS. After submitting credentials my second page(Mainpage.jsp - Post mapping)
does not loaded. It shows internal server error=500 only. But we deployed on Tomcat server(local) all pages (Request and Response) loaded perfectly.
we did not added any cloud dependency in Pom.xml. Please help us...
This is our
Error message.
This is our
Pom.xml.

Related

jpa spring boot project not working external tomcat 9

I am trying deploy and run (Spring data) in external tomcat server. Deployment happening without any errors but getting 404 errors when I am trying to hit rest end point. The same rest working fine with out jpa changes. Do we required any data source configuration in external tomcat server in order to run the application. Please provide any reference for the same.

SpringBoot Rest API: Works as Java Application, fails when deployed on tomcat

I have a Springboot project and it has a api which I can invoke from postman.
When I run the application using Main Class I'm able to hit the endpoint and get response.
But if I deploy it on tomcat using war of project the same endpoint says 404!
What am I missing?
There can be multiple possibilities
You didn't extended your application class to SpringBootServletInitializer. In this case, spring boot application will not be deployed to tomcat. To fix this add "extends SpringBootServletInitializer" to your main application class
You are hitting wrong url. Make sure you append your aplication name to url. Example - if http://localhost:8080/data works in your local, and your application name is app, you have to hit http://{{serverip:port}}/app/data when deployed
There is something wrong in application properties like DB configured is local and not accessible from tomcat etc. To check such issues, check your tomcat log file (/{{tomcat dir}}/logs/catalina.out

Jhipster backend deploy to AWS Beanstalk API Call Failure

The backend can be deployed but API call is not working.
The frontend project and backend project are separated, I am trying to deploy the backend(Spring Boot) project onto AWS Beanstalk using sub-generator and everything looks fine:
I have configured the server port to 5000 Deploying a Spring Boot Application on AWS Using AWS Elastic Beanstalk
When I invoke API with Beanstalk Environment URL, it always give me 404 Not Found error.
Does anyone know how to solve this issue?

Aws Spring boot application view issue with jar and rest service issue with war

I would like to host one application on AWS elastic beanstalk(java). The application has one view and one rest service. First I uploaded the jar file and tried accessing, the path to view was giving me whitelabel error on AWS but it is working fine locally. Also, am able to access the rest service with jar.
After surfing the net, I created a war and uploaded on AWS(tomcat). Now, the view is working fine but I notice the path of rest service is returning 404. Can someone suggest what should I check or do?

How to deploy .war file successfully in tomcat?

I deployed a web application .war file in tomcat 8.0. But when i run start the server startup.bat and access url "localhost:8080/application" it loads an incomplete web application page. I deployed a spring boot a[llication .war file. And its running smoothly in spring framework.

Resources