Jump to content

[Solved] Java WebApp


softlab

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...