• 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

Restarting Tomcat on the fly?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys,
I know that tomcat will hot deploy a war file when thrown into it. However I do not have control of a server holding tomcat. So i cannot restart tomcat when i add a war.

Any way of making tomcat deploy / reboot once a war file has been thrown into its applications folder?

Thanks.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have a access to the Tomcat Manager application?
 
Bob Burnquist
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes most likeley.

The scenario is that our development department is allowed to control servers up to a point. Then from then on its up to our administrators to put things onto live boxs.

Basically once ive got my war'd web app, it would be really great just to transfer it to the box and thats it. No restarting of tomcat.

Ive seen an option under the virtual host in the server.xml file which allows wars to be exploded and released on the fly. However it still needs a reboot for the changes to work.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The tomcat manager will let you restart an application.

The problem, I've found, with upgrading apps from war files is that the behavior is similar to unzipping one directory tree on top another.
It will always add files that weren't there, sometimes overwrite files that were there, but never remove files that existed in the original tree and not in the new version.
For this reason, I always do clean upgrades.
I stop Tomcat, archive the older version of the app, and then add the new war file and restart the app.
 
Bob Burnquist
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yea its a bit of a pain because its a 35 meg war on a remote location, and have to do it a number of times heh.

Nevermind. Thanks any way.

Seb.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might want to look into some of the Ant tasks for deploying and un-deploying apps through the Tomcat Manager app.
Un-deploy will remove the files as well as stopping the app.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic