SUN AS cannot delete jar files in WEB-INF/lib
843833Jun 1 2005 — edited Apr 13 2006Hi
I am using NB 4.1 and SUN AS. There is some terrible problem that I cannot redeploy my WEB application from NB without restarting SUN AS.
It's because it tries to delete module directory when I undeploy it. But for some reason library jars in WEB-INF/lib cannot be deleted:
[#|2005-06-01T19:16:49.875+0300|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.util|_ThreadID=16;|UTIL6041: Performing gc to try to force file closures|#]
[#|2005-06-01T19:16:51.562+0300|INFO|sun-appserver-pe8.1_01|javax.enterprise.system.util|_ThreadID=16;|UTIL6043: Attempt to delete C:\Sun\AppServer\domains\domain1\applications\j2ee-modules\MYApplication\WEB-INF\lib\commons-beanutils-core.jar failed after 4 retries|#]
I have to restart AS to get those files deleted, so I can redeploy my application/
Also I have noticed a strange behavior of AS. When I deploy a WEB module it unpacks all classes from /lib and copies all of them into root directory of a WEB module. Even my application classes are there !