Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1017

FileSystemException while attempting to move files in the jaxrs/scala example on Windows

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • 2017.1.1
    • 2017.2.0
    • examples
    • None
    • Hide
      1. Clone wildfly-swarm-examples
      2. cd jaxrs/scala
      3. Run mvn clean install -e

      The build fails with a FileAlreadyExistsException (the exception below was captured after adding a e.printStackTrace() to the IOException thrown by Files.move)

      Show
      Clone wildfly-swarm-examples cd jaxrs/scala Run mvn clean install -e The build fails with a FileAlreadyExistsException (the exception below was captured after adding a e.printStackTrace() to the IOException thrown by Files.move )

    Description

      This is only reproducible in Windows.

      [INFO] Repackaging .war: C:\wildfly-swarm-examples\jaxrs\scala\target\example-scala.war
      java.nio.file.FileSystemException: C:\wildfly-swarm-examples\jaxrs\scala\target\example-scala.war.original: The process cannot access the file because it is being used by another process.
      
              at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
              at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
              at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
              at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
              at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
              at java.nio.file.Files.move(Files.java:1395)
              at org.wildfly.swarm.tools.BuildTool.move(BuildTool.java:199)
              at org.wildfly.swarm.tools.BuildTool.repackageWar(BuildTool.java:180)
              at org.wildfly.swarm.plugin.maven.PackageMojo.execute(PackageMojo.java:194)
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ggastald George Gastaldi
              rhn-support-ggastald George Gastaldi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: