• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Automatically re-deploying war file on Tomcat 7

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Tomcat 7.0.67 on Linux Mint 17. I have a WebApp.xml file in $TOMCAT_HOME/conf/Catalina/localhost

Is any additional configuration required to get Tomcat to automatically re-deploy my application whenever I re-build it using Maven? Because for some reason this does not seem to work.
Initially Tomcat gets it deployed alright but it does not re-deploy the application whenever the war file is updated.
 
Saloon Keeper
Posts: 23279
158
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Nisarg!

There are 2 possible reasons for this problem.

1. Tomcat does not detect changes instantly. It scans for them periodically. You may not be waiting long enough.

2. If your WAR is being "exploded" (unzipped), the exploded copy of the WAR is the authoritative one. even if you deploy a newer WAR file. The easiest way to avoid this is to delete the exploded WAR. Tomcat will then explode the new WAR file and make that the authoritative copy of the app. Or you could switch off the auto-unzip feature. It's turned on by default.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic