This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Redeploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Redeploy" Watch "Redeploy" New topic


David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
How to redeploy application without restarting Tomcat?
I try just put WAR file into the webapps directory, it looks like it is functional, but the directory where the WAR file should be unpacked contains only WEB-INF directory.

Thanks in advance.

SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211


You can use the Tomcat Manager application to redeploy an app without having to restart Tomcat.
It involves setting up Tomcat Manager first.
You should be able to find all details at this link -


The future is here. It's just not evenly distributed yet. - William Gibson
Sonny Gill LinkedIn
Lee Barney
Ranch Hand

Joined: May 07, 2003
Posts: 37
I have seen this happen. What I saw happening was that the WEB-INF directory would be empty after a hot redeploy, but if I shut down the server and restarted it after removing the empty directory, everything was fine.

The cause appeared to be that there were multiple projects that were being deployed to the same application name. Each of these projects had its' own web.xml, etc. As Tomcat attempted to create the application directory it would choke and not place everything as required.

The solution was to either include the material from each project into one application deploy, or to have different application names for each project.

Hope this helps.
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341
Look at Deployer HOW-TO, hope this help you.
[ March 03, 2005: Message edited by: Surasak Leenapongpanit ]
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
You are right Lee, that is exactly what happened to me.
I just export WAR file from Eclipse to the webapps directory and Tomcat will redeploy my app automaticaly.
But after some redeploys it will emptying the directory with my webapp.

Thanks to all for replies.
It helps me a lot.
jQuery in Action, 3rd edition
subject: Redeploy
jQuery in Action, 3rd edition