5 Replies Latest reply on Jul 29, 2010 11:21 AM by peterj

    Windows deleting run.jar and other files !

    lpmon

      On occasion we see that after a reboot (never after just a restart) that run.jar is deleted from the disk. Originally we blamed this on an overzealous anti-virus but we are now seeing this on PCs with no anti-virus or windows defender installed.

      We have never seen this with Linux.

      Yesterday we had visitors that needed our app installed. We found 3 PCs out of about 9 with this issue. now we are seeing more than just run.jar missing which is new.

      This is for 4.0.5.GA. We see these files are missing after a reboot:

      bin\run.jar
      client\getopt.jar
      lib\jboss-common.jar (and others)
      ... <several more in lib\ >

      Anyone seen this before? Solution? Ideas as to what is doing the deletes?

      Maybe worth mentioning: We use the JavaService to start JBoss as a windows service.

      And: until yesterday it has only been run.jar that was being deleted.

        • 1. Re: Windows deleting run.jar and other files !
          jaikiran

          Which Windows OS? Vista? Do you see the same behaviour without the JavaService in picture - by just running the server from command prompt?

          • 2. Re: Windows deleting run.jar and other files !
            lpmon

            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

            • 3. Re: Windows deleting run.jar and other files !
              peterj

              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.

              • 4. SOLVED- Re: Windows deleting run.jar and other files !
                lpmon

                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.

                 

                Ugly!

                • 5. Re: SOLVED- Re: Windows deleting run.jar and other files !
                  peterj

                  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.