softlab Posted October 31, 2019 Posted October 31, 2019 Hi. I have a web app (WebRE on johnny) which uses struts. I connect correctly to http://bfpswrm.heliohost.org/WebRE. In my login page, if I move the mouse over the html:submit button, I see this string: http://bfpswrm.heliohost.org/bfpswrm_WebRE/... Why the "bfpswrm_" before the crrect path "WebRE"? Obviously wher I click the button I get an HTTP404 error. Can you help me? Thank you
wolstech Posted October 31, 2019 Posted October 31, 2019 When you deploy a WAR file, the server silently renames it to username_warname to make the name unique (if it didn't, no other user would be able to host a WAR named WebRE). If this is posing an issue for you, the solution is to compile the WAR such that the output file is already called bfpswrm_WebRE (so the code inside expects it to be called bfpswrm_WebRE). When the bfpswrm_ is already present in the name, the server won't rename it for you.
softlab Posted October 31, 2019 Author Posted October 31, 2019 Thank you. I uploaded the file bfpswrm_WebRE.war, but when I try to select it from the combobox in the Java area of my cPanel I see only the old war (WebRE); if I connect with FileZilla the files are both present. What is the problem? Thanks
softlab Posted October 31, 2019 Author Posted October 31, 2019 Ok, I had to refresh the page after the upload
softlab Posted October 31, 2019 Author Posted October 31, 2019 But how should I address to it? If I try with http://bfpswrm.heliohost.org/bfpswrm_WebRE/ I get an HTTP404; I removed the WebRE.war file with FileZilla, but when I upload bfpswrm_WebRE.war I get the message "Deployed." with besides the link to http://bfpswrm.heliohost.org/WebRE/, which has the referred problem wher I try to click the button on the login page. What's the problem? Thank you
wolstech Posted October 31, 2019 Posted October 31, 2019 Weird. It won't change the URL. I just deployed it again and nothing happened. Escalating to Krydos.
softlab Posted October 31, 2019 Author Posted October 31, 2019 I did, it told me to refresh periodically the page and within two minutes the message disappeared, but seemed like it had done nothing. I'll wait the time you suggest for your deploy. Thank you
Krydos Posted October 31, 2019 Posted October 31, 2019 There you go http://bfpswrm.heliohost.org/bfpswrm_WebRE/
Recommended Posts