Amoss Posted December 18, 2017 Share 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! Link to comment Share on other sites More sharing options...
Bailey Posted December 18, 2017 Share 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? Link to comment Share on other sites More sharing options...
wolstech Posted December 18, 2017 Share 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. Link to comment Share on other sites More sharing options...
Amoss Posted December 18, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
wolstech Posted December 18, 2017 Share 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. Link to comment Share on other sites More sharing options...
Bailey Posted December 18, 2017 Share Posted December 18, 2017 @wolstech: Ah, I didnt realise, I dont know much about Java, sorry for any confusion caused. Link to comment Share on other sites More sharing options...
wolstech Posted December 18, 2017 Share Posted December 18, 2017 @Bailey: No problem. I learned the same way you're learning Link to comment Share on other sites More sharing options...
Bailey Posted December 18, 2017 Share 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? Link to comment Share on other sites More sharing options...
wolstech Posted December 18, 2017 Share 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. Link to comment Share on other sites More sharing options...
Amoss Posted December 18, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Krydos Posted December 18, 2017 Share Posted December 18, 2017 Try redeploying the .war file. Link to comment Share on other sites More sharing options...
Amoss Posted December 18, 2017 Author Share Posted December 18, 2017 Can you please remind me the automatic deployment link?Thanks! Link to comment Share on other sites More sharing options...
wolstech Posted December 18, 2017 Share 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. Link to comment Share on other sites More sharing options...
Amoss Posted December 18, 2017 Author Share Posted December 18, 2017 Will do, thanks a lot! Link to comment Share on other sites More sharing options...
Amoss Posted December 18, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts