Which Windows OS? Vista? Do you see the same behaviour without the JavaService in picture - by just running the server from command prompt?
I believe we have only seen this under XP (various service packs). I have already asked my assistant to experiment as follows (no results yet):
- leave service installed but disabled and reboot
- use a start-up command file instead of launching as a service
One tool you might be able to use to track down the cause if File Monitor (or System Monitor) from sysinternals. You can use this tool to log all access to a particular file or directory.
This was solved. Had nothing to do with JBoss, Windows, ....
We found that the scenario was: User uninstalled our app. That uninstal marks files for deletion after a reboot if they cannot be deleted for some reason during the uninstall. Then they reinstalled. Somehow NSIS (our install tool) did not recognize there was a re-install done and upon the next reboot it deleted those file marked for removal per the previous uninstall.
This is a very common problem and one of the reasons I always reboot the machine after an uninstall, espcially if I plan on reinstalling the software, or installing the upgraded software. I have been bitten by this often in the past.