I have a Rest API created with Java 1.7, using spring boot. When I start the server in eclipse (which uses an embedded tomcat) the application works correctly and when I show localhost: 8080 / hello the message appears in JSON "Hello World".
Now, I have a machine with Centos 7 and tomcat 8 installed (it's a clean installation, I only have it for testing), in which I deploy the generated war. From App Manager I can see that the war is running.
But when I try to access the war, or just call the Rest API, it returns 404.
I've tried with the directions: localhost: 8080 / hello localhost: 8080 / demo-demo / hello localhost: 8080 / demo-demo.war / hi
Do I have to configure something else? What can be failing?
Thank you very much in advance.
EDIT
I have reviewed the logs. You can see this:
EDIT:
@SpringBootApplication
public class Application extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(Application.class);
}
}