3 Replies Latest reply on Aug 11, 2006 4:30 PM by null null

    Problems deploying a service POJO in jboss-EJB-3.0_Embeddabl

    Chris Richardson Newbie

      Hi,

      I'm trying to test some EJB 3 code using the jboss-EJB-3.0_Embeddable_ALPHA_3.
      Session beans and entity beans deploy and run fine.
      Its a great way to do in-container testing.

      But when I try and deploy a service POJO that performs some initialization on startup I get the exception shown below in ServiceMBeanDelegate.register().
      I believe the call to findMBeanServer() is returning an empty list
      I'm using the configuration files from the conf/ directory of the distribution.

      Any suggestions?

      Thanks.

      Chris

      java.lang.RuntimeException: Problem registering @Management interface for @Service class net.chrisrichardson.foodToGo.ejb3.facade.SpringBeanReferenceInitializer
       at org.jboss.ejb3.service.ServiceContainer.registerManagementInterface(ServiceContainer.java:309)
       at org.jboss.ejb3.service.ServiceContainer.start(ServiceContainer.java:70)
       at org.jboss.ejb3.service.ServiceManager.startService(ServiceManager.java:97)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
       at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
       at org.jboss.ejb3.embedded.EJB3StandaloneDeployment.start(EJB3StandaloneDeployment.java:101)
       at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:389)
       at net.chrisrichardson.foodToGo.ejb3.tests.PlaceOrderFacadeUsingDependencyInjectionTests.setUp(PlaceOrderFacadeUsingDependencyInjectionTests.java:27)
       at junit.framework.TestCase.runBare(TestCase.java:125)
       at junit.framework.TestResult$1.protect(TestResult.java:106)
       at junit.framework.TestResult.runProtected(TestResult.java:124)
       at junit.framework.TestResult.run(TestResult.java:109)
       at junit.framework.TestCase.run(TestCase.java:118)
       at junit.framework.TestSuite.runTest(TestSuite.java:208)
       at junit.framework.TestSuite.run(TestSuite.java:203)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
       at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
      Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
       at java.util.ArrayList.RangeCheck(ArrayList.java:547)
       at java.util.ArrayList.get(ArrayList.java:322)
       at org.jboss.ejb3.service.ServiceMBeanDelegate.register(ServiceMBeanDelegate.java:67)
       at org.jboss.ejb3.service.ServiceContainer.registerManagementInterface(ServiceContainer.java:303)
       ... 17 more