Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22145

nio WatchService possibly causing errors / locking files on windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • 4.30.x
    • 4.3.0.Final
    • server
    • None
    • Hide
      • have a wildfly 10 server running
      • create a new Maven project
      • click "Create a simple project", next
      • fill in, groupId, artifactId, packaging = war, click finish
      • right click on project > JavaEE tools > Generate Deployment descriptor stub (just to get rid of Maven's error about missing web.xml)
      • right mouse click on the server in the server view --> Add and remove... --> add the project
      • test the project in the browser
      • right mouse click on the server in the server view --> Clean...
      • test the project in the browser again
      Show
      have a wildfly 10 server running create a new Maven project click "Create a simple project", next fill in, groupId, artifactId, packaging = war, click finish right click on project > JavaEE tools > Generate Deployment descriptor stub (just to get rid of Maven's error about missing web.xml) right mouse click on the server in the server view --> Add and remove... --> add the project test the project in the browser right mouse click on the server in the server view --> Clean... test the project in the browser again
    • -

      The following error is thrown after publishing a maven webapplication (.war) to Wildfly 10.0:

      "Error renaming C:\wildfly-10.0.0.Final\standalone\tmp\tmp8945090880188299781.properties to C:\wildfly-10.0.0.Final\standalone\deployments\WebViewer-0.0.3-SNAPSHOT.war\META-INF\maven\nl.incad.webviewer\WebViewer\pom.properties.

      This may be caused by incorrect file permissions, or your server's temporary deploy directory may be on a different filesystem than the final destination.

      You may adjust these settings in the server editor."

      The webapplication is no longer available/online after the error. The only solution is to restart the server and to re-add the webapplication to the server. This makes it very hard to develop/test a webapplication on wildfly 10. The same error is thrown on wildfly 8.0/8.1, but the difference is that the webapplication is still available/online after the error.

      I've tried/tested the following:

      • Checked/updated Windows file permisions for the wildfly directory
      • Take ownership of the wildfly directory (recursively)
      • Disabled Windows User Account Control (UAC)
      • Run Eclipse as Admin

      Relates to:

        1. OkWatchModify1.PML
          1.35 MB
        2. Logfile.PML
          3.77 MB
        3. FSWatcherHang.txt
          2 kB
        4. FileWatchError.zip
          8 kB
        5. FailureWatchModify1.PML
          1016 kB

              tmader@redhat.com Thomas Mäder (Inactive)
              tvdberg Tobias van den Berg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: