Results 1 to 2 of 2

Thread: undeployment of ApplicationContext.xml

  1. #1
    Join Date
    May 2005
    Posts
    10

    Default undeployment of ApplicationContext.xml

    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:
    Code:
    <web-app>
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath*&#58;/applicationContext.xml</param-value>
    </context-param>
    <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>
    </web-app>
    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.
    is there a way to undeploy the application context file?
    thanks

  2. #2
    Join Date
    May 2005
    Posts
    10

    Default just seen this reply

    plethora
    New User


    Joined: 14 Aug 2004
    Posts: 22


    New postPosted: Tue Jul 19, 2005 2:59 am Post subject: Reply with quote
    Don't use the Spring classpath*: pseudo URL handler to access resources inside JAR files on operatig systems that perform strict file locking (e.g. Win32 platforms).

    There are a number of bugs in the Win32 implementation of the JVM that cause less-than ideal file locking behaviour.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •