Skip to content
Advertisement

Deployed .war generating error: template might not exist or might not be accessible

I have a spring boot application that runs fine on localhost.

I access it with http://localhost:8080/home.

Now I want to deploy the application to a hosting server.

Generated the .war and deployed it there.

Configured http://www.customdomain.com/hostingpath/ to be the root path for the app.

So that should map to what locally is http://localhost:8080/.

Now when I access http://www.customdomain.com/hostingpath/home I’m getting the following error:

JavaScript

Taking a look at the logs there’s this message:

JavaScript

Don’t understand how that can be since the home.html was correctly deployed by the .war file to the templates folder in the hosting server.

So the file is there. And when the app runs on localhost it opens home.html just fine.

So what could be causing that error?

Thanks.

Advertisement

Answer

I found the issue. It was a case sensitive issue. My local system is windows, which is not case sensitive. But the hosting server is linux which is case sensitive. When I renamed Home.html to home.html on the hosting server it worked!

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement