Jump to content

[Solved] https URL doesn't work for my java app


ukalumni

Recommended Posts

Okay, another issue related to this. In my first post above, I said this link works:

 

http://ukalumni.heliohost.org/gpgagolf (spelling it out so that you can see the differences) http ukalumni . heliohost . org / gpgagolf

 

However, when I click it, I get taken to this URL (and receive a 404):

 

http://ukalumni.heliohost.org/ukalumni_gpgagolf/ (http ukalumni . heliohost . org / ukalumni_gpgagolf ) 

 

Why does http://ukalumni.heliohost.org/gpgagolf turn into http://ukalumni.heliohost.org/ukalumni_gpgagolf/ when it is clicked? 

Edited by ukalumni
Link to comment
Share on other sites

Java uses a lot of system resources. That's why we have to limit the number of users who can have it enabled at once. If you have http and https enabled you use twice as many resources so as a result if we automatically enabled both http and https for each user we would only be able to have half as many users with java enabled.

 

The reason we append your username to your .war file before it's deployed is because otherwise we would have conflicts. Say one user deployed test.war and a second user then also deployed test.war the first one would be overwritten and suddenly user1.heliohost.org/test/ would change to someone else's site. To prevent this we append the username to the front of the file. test.war becomes user1_test.war or user2_test.war depending on who deploys it. Sometimes this name change causes issues within the .war file when it's hard coded to only work with one name. To get around this issue we recommend writing your .war so it will work with any name, but if that isn't possible for you just simply name it ukalumni_gpgagolf.war yourself.

Link to comment
Share on other sites

Thank you.

 

Concerning the http and https using twice as many resources, can you just disable the http then? I need https, but I don't need http.

 

As for the war file name, when I go to http://ukalumni.heliohost.org/gpgagolf, the browser url changes to http://ukalumni.heliohost.org/ukalumni_gpgagolf/ and I get the 404 error.

 

However, when I edit the URL in the address window by deleting the 'ukalumni_' so that it just reads http://ukalumni.heliohost.org/gpgagolf/, it works. Based on your explanation, I don't understand why it ever works without the username prepended to the war file name.

 

There isn't anything in the war file that is reliant on the war file name.

 

I changed the name of the war file to ukalumni_gpgagolf.war and uploaded it, but the url http://ukalumni.heliohost.org/ukalumni_gpgagolf/ still doesn't work.

 

Can you tell me what I'm still doing wrong?

Edited by ukalumni
Link to comment
Share on other sites

One last thing I don't understand. When I uploaded ukalumni_gpgagolf.war, the deploy screen shows that I uploaded gpgagolf.war. 

 

That appears to be accurate since http://ukalumni.heliohost.org/gpgagolf/ works (after manually editing the URL), but I don't understand what's happening since you said that my username is prepended to the war file, but in this case it looks like it is being removed.

 

Edited by ukalumni
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...