• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Deploying WAR files on a shared host?

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic