I call ant task <target name="deploy-war" depends="create-war"> <copy file="${target.dir}/${war.file}" todir="${deploy.dir}"/> </target>
application is called jdbc.war, and I create jdbc.xml in conf/Catalina/localhost/ after I deploy war and previous jdbc.xml disappears - I create it on running tomcat. Regards Jakub On Wed, Apr 17, 2013 at 10:04 PM, Mark Thomas <ma...@apache.org> wrote: > On 17/04/2013 10:35, Jakub 1983 wrote: > > when I copy new version of myWebApp.war into webapps directory my context > > from > > conf/Catalina/localhost/ disappears (this context was manually created by > > me), > > What, exactly, are you doing? For example, copy and overwrite has very > different behaviour (at least it should) to delete then replace. > > How (and when) you create the context.xml file also matters as does the > running state of Tomcat when you make any changes. > > Mark > > > > > maybe tomcat first deletes war, and also delete corresponding context > file, > > is there any way to prevent it ? > > how should such update be done ? > > a) in developer mode (on my local mashine, when I want to copy from > > console) > > b) in production mode, not so frequently > > > > regards > > Jakub > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >