Tomcat 5.5: .jar not releasing on .war rebuild

Synopsis

I am attempting to export a WAR to my webapps folder but everytiime I update the war it deletes all of the content of the webapp minus /WEB-INF/lib/struts.jar

System info

  • Windows 2K3
  • Tomcat 5.5
  • JRE 1.6.23

Ok here is what is happening:

  1. Export project as .WAR via Eclipse (Helios) to /webapps directory
  2. Tomcat sees the change in the war and attempts to rebuild webapp
  3. Tomcat deletes contents of webapp folder (/webapps/public)
  4. (/webapps/public/WEB-INF/lib/struts.jar) is locked preventing it from being deleted.
  5. Tomcat gives up rebuild leaving me with nothing in the folder besides the struts.jar causing the application to break.

Question(s)

  • Is there a way to keep the jar from being locked?
  • (OR) a better deployment process I should be using (and can pick up quickly)?

Using antiResourceLocking="true" and antiJARLocking="true" on the element did not solve the problem. Appreciate any help.

6
задан BalusC 10 June 2011 в 13:05
поделиться