I am trying to redeploy a war file in tomcat, one of the jar files in the web app contains an applicationContext.xml file that is being loaded at tomcat startup:
when calling tomcat undeploy it fails to delete the jar file containing the applicationContext.xml and so cant deploy it again, I tried to stop the app and then undeploy it but still the file is being referenced and cant be deleted, only solution is to stop tomcat.Code:<web-app> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath*:/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> </web-app>
is there a way to undeploy the application context file?
thanks


Reply With Quote