1 Reply Latest reply on Oct 8, 2002 10:59 PM by jasonbrome

    Deployment scanner runs before file copied

    arbie

      I'm upgrading from JBoss3.00_tomcat4.0.3 to jboss.3.0.3-tomcat4.0.5. When I copy my ear file to server/default/deploy, the scanner thread kicks off before the file is completely copied and I get the error:

      2002-10-08 11:54:29,211 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@b30c40de{ url=file:/D:/jboss/boss-3.0.3_tomcat-4.0.5/server/default/deploy/QSPlatform.ear, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: url file:/D:/jboss/boss-3.0.3_tomcat-4.0.5/server/default/deploy/QSPlatform.ear could not be opened, does it exist?


      I would get this error on the older version of jboss, but the scanner thread would retry and the ear would get deployed. However, with jboss 3.0.3 the scanner thread doesn't retry the operation so my ear is never deployed.

        • 1. Re: Deployment scanner runs before file copied
          jasonbrome

          As a workaround, you might want to try moving a copy of your ear into the deploy directory, rather than copying the file into the directory.

          The move will be performed as an atomic operation at the level of Operating System, and therefore the file will not appear incomplete to JBoss's deployment scanner.