Yes I tried the exact configuration you posted, without anything else in the config file :(
In my POM I have
and Java 1.6.0_25, Windows 7
We are looking into it since it seems like the problem might be windows specific.
Reproduced on Windows XP - this seems to be a limitation/"feature" of the Windows operating system.
Does it mean that there is no solution to have nio-locker working on windows?
Well, if you read FileLock documentation it talks about it being specific to the OS - after all its a gateway to the native facilities and on the windows (the way i read it) the lock is exclusive.
We are currently discussing the possibility of enabling configuration to make the lock shared, but the issue with that is that it wil be shared by any process within the same JVM which means it is not bound to threads. We did verify that the making the lock shared will get you passed the windows problem, but will it be appropriate stil remains a question.
As I said we are stil discussing it so stay tuned
OK, I understand.
Anyway, thank you very much for your help!
Any updates on this issue? I am having the exact same problem.
Take a look here, please: http://forum.springsource.org/showthread.php?132984
So, I think we'll raise an JIRA issue about 'more friendly nio-lock' and take care of it soon.