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

jvergara
26.22.2007 929b2d34bd47d5320a5bc2ffeb5a66fb06ecc35f
refs
author jvergara <jvergara@localhost>
Monday, March 26, 2007 20:22 +0200
committer jvergara <jvergara@localhost>
Monday, March 26, 2007 20:22 +0200
commit929b2d34bd47d5320a5bc2ffeb5a66fb06ecc35f
tree 21b3df90214848342f052daf289cfc59da7c2dd2 tree | zip | gz
parent 186bb17702fab40ac4a9a9712bb5c50cec8b2a8d 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
opends/src/quicksetup/org/opends/quicksetup/CurrentInstallStatus.java 1 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/uninstaller/UninstallCli.java 109 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/uninstaller/Uninstaller.java 18 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/LockFileManager.java 112 ●●●●● diff | view | raw | blame | history