5 Replies Latest reply on Aug 24, 2010 4:41 AM by Pasqualino Imbemba

    Error creating ejb container TimerServiceDispatcher with TestNG

    Matt Davis Newbie

      Hey... I haven't been able to find anything about this on google.  I was running TestNG tests just fine last week. I updated some hibernate jars, and didn't try the tests again until today, and now I'm getting the error below. Anybody have any advice, even if it's just an explanation of what that error might mean? 


      I rebooted my machine, opened eclipse and ran the test and I still get it... so I don't think I have any phantom processes running in the background.


      Any advice is appreciated



      Parser Running:
        /root/eclipseprojects/projName-test/temp-testng-customsuite.xml
      
      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfsjar:file:/root/eclipseprojects/projName/WebContent/WEB-INF/lib/jboss-seam.jar!/ state=PostClassLoader mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying jboss-seam.jar: Error creating ejb container TimerServiceDispatcher: Container jboss.j2ee:jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3,VMID=f8232853b59df6f9:2f5e7309:11a933f032a:-8000 + is already registered
              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:158)
              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:88)
              at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
              at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:127)
              at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
              at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:19)
              at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
              at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
              at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
              at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
              at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
              at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
              at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
              at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:167)
              at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:104)
              at org.testng.TestRunner.runWorkers(TestRunner.java:712)
              at org.testng.TestRunner.privateRun(TestRunner.java:582)
              at org.testng.TestRunner.run(TestRunner.java:477)
              at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)
              at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)
              at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
              at org.testng.SuiteRunner.run(SuiteRunner.java:198)
              at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:823)
              at org.testng.TestNG.runSuitesLocally(TestNG.java:790)
              at org.testng.TestNG.run(TestNG.java:708)
              at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
              at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
      Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container TimerServiceDispatcher: Container jboss.j2ee:jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3,VMID=f8232853b59df6f9:2f5e7309:11a933f032a:-8000 + is already registered
              at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:540)
              at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:486)
              at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:468)
              at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:434)
              at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:376)
              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:145)
              ... 44 more
      Caused by: java.lang.IllegalStateException: Container jboss.j2ee:jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3,VMID=f8232853b59df6f9:2f5e7309:11a933f032a:-8000 + is already registered
              at org.jboss.ejb3.Ejb3Registry.register(Ejb3Registry.java:128)
              at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:536)
              ... 49 more
      FAILED CONFIGURATION: @BeforeClass init
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      vfsjar:file:/root/eclipseprojects/projName/WebContent/WEB-INF/lib/jboss-seam.jar!/ -> java.lang.IllegalStateException: Container jboss.j2ee:jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3,VMID=f8232853b59df6f9:2f5e7309:11a933f032a:-8000 + is already registered
      
      
              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
              at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
              at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
              at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:19)
              at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
              at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
              at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
              at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
      ... Removed 22 stack frames
      


         

        • 1. Re: Error creating ejb container TimerServiceDispatcher with TestNG
          Matt Davis Newbie

          I found another thread that said something about duplicate jars... I had a jboss-seam.jar in my EarContent... I removed it, and it works.


          Was that supposed to be there? I have no clue how it got there if it hasn't been there the whole time.

          • 2. Re: Error creating ejb container TimerServiceDispatcher with TestNG
            Jessica Cao Newbie
            i find the same problem, I was running TestNG tests just fine
            but when i add
            <copy todir="${srcclass.dir}">
               <fileset dir="${test.dir}">
                   <include name="com/jboss/dvd/seam/*.class" />
                   <exclude name="com/jboss/dvd/seam/test/*.class" />
               </fileset>
            </copy>
            in ant buildtest,getting the error below:

            [testng] [Parser] Running:
               [testng] C:\jboss-seam-2.0.2.CR1\examples\dvdstore\src\com\jboss\dvd\seam\testng.xml
               [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-seam-2.0.2.CR1/examples/dvdstore/test-build/ state=PostClassLoader mode=Manual requiredState=Real
               [testng] org.jboss.deployers.spi.DeploymentException: Error deploying test-build: Error creating ejb container AcceptAction: Container jboss.j2ee:jar=test-build,name=AcceptAction,service=EJB3,VMID=e14ef3769ae36e8b:-6feaa85f:11bfcd7a1bb:-8000 + is already registered
               [testng] at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:158)
               [testng] at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:88)
               [testng] at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
               [testng] at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
               [testng] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
               [testng] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
               [testng] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
               [testng] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
               [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
               [testng] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
               [testng] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
               [testng] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
               [testng] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
               [testng] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
               [testng] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
               [testng] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
               [testng] at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:127)
               [testng] at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
               [testng] at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
               [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
               [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
               [testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               [testng] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
               [testng] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
               [testng] at java.lang.reflect.Method.invoke(Unknown Source)
               [testng] at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
               [testng] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
               [testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
               [testng] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
               [testng] at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
               [testng] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
               [testng] at org.testng.TestRunner.runWorkers(TestRunner.java:678)
               [testng] at org.testng.TestRunner.privateRun(TestRunner.java:624)
               [testng] at org.testng.TestRunner.run(TestRunner.java:495)
               [testng] at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
               [testng] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
               [testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
               [testng] at org.testng.SuiteRunner.run(SuiteRunner.java:190)
               [testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
               [testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
               [testng] at org.testng.TestNG.run(TestNG.java:699)
               [testng] at org.testng.TestNG.privateMain(TestNG.java:824)
               [testng] at org.testng.TestNG.main(TestNG.java:802)
               [testng] Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container AcceptAction: Container jboss.j2ee:jar=test-build,name=AcceptAction,service=EJB3,VMID=e14ef3769ae36e8b:-6feaa85f:11bfcd7a1bb:-8000 + is already registered
               [testng] at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:540)
               [testng] at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:486)
               [testng] at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:468)
               [testng] at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:434)
               [testng] at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:376)
               [testng] at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:145)
               [testng] ... 44 more
               [testng] Caused by: java.lang.IllegalStateException: Container jboss.j2ee:jar=test-build,name=AcceptAction,service=EJB3,VMID=e14ef3769ae36e8b:-6feaa85f:11bfcd7a1bb:-8000 + is already registered
               [testng] at org.jboss.ejb3.Ejb3Registry.register(Ejb3Registry.java:128)
               [testng] at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:536)
               [testng] ... 49 more
               [testng] FAILED CONFIGURATION: @BeforeClass init
               [testng] org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
               [testng] *** CONTEXTS IN ERROR: Name -> Error
               [testng] vfsfile:/C:/jboss-seam-2.0.2.CR1/examples/dvdstore/test-build/ -> java.lang.IllegalStateException: Container jboss.j2ee:jar=test-build,name=AcceptAction,service=EJB3,VMID=e14ef3769ae36e8b:-6feaa85f:11bfcd7a1bb:-8000 + is already registered
               [testng] at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
               [testng] at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
               [testng] at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
               [testng] at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
               [testng] at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
               [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
               [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
               [testng] ... Removed 22 stack frames
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
               [testng] SKIPPED: testRequiredAttributes
               [testng] SKIPPED: testCreateDelete
               [testng] ===============================================
               [testng] DVD Store: Model Unit Tests
               [testng] Tests run: 2, Failures: 0, Skips: 2
               [testng] Configuration Failures: 1, Skips: 5
               [testng] ===============================================
               [testng] FAILED CONFIGURATION: @BeforeClass init
               [testng] java.lang.RuntimeException: Unable to bootstrap:
               [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:147)
               [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
               [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
               [testng] at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
               [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
               [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
               [testng] Caused by: java.lang.IllegalStateException: ServerConfig is already installed.
               [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:525)
               [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
               [testng] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:96)
               [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:141)
               [testng] ... 29 more
               [testng] ... Removed 22 stack frames
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
               [testng] SKIPPED CONFIGURATION: @BeforeClass init
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
               [testng] SKIPPED: testTopProducts
               [testng] SKIPPED: testNoParamSearch
               [testng] ===============================================
               [testng] DVD Store: Store Beans
               [testng] Tests run: 2, Failures: 0, Skips: 2
               [testng] Configuration Failures: 1, Skips: 7
               [testng] ===============================================
               [testng] FAILED CONFIGURATION: @BeforeClass init
               [testng] java.lang.RuntimeException: Unable to bootstrap:
               [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:147)
               [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
               [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
               [testng] at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
               [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
               [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
               [testng] Caused by: java.lang.IllegalStateException: ServerConfig is already installed.
               [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:525)
               [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
               [testng] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:96)
               [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:141)
               [testng] ... 29 more
               [testng] ... Removed 22 stack frames
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
               [testng] SKIPPED: testTopProducts
               [testng] ===============================================
               [testng] DVD Store: Admin Beans
               [testng] Tests run: 1, Failures: 0, Skips: 1
               [testng] Configuration Failures: 1, Skips: 3
               [testng] ===============================================
               [testng] FAILED CONFIGURATION: @BeforeClass init
               [testng] java.lang.RuntimeException: Unable to bootstrap:
               [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:147)
               [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
               [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
               [testng] at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
               [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
               [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
               [testng] Caused by: java.lang.IllegalStateException: ServerConfig is already installed.
               [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:525)
               [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
               [testng] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:96)
               [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:141)
               [testng] ... 29 more
               [testng] ... Removed 22 stack frames
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
               [testng] SKIPPED: showOrders
               [testng] SKIPPED: cancelOrder
               [testng] SKIPPED: addToCart
               [testng] SKIPPED: checkoutNotLoggedIn
               [testng] SKIPPED: selectDvd
               [testng] SKIPPED: checkout
               [testng] ===============================================
               [testng] DVD Store: Order
               [testng] Tests run: 6, Failures: 0, Skips: 6
               [testng] Configuration Failures: 1, Skips: 13
               [testng] ===============================================
               [testng] FAILED CONFIGURATION: @BeforeClass init
               [testng] java.lang.RuntimeException: Unable to bootstrap:
               [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:147)
               [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
               [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
               [testng] at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
               [testng] at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
               [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
               [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
               [testng] Caused by: java.lang.IllegalStateException: ServerConfig is already installed.
               [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:525)
               [testng] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
               [testng] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:96)
               [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:141)
               [testng] ... 29 more
               [testng] ... Removed 22 stack frames
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @BeforeMethod begin
               [testng] SKIPPED CONFIGURATION: @AfterMethod end
               [testng] SKIPPED CONFIGURATION: @AfterClass cleanup
               [testng] SKIPPED: processDefinitionSwitcher
               [testng] SKIPPED: testABC
               [testng] SKIPPED: userChg
               [testng] SKIPPED: managerLogin
               [testng] ===============================================
               [testng] DVD Store: MyTest
               [testng] Tests run: 4, Failures: 0, Skips: 4
               [testng] Configuration Failures: 1, Skips: 9
               [testng] ===============================================
               [testng] ===============================================
               [testng] DVD Store
               [testng] Total tests run: 15, Failures: 0, Skips: 15
               [testng] Configuration Failures: 5, Skips: 37
               [testng] ===============================================
                 [echo] You can increase the logging by editing bootstrap/log4j.xml
            BUILD SUCCESSFUL
            Total time: 32 seconds

            how to solve it?
            help me !thanks a lot!
            • 3. Re: Error creating ejb container TimerServiceDispatcher with TestNG
              Gabriel Goïc Newbie

              I had this once. Two EJBs of mine had the same name but their @Stateless value was different. I then removed this value in order to have it only in Seam's @Name, which produced this error.


              You can't have two EJBs with same class name and nothing mentionned in @Stateless/@Stateful, even with different @Name values. Thought Seam would wrap itself around this behaviour though.

              • 4. Re: Error creating ejb container TimerServiceDispatcher with TestNG
                Jan Gurda Newbie

                I had this problem too. I resolved it by deleting content of test-build directory. Problem was causd by duplication of .class file because I class to another package, but .class file remained in old place.

                • 5. Re: Error creating ejb container TimerServiceDispatcher with TestNG
                  Pasqualino Imbemba Newbie

                  I confirm Jan's tip: I had the same problem, deleting the contents of test-build directory solved the problem. There should be no problem updating the ant script to do that before executing the test(s) actually.