aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 3775

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying WAR files on a shared host?
 
Similar Threads
Apache/Tomcat simple applet problem
how to access images that are not in war file???
WAR files with Tomcat 4.1
properties file
Can't deploy war file outside of [tomcat]/webapps