Amoss Posted December 18, 2017 Posted December 18, 2017 Hi Starting few hours ago, when I try to access my Java at http://stockdiv.heliohost.org/MyHelioServlet/resty... I got 404.I thought it's a temporary problem though the server status seemed ok but now, few hours later, I keep getting 404 for things that worked few days ago.What is the problem and how can I fix it? Thanks!
Bailey Posted December 18, 2017 Posted December 18, 2017 I'm guessing seems you've got a 404 problem that the file has been moved, Tommy isnt down. Have you tried re-uploading?
wolstech Posted December 18, 2017 Posted December 18, 2017 @Bailey: Java is weird. Files don't necessarily need to exist where you'd expect because of Tomcat. A 404 is expected when there's nothing deployed in that virtual folder. @Amoss: Did you deploy a new WAR with a different name? If you did, it removes the old one during that process. You can only have one WAR at a time.
Amoss Posted December 18, 2017 Author Posted December 18, 2017 Thank you for your replies. I didn't deploy anything lately.Several days ago I got the same problem for several minutes but then it started working so I thought it was a temporary problem.Yesterday again I got this error but this time it's been for hours...How can I check if my WAR is deployed and working?If not, how can I check what happened to it?Thanks
wolstech Posted December 18, 2017 Posted December 18, 2017 That's odd...especially it breaking and fixing itself. Java Wars should not undeploy themselves unless you lose Java (inactivity or suspension causes that). I see the Tomcat 404 in your root, so you definitely have Java enabled. Escalating so Krydos can look at this.
Bailey Posted December 18, 2017 Posted December 18, 2017 @wolstech: Ah, I didnt realise, I dont know much about Java, sorry for any confusion caused.
wolstech Posted December 18, 2017 Posted December 18, 2017 @Bailey: No problem. I learned the same way you're learning
Bailey Posted December 18, 2017 Posted December 18, 2017 I've had a little think and this may be totally wrong but perhaps the WAR file was cached, hence why it worked again but the cache has expired, presenting a 404?
wolstech Posted December 18, 2017 Posted December 18, 2017 Could be. I have no way of knowing until Krydos lets us know what's wrong with it. It's also entirely possible it just needs to be redeployed.
Amoss Posted December 18, 2017 Author Posted December 18, 2017 The question is whether to wait for Krydos or to re-deploy and check.I'm asking because if the problem is something else, I don't want the re-deployment to make more damage
Amoss Posted December 18, 2017 Author Posted December 18, 2017 Can you please remind me the automatic deployment link?Thanks!
wolstech Posted December 18, 2017 Posted December 18, 2017 Go into cPanel, select "Java" in the software section, and there should be a form on that page to deploy it.
Amoss Posted December 18, 2017 Author Posted December 18, 2017 (edited) I didn't deploy my WAR but now it's working... How do you explain that? Edited December 18, 2017 by Amoss
Recommended Posts