Hello!
For a couple of days ago I purchased a VPS by Namecheap, as I have been building a java spring boot web application and bought it with CPanel. In have been having quite some issues figuring out how to host my web application, as I have little knowledge with VPS, WHM etc. After searching a couple of days, and trying out stuff I stumbled upon this: Tutorial - Installation and configuration of ea-Tomcat85 which helped me a lot.
I got it working almost, the thing now is that my .WAR file wont load in the browser. I have tried using a test.jsp in the webapps/ROOT folder, and when I search mydomain.com/test.jsp it works, but when I try to load in my .WAR file in the ROOT folder, and search mydomain.com/<warfilename>/, I just get a white page that says "HTTP Status 404 - Not Found". I have also tried removing the ROOT folder, renaming the .WAR file to ROOT.war and trying to access that, and it still didn´t work.
So then I though something might be wrong with my .WAR file, so I tried downloading an example .war file from here: Sample Application and uploading it the way I explained above. It still didn´t work.
The thing I am wondering about is, how do I get the .WAR file working when I search it up, like above? I got the .jsp files working, but not the .WAR files working, and I am really clueless on how to fix this.
I hope this is something you guys can help me with, as I have struggled a really long time without any good answers on the internet.
Best regards
- Inwin1
For a couple of days ago I purchased a VPS by Namecheap, as I have been building a java spring boot web application and bought it with CPanel. In have been having quite some issues figuring out how to host my web application, as I have little knowledge with VPS, WHM etc. After searching a couple of days, and trying out stuff I stumbled upon this: Tutorial - Installation and configuration of ea-Tomcat85 which helped me a lot.
I got it working almost, the thing now is that my .WAR file wont load in the browser. I have tried using a test.jsp in the webapps/ROOT folder, and when I search mydomain.com/test.jsp it works, but when I try to load in my .WAR file in the ROOT folder, and search mydomain.com/<warfilename>/, I just get a white page that says "HTTP Status 404 - Not Found". I have also tried removing the ROOT folder, renaming the .WAR file to ROOT.war and trying to access that, and it still didn´t work.
So then I though something might be wrong with my .WAR file, so I tried downloading an example .war file from here: Sample Application and uploading it the way I explained above. It still didn´t work.
The thing I am wondering about is, how do I get the .WAR file working when I search it up, like above? I got the .jsp files working, but not the .WAR files working, and I am really clueless on how to fix this.
I hope this is something you guys can help me with, as I have struggled a really long time without any good answers on the internet.
Best regards
- Inwin1