Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5471

Deploying EJB3 service throws "java.lang.RuntimeException: No MBeanServer has been injected"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-5.0.0.Beta4
    • EJB
    • None
    • Medium

      I'm trying to deploy an EJB3 service but I'm unable to do so as the following
      is thrown:

      2008-04-22 17:21:20,640 ERROR [STDERR] (main) Caused by: java.lang.RuntimeException: No MBeanServer has been injected
      2008-04-22 17:21:20,641 ERROR [STDERR] (main) at org.jboss.ejb3.deployers.JBossASKernel.installMBean(JBossASKernel.java:135)
      2008-04-22 17:21:20,641 ERROR [STDERR] (main) at org.jboss.ejb3.service.ServiceContainer.registerManagementInterface(ServiceContainer.java:587)

      Please find attached:

      • source code for EJB3 service
      • deployment archive
      • server.log with TRACE on org.jboss.ejb3

      I suspect Ejb3JBoss5Deployment should be injecting mbeanServer in the kernelAbstraction but it doesn't:

      public Ejb3JBoss5Deployment(DeploymentUnit ejb3Unit, Kernel kernel, MBeanServer mbeanServer, org.jboss.deployers.structure.spi.DeploymentUnit jbossUnit, DeploymentScope deploymentScope, JBossMetaData metaData, PersistenceUnitsMetaData persistenceUnitsMetaData)

      { super(ejb3Unit, deploymentScope, metaData, persistenceUnitsMetaData); this.jbossUnit = jbossUnit; kernelAbstraction = new JBossASKernel(kernel); // todo maybe mbeanServer should be injected? this.mbeanServer = mbeanServer; }

      I'll have a go at passing the mbeanServer to the kernelAbstraction and see if that fixes it.

        1. acme-ejb3-service.jar
          2 kB
        2. acme-ejb3-service-src.zip
          2 kB
        3. server.log
          1.77 MB

              rh-ee-galder Galder Zamarreño
              rh-ee-galder Galder Zamarreño
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: