Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-834

EJB3 hot redeployment causes a permanently locked file handle

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • EJB 3.0 RC9 - Patch 1
    • None
    • None

      I am not sure which component is responsible for the bug, but since it happened with an ejb3-jar I am rising it here. If it doesn't belong here please forward it the right place.

      1. I copy titan.jar to the deploy folder -> the server deploys the ejb3 application and says ejb running
      2. I delete titan.jar from the deploy folder -> the server says that the app is undeployed
      3. I copy titian.jar in the deploy folder again -> the server deploys the ejb3 application and says ejb running again

      (everything seems ok for now, here comes the problem)

      4. I try to delete titan.jar from the deploy folder -> I get a windows explorer error message saying that the file is in use and can't be deleted.

      When I checked with process explorer which process is using the file it turned out it's the java.exe process (the server didn't release the handle?).

      This doesn't not occur on Linux!

            rhn-engineering-cdewolf Carlo de Wolf
            vralev Vladimir Ralev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: