4 Replies Latest reply on Jun 18, 2012 10:49 AM by davidmiller

    TestNG failure for SeamTest

    davidmiller Newbie

      Hi,


      I have inherited an Seam test project that wasn't set up properly, and I'm trying to get it to run a simple SeamTest.  But fails with the following error:


      [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfsfile:/C:/Users/dmiller/workspaces/workspaceDevStudio4/CMS-ear/test-build/ state=PostClassLoader mode=Manual requiredState=Real
         [testng] org.jboss.deployers.spi.DeploymentException: Error deploying test-build: Error creating ejb container Properties: Bean Class org.esi.cms.session.Properties has no local, webservice, or remote interfaces defined and does not implement at least one business interface: Properties
         [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.AbstractSeamTest.startJbossEmbeddedIfNecessary(AbstractSeamTest.java:1024)
         [testng]      at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:915)
         [testng]      at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58)
         [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:607)
         [testng]      at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:417)
         [testng]      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:154)
         [testng]      at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:88)
         [testng]      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:284)
         [testng]      at org.testng.SuiteRunner.run(SuiteRunner.java:204)
         [testng]      at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:877)
         [testng]      at org.testng.TestNG.runSuitesLocally(TestNG.java:842)
         [testng]      at org.testng.TestNG.run(TestNG.java:751)
         [testng]      at org.testng.TestNG.privateMain(TestNG.java:914)
         [testng]      at org.testng.TestNG.main(TestNG.java:887)
         [testng] Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container Properties: Bean Class org.esi.cms.session.Properties has no local, webservice, or remote interfaces defined and does not implement at least one business interface: Properties
         [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]      ... 36 more
         [testng] Caused by: java.lang.RuntimeException: Bean Class org.esi.cms.session.Properties has no local, webservice, or remote interfaces defined and does not implement at least one business interface: Properties
         [testng]      at org.jboss.ejb3.ProxyFactoryHelper.getLocalAndBusinessLocalInterfaces(ProxyFactoryHelper.java:249)
         [testng]      at org.jboss.ejb3.ProxyFactoryHelper.getLocalBusinessInterfaces(ProxyFactoryHelper.java:546)
         [testng]      at org.jboss.ejb3.session.SessionContainer.resolveBusinessInterfaces(SessionContainer.java:199)
         [testng]      at org.jboss.ejb3.EJBContainer.instantiated(EJBContainer.java:1277)
         [testng]      at org.jboss.ejb3.session.SessionContainer.instantiated(SessionContainer.java:189)
         [testng]      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:534)
         [testng]      ... 41 more
         [testng] FAILED CONFIGURATION: @BeforeSuite startSeam


      And the Simple SeamTest is:


      public class RunSeamTest extends SeamTest{
           @Test
           public void testRunSeamTest() throws Exception {
                new ComponentTest() {
                     @Override
                     protected void testComponents() throws Exception {
                     }
                }.run();
           }
      }



      I'm propably missing something really obvious, so any help would be great.


      thanks,


      Dave