File get locked while restart the server

Posted on

There is an issue while i am using JNI to access native library. every time when i restart the server i got the error saying "file is already loaded in another classloader" . To resolve this issue we again need to place file and re-deploy the war. file handling is proper in code.
we would have same problem if we re-deploy the war again in running server.