2 Replies Latest reply on Jul 19, 2005 10:16 AM by iwadasn

    Deploy too early....

    iwadasn Newbie


      JBoss tries to pick up an .ear immediately, so often it will pick it up before the file is done copying over. This is worse with larger files. JBoss should have a configurable time setting, such that it will only pick up files that are at least x seconds old, to give sufficient time for the copy to complete...

      Otherwise, you get errors like this...


      12:07:29,485 ERROR [MainDeployer] Could not initialise deployment: file:/var/local/jboss/jboss-4.0.2-EJB3/server/default/farm/dataBinding.ear
      org.jboss.deployment.DeploymentException: No META-INF/application.xml found
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:120)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:828)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:765)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
      at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy58.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
      at org.jboss.ha.framework.server.FarmMemberService.deploy(FarmMemberService.java:375)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
      -bash-2.05b$

        • 1. Re: Deploy too early....
          Darran Lofthouse Master

          Is this error on the node that you place the file in the farm folder or is this error on the other nodes in the cluster?

          If this error is on the node you are copying the ear into the farm folder the easiest solution is to copy the ear to a folder on the same partition and then move it into the farm folder.

          Alternatively copy it to the ear folder with an extension JBoss is configured to ignore and after the copy is complete rename the file so it is deployed.

          • 2. Re: Deploy too early....
            iwadasn Newbie


            It's on the original one... I'll try the move workaround, but it probably still wouldn't hurt to have JBoss wait a little bit (a couple of seconds) before picking it up.