xitix Posted May 10, 2017 Posted May 10, 2017 Hello, please help deploy WAR app: user: xitixwar_path: /home/xitix/public_html/blog.war Thanks, xitix
Luigi123 Posted May 10, 2017 Posted May 10, 2017 This support request is being escalated to our root admin.
Krydos Posted May 10, 2017 Posted May 10, 2017 # ./deploy_java xitix blog User xitix found. Unable to find file: blog.war Usage: deploy_java <username> <.war file> Make sure /home/xitix/blog.war exists.
xitix Posted May 11, 2017 Author Posted May 11, 2017 # ./deploy_java xitix blog User xitix found. Unable to find file: blog.war Usage: deploy_java <username> <.war file> Make sure /home/xitix/blog.war exists. done. have re-uploaded into /home/xitix/
xitix Posted May 11, 2017 Author Posted May 11, 2017 Deployed http://xitix.heliohost.org/blog/Dear, Somehow it not works. WAR is deployed on http://xitix.heliohost.org/blog/ while the files are pointing to http://xitix.heliohost.org/xitix_blog/ How to solve?1) may I have all the files on "~/blog" folder and delete or modify the pointing to "/xitix_blog"?2) have to refactor the initial eclipse project to install, re-deply and point to the "~/xitix_blog" ? Thanks,
Krydos Posted May 11, 2017 Posted May 11, 2017 The most portable option is to not use absolute paths, but rather relative paths like ../. If you must use absolute paths the best way to do it is to determine your DOC_ROOT within your code in the same section where you definite global variables and then use the DOC_ROOT variable through the rest of your code. Using relative paths is easiest in my opinion. Your username has to be appended to the beginning of your deployed app otherwise no one else would be able to use blog.war.
xitix Posted May 11, 2017 Author Posted May 11, 2017 The most portable option is to not use absolute paths, but rather relative paths like ../. If you must use absolute paths the best way to do it is to determine your DOC_ROOT within your code in the same section where you definite global variables and then use the DOC_ROOT variable through the rest of your code. Using relative paths is easiest in my opinion. Your username has to be appended to the beginning of your deployed app otherwise no one else would be able to use blog.war.Dear, Fortunately the paths are relative.Ok, have refactored & changed the artifacts to help deploy on "~/xitix_blog". Please:1) stop and delete the old "blog"2) redeploy the new web-app: "xitix_blog". new WAR package is uploaded on /home/xitix/xitix_blog.war Thanks,
xitix Posted May 12, 2017 Author Posted May 12, 2017 Deployed. http://xitix.heliohost.org/xitix_blog/Dear, Still not working ! Now, heliohost.org is pointing all links to "~/xitix_xitix_blog/".My project path is relative, and starts from "../xitix_blog/", according to previous discution on post #7. I cannot setup my project to point on "relative paths like ../." because my intention is to have different services: each one is pointing to it's folder; the BOLG is the first web-app I would like to test on your site. And even if point java web-app to the "relative path ../." your server setup will automatically redirect all links to "~/xitix_..." and the web-app will fail working. The automatically redirecting to "~/xitix_..." is annoying me screenshot You may check, the blog-project runs perfectly fine on other friend space, that's temporarly hosting my java web-app:http://blog.xitix.dynamic-dns.net:8080/xitix_blog/http://blog.xitix.dynamic-dns.net:8080/blog/ Please advice on how to deploy my java web-app on heliohost.org, Thanks, P.S.I believe might help if update the how-to documentation related to "`/user-path_" java deployment on heliohost.org
Krydos Posted May 12, 2017 Posted May 12, 2017 Have you read http://wiki.helionet.org/Java_Servlet#Edit_index.jsp_Source ?
xitix Posted May 12, 2017 Author Posted May 12, 2017 Have you read http://wiki.helionet.org/Java_Servlet#Edit_index.jsp_Source ? Yes, I have read. I do not use jsp with java servlet, but thymeleaf on spring framework.However, there is no reference for "username_" into ../MyHelioServlet/ portion of the link. Thanks,
xitix Posted May 13, 2017 Author Posted May 13, 2017 Have you read http://wiki.helionet.org/Java_Servlet#Edit_index.jsp_Source ? Dear, have modified the code.Let see if works now.
xitix Posted May 15, 2017 Author Posted May 15, 2017 WAR package is uploaded on /home/xitix/xitix_blog.war Please, re-deploy it. Thanks
Recommended Posts