Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am putting together a new build environment and when I upload a new .war file, Tomcat does not seem to be unwrapping it into a directory structure, or restarting.

Does there have to be some setting that needs to be set for this? I am using ubuntu

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

To get the autodeploy behavior, you'll want to find the <Host> block in your Tomcat config, and make sure the following is part of it: unpackWARs="true" autoDeploy="true"

As long as those are set, it should automatically explode the .war file. Keep in mind that this only applies to .war files placed in the webapps directory.

A service restart is not necessary for a redeploy, so you should not expect to see the Tomcat service restart itself.

share|improve this answer
    
I actually do have this setting: <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> in the tomcat/conf/server.xml - is there anywhere else I should set it? Thanks! –  Genadinik Apr 6 '11 at 22:30
    
@Genadinik Nope, that should do it. As long as the .war is in the webapps directory, it should be deployed. If it's not, maybe check the error log for issues with the deploy? –  Shane Madden Apr 6 '11 at 22:37
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.