I have deployed JBoss 5.1 with multiple applications on Windows 2008 server. The issue I am facing is that sometimes the web.xml file (for all the deployed apps) is locked. I don't see any other files getting locked including the jars (which I suppose is expected to allow hot deployment).
I used Unlocker and Process Explorer to find that it is being locked by the JVM in which JBoss is running. This issue is not always reproducible and I am having trouble finding out how to figure out if JBoss code is actually locking the file. I skimmed through my code and don't see a reason why my code could be holding a lock to this file.
I would appreciate any pointers towards how to go ahead debugging this issue.