Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-46670

[osgi] ModuleAutoDeployListener locks jar files in deploy folder on windows

    Details

    • Branch Version/s:
      6.2.x
    • Backported to Branch:
      Committed

      Description

      When ModuleAutoDeployListener checks the jar file in deploy folder to see if it should deploy it, it opens an inputstream and doesn't close it, which means that on windows, the auto deployer is unable to delete the jar file which causes it to be blacklisted and not deployed.

      02:34:50,482 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][Aut
      oDeployDir:204] Processing manifest-first-hook-test.jar
      02:34:50,484 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][Mod
      uleAutoDeployListener:63] Copied module for D:\liferay\bundles\deploy\manifest-f
      irst-hook-test.jar
      02:34:50,487 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][Mod
      uleAutoDeployListener:69] Module for D:\liferay\bundles\deploy\manifest-first-ho
      ok-test.jar copied successfully. Deployment will start in a few seconds.
      02:34:50,488 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][Aut
      oDeployDir:217] Auto deploy failed to remove manifest-first-hook-test.jar
      02:34:50,489 INFO  [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][Aut
      oDeployDir:224] Add manifest-first-hook-test.jar to the blacklist
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 15 weeks, 6 days ago

                  Subcomponents