2 Replies Latest reply on May 15, 2006 1:05 PM by William DeCoste

    Error initializing MDB in embedded container

    James Cooper Newbie

      Version: JBoss EJB3 Embeddable ALPHA 5

      I am writing JUnit tests that run in the embedded container. If I'm only using Stateless Session Beans, the server starts and the tests run.

      I've added some MDBs recently, and now I see this during startup:

       [junit] INFO 13-05 13:12:49,541 (Ejb3AnnotationHandler.java:getContainers:1
      56) -found EJB3: ejbName=EmailService.AccountHistory, class=emailservice.AccountHistoryImpl, type=STATELESS
       [junit] INFO 13-05 13:12:49,635 (Ejb3AnnotationHandler.java:getContainers:1
      56) -found EJB3: ejbName=EmailService.ForgotPasswordMDB, class=emailservice.ForgotPasswordMDB, type=MESSAGE_DRIVEN
       [junit] INFO 13-05 13:12:49,650 (Ejb3AnnotationHandler.java:getContainers:1
      56) -found EJB3: ejbName=EmailService.Mailer, class=emailservice
      .MailerImpl, type=STATELESS
       [junit] INFO 13-05 13:12:49,650 (Ejb3AnnotationHandler.java:getContainers:1
      56) -found EJB3: ejbName=EmailService.TemplateLoader, class=emai
      lservice.TemplateLoaderImpl, type=STATELESS
       [junit] INFO 13-05 13:12:49,666 (Ejb3AnnotationHandler.java:getContainers:1
      56) -found EJB3: ejbName=EmailService.TestMDB, class=emailservic
      e.TestMDB, type=MESSAGE_DRIVEN
       [junit] INFO 13-05 13:12:49,681 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 234
       [junit] INFO 13-05 13:12:49,837 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 156
       [junit] INFO 13-05 13:12:51,616 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 1779
       [junit] INFO 13-05 13:12:52,880 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 1264
       [junit] INFO 13-05 13:12:53,021 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 141
       [junit] INFO 13-05 13:12:53,036 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 0
       [junit] INFO 13-05 13:12:53,145 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 109
       [junit] INFO 13-05 13:12:54,519 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 1374
       [junit] INFO 13-05 13:12:55,033 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 514
       [junit] INFO 13-05 13:12:55,033 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 0
       [junit] INFO 13-05 13:12:55,455 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 406
       [junit] INFO 13-05 13:12:55,564 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 109
       [junit] INFO 13-05 13:12:56,188 (Ejb3Deployment.java:create:444) -EJB3 dep
      loyment time took: 624
       [junit] INFO 13-05 13:12:56,235 (MCKernelAbstraction.java:install:79) -ins
      talling bean: jboss.j2ee:service=EJB3,jar=r3-email-service,name=EmailService.Acc
      ountHistory with dependencies:
       [junit] INFO 13-05 13:12:56,656 (MCKernelAbstraction.java:install:79) -ins
      talling bean: jboss.j2ee:service=EJB3,jar=r3-email-service,name=EmailService.For
      gotPasswordMDB with dependencies:
       [junit] ERROR 13-05 13:12:56,781 (AbstractController.java:incrementState:350
      ) -Error installing to Start: name=jboss.j2ee:service=EJB3,jar=r3-email-service
      ,name=EmailService.ForgotPasswordMDB state=Create
       [junit] java.lang.IllegalStateException: No 'jboss' MBeanServer found!
       [junit] at org.jboss.mx.util.MBeanServerLocator.locateJBoss(MBeanServerL
      ocator.java:122)
       [junit] at org.jboss.ejb3.mdb.MDB.createProxies(MDB.java:324)
       [junit] at org.jboss.ejb3.mdb.MDB.start(MDB.java:250)
       [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
      sorImpl.java:39)
       [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
      hodAccessorImpl.java:25)
       [junit] at java.lang.reflect.Method.invoke(Method.java:585)
       [junit] at org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.di
      spatch(ReflectMethodJoinPoint.java:72)
       [junit] at org.jboss.kernel.plugins.dependency.KernelControllerContextAc
      tions.dispatchJoinPoint(KernelControllerContextActions.java:96)
       [junit] at org.jboss.kernel.plugins.dependency.KernelControllerContextAc
      tions$LifecycleAction.installAction(KernelControllerContextActions.java:476)
       [junit] at org.jboss.kernel.plugins.dependency.KernelControllerContextAc
      tions$KernelControllerContextAction.install(KernelControllerContextActions.java:
      171)
       [junit] at org.jboss.dependency.plugins.AbstractControllerContextActions
      


      Do I need to modify any of the config files for my embedded container in order for MDBs to load?

      Thanks,

      -- James