Amoss Posted October 6, 2017 Posted October 6, 2017 Hi, Please deploy my war username: stockdi1file: MyHelioServlet.war Thanks
wolstech Posted October 6, 2017 Posted October 6, 2017 You're on Tommy, so you can do this yourself in cPanel now. https://www.helionet.org/index/topic/29658-servlet-deploy/ It can take a few hours. If it doesn't deploy within 24 hours, let us know and we can post the logs (usually a failure in deployment is caused by either too many mysql connections or a damaged WAR file).
Amoss Posted October 6, 2017 Author Posted October 6, 2017 Oh, this is great! I now see Deploying servlet...What am I suppose to see/get when the deployment is done (in few hours)?
wolstech Posted October 6, 2017 Posted October 6, 2017 They take a few hours to deploy, and when they finish I think the application will just start working and it will show the URL of the deployed servlet. Usually the servlet address ends up being something like domain.heliohost.org/cpusername_warfilename/ (so a user example deploying MyFirstServlet.war on example.heliohost.org would have example.heliohost.org/example_MyFirstServlet/ as its URL) I don't use Java myself, so I don't have much experience with its deployment unfortunately. I'm a PHP developer. Krydos would know more about how this deployment works since he built the script.
Amoss Posted October 6, 2017 Author Posted October 6, 2017 I updated my current war so the url is already working but without the new functionality I added so if I understand you correctly, I just need to check it until the new functionality is working?Or should I wait for a reply from Krydos to be sure? Again, thank you for the tip
wolstech Posted October 6, 2017 Posted October 6, 2017 Correct. You can only have one WAR at a time, so the old deployment should be overwritten when the new one takes effect. There might be a small period where it doesn't work at all, actually (between when the old one undeploys and the new one goes live). I'm not sure though.
Krydos Posted October 6, 2017 Posted October 6, 2017 There are four states that the deployment can be in. First, you've never deployed a .war before and you have a .war uploaded. Second, you've requested a deployment and it hasn't gone through yet. Notice how you can't upload a new .war or request deployment again. If you already had a .war file deployed it will stay deployed until the new version is deployed. The downtime between deployments varies from .war to .war but generally it's only a few seconds. Some more complicated .wars have a few minutes of downtime while it processes the new version. Third, your servlet has been properly deployed, and you can click the link to visit it. Notice how the current version stays deployed even if you upload a new version of your .war or an entirely different .war file. The fourth state is error. Sometimes .war files cannot be deployed because of severe errors. The most common reason is the servlet is trying to use more than four simultaneous mysql connections. By default java applications assume they are the only thing running on the entire server and try to hog all of the resources by opening like 50 mysql connections.
Amoss Posted October 6, 2017 Author Posted October 6, 2017 Thank you all for your explanation but I'm not sure I understood how can I know if my deployment of the new war went through and whether I have the new war or not without trial an err If trial and err is the only option, I will add an API that gives back the version so next time I will know
Krydos Posted October 6, 2017 Posted October 6, 2017 Thank you all for your explanation but I'm not sure I understood how can I know if my deployment of the new war went throughYou will know because will change to It says "pending" while it's working on it, and when it's done it says "deployed."
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now