Search code examples
maventomcat7hibernate-validatormaven-cargo

Undeploying hibernate-validator from Tomcat 7


I have a maven project. With Spring 3 and Hibernate.

I using org.codehaus.cargo to deploy/redeploy the war file in my tomcat 7.

On initial start of tomcat this deploy works fine. But i can't undeploy the project from tomcat 7. Everytime i try to undeploy it leaves /{project}/WEB-INF/lib/hibernate-validator-4.0.0.GA.jar

What can i do?

Thanks a lot Valtos


Solution

  • I'm guessing you are on Windows. Sometimes JAR files can get locked because a URL resource remains open.

    Try turning on antiJarLocking and antiResourceLocking (see http://tomcat.apache.org/tomcat-7.0-doc/config/context.html) in your context file.

    This discussion might also be relevant.