mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
26.22.2007 bcdab6d3104e368c131bf63d91866fec130c4481
refs
author jvergara <jvergara@localhost>
Monday, March 26, 2007 20:22 +0200
committer jvergara <jvergara@localhost>
Monday, March 26, 2007 20:22 +0200
commitbcdab6d3104e368c131bf63d91866fec130c4481
tree 2e3990fa70144116e362976c27ea5fa2e3cee170 tree | zip | gz
parent 43a2740debd9d73826f4addb35c1f63a6a503c8c view | diff
Fix for issue 1432 (Uninstall fails on windows due to lock on activation.jar).

There are two things fixed here: with AspectJ we have more jar dependencies when running the uninstaller so just tell the user at the end to delete the files under the lib directory (instead of just deleting a couple of jars).

The other problem that I have encountered is that when we try to delete the server.lock file (even if the server is not running) we cannot do it because there are some references to the file. This is caused because when we call the method LockFileManager.acquireExclusiveLock when the acquisition of the lock fails we do not close the FileChannel nor the RandomAccessFile that we are opening to try to get the lock. The modifications in LockFileManager just close the RandomAccessFile and the FileChannel that have been opened when we could not get the lock (is just a clean up).
4 files modified
240 ■■■■ changed files
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/CurrentInstallStatus.java 1 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallCli.java 109 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/uninstaller/Uninstaller.java 18 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/core/LockFileManager.java 112 ●●●●● diff | view | raw | blame | history