Jump to content

Recommended Posts

Posted

Hello,

 

please help deploy WAR app:

 

 

user: xitix

war_path: /home/xitix/public_html/blog.war

 

Thanks,

 

xitix

 

 

 

  • Replies 33
  • Created
  • Last Reply

Top Posters In This Topic

Posted

# ./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.
Posted
# ./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/

Posted

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,

Posted

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.

Posted

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,

Posted

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

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

Posted

WAR package is uploaded on /home/xitix/xitix_blog.war

 

Please, re-deploy it.

 

Thanks

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