This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JSP and the fly likes Deploying WAR files on a shared host? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSP
Bookmark "Deploying WAR files on a shared host?" Watch "Deploying WAR files on a shared host?" New topic
Author

Deploying WAR files on a shared host?

Jim Rosenberg
Greenhorn

Joined: Oct 14, 2009
Posts: 11
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

Joined: Mar 24, 2008
Posts: 3833

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.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
Consider Paul's rocket mass heater.
 
subject: Deploying WAR files on a shared host?