• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Redeploy

 
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
David,

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 -

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html#Reload%20An%20Existing%20Application

Cheers.
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at Deployer HOW-TO, hope this help you.
[ March 03, 2005: Message edited by: Surasak Leenapongpanit ]
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic