Search code examples
javaspring-bootmaventomcat9

.war file already on tomcat9 webapps but inaccessible on website


Any help would be greatly appreciated. I'm just starting to learn web API using SPRING BOOT, Maven

To sum it up I already created a ".war" file and copied it to webapps folder of Tomcat9. But I can't seem to access it, but the index.html is accessible.

Here is supposed to be the .war file to be accessed enter image description here Here is my server's (Linux) file folder: enter image description here

A screenshot of the accessible index.html under webapps/ROOT folder: enter image description here

I also tried putting my .war file inside webapps/ROOT/ folder but it is still not accessible also.

Sorry for the bad English, hoping for your kindest comments and guidance.


Solution

  • I think it didn't start your application. Tomcat can deploy your application. however, it does not mean that your application has started/hosted, etc. To solve this problem, we need to see the Tomcat logs. There is definitely a detail in the logs. Another solution is, you might install the tomcat manager app and you will see if your application started or not there. If it seems to start there, definitely you have a network security problem.

    enter image description here