Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Deploying WAR files on a shared host?  RSS feed

 
Jim Rosenberg
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How would I go about deploying a WAR file on a shared host? Everything I read about deploying them says I put them in webapps inside the Tomcat root directory. Then go to localhost:8000. My hosting account is a shared account where I can get to my site by theIP/~MyUsername/. I don't have access to anything above the /home/MyUsername directory. Tomcat is running, and I can upload JSP files and view them. Do I just have to manually unpack the WAR file and upload the contents?

If I could get root access, how would I deploy a WAR file? If I put the file in the webapps directory, would it unpack into the MyUsername directory?
 
Vijitha Kumara
Bartender
Posts: 3992
27
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jim Rosenberg wrote:If I could get root access, how would I deploy a WAR file?

Tomcat has a "manager console" (usually http://IP:port/manager or you can access that from the tomcat home page of the container) which can be used to deploy WAR files.
If I put the file in the webapps directory, would it unpack into the MyUsername directory?

You should check how the mapping done in the server.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!