Jump to content

Recommended Posts

Posted

Oh, this is great! I now see Deploying servlet...

What am I suppose to see/get when the deployment is done (in few hours)?

Posted

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.

Posted

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

Posted

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.

Posted

There are four states that the deployment can be in.

 

First, you've never deployed a .war before and you have a .war uploaded.

java_deploy.png

 

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.

java_pending.png

 

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.

java_done.png

 

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.

java_error.png

Posted

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 :)

Posted

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

You will know because

java_pending.png

will change to

java_done.png

 

It says "pending" while it's working on it, and when it's done it says "deployed."

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...