0 Replies Latest reply on Jan 29, 2007 4:05 AM by litalh

    Error while deploying application using JMX

    litalh

      Hi,

      When trying to deploy my application on jboss 4.0.5 using JMX this way:

      MBeanServerConnection server = (MBeanServerConnection) ctx.lookup("jmx/invoker/RMIAdaptor");
      server.invoke("jboss.system:service=MainDeployer", "deploy", new Object[]{"http://localhost:8080/AppSight/download/installer?filename=/jboss/AppSightInstallerService.deployer"},
      new String[]{"java.lang.String"});

      I get the following error:
      MBeanException: null Cause: Incomplete Deployment listing:

      --- Packages waiting for a deployer ---
      org.jboss.deployment.DeploymentInfo@e8499f27 { url=http://localhost:8080/AppSight/download/installer?filename=/jboss/AppSightInstallerService.deployer }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: http://localhost:8080/AppSight/download/installer?filename=/jboss/AppSightInstallerService.deployer
      altDD: null
      lastDeployed: 1170061350616
      lastModified: 1170061350616
      mbeans:

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@e8499f27 { url=http://localhost:8080/AppSight/download/installer?filename=/jboss/AppSightInstallerService.deployer }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: http://localhost:8080/AppSight/download/installer?filename=/jboss/AppSightInstallerService.deployer
      altDD: null
      lastDeployed: 1170061350616
      lastModified: 1170061350616
      mbeans:

      This works great on versions prior to 4.0.3.

      Any idea? Was there any a change in the way we should access JMX between the versions ?

      Thanks,
      Lital