12 Replies Latest reply on Jun 13, 2008 3:47 PM by Victor Outtes

    SeamTest don't works

    Victor Outtes Newbie

      Hi all, I am with a problem with SeamTest. I'm using Seam 2.0.2-GA, JBoss 4.2.2 GA, Java 5 and TestNG to the unit tests.


      The exception raised when the tests are executed is:



      [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Described: name=BeanDeployer state=PreInstall
         [testng] java.lang.RuntimeException: java.lang.reflect.UndeclaredThrowableException
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.methodHash(ClassInfoMethodHashing.java:70)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.addDeclaredMethods(ClassInfoMethodHashing.java:169)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:182)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.getMethodMap(ClassInfoMethodHashing.java:188)
         [testng]     at org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getMethodAnnotationDependencies(AOPDependencyBuilder.java:197)
         [testng]     at org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getAnnotationDependencies(AOPDependencyBuilder.java:152)
         [testng]     at org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getDependencies(AOPDependencyBuilder.java:130)
         [testng]     at org.jboss.classadapter.plugins.BasicClassAdapter.getDependencies(BasicClassAdapter.java:80)
         [testng]     at org.jboss.beans.info.plugins.AbstractBeanInfo.getDependencies(AbstractBeanInfo.java:211)
         [testng]     at org.jboss.kernel.plugins.dependency.DescribeAction.installActionInternal(DescribeAction.java:53)
         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
         [testng]     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
         [testng]     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
         [testng]     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
         [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.install(AbstractController.java:574)
         [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
         [testng]     at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:309)
         [testng]     at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:279)
         [testng]     at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
         [testng]     at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
         [testng]     at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:130)
         [testng]     at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:142)
         [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]     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: java.lang.reflect.UndeclaredThrowableException
         [testng]     at org.jboss.reflect.plugins.ArrayInfoImpl.getType(ArrayInfoImpl.java:103)
         [testng]     at org.jboss.reflect.plugins.ClassInfoImpl.isArray(ClassInfoImpl.java:495)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.getTypeString(ClassInfoMethodHashing.java:149)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.methodHash(ClassInfoMethodHashing.java:53)
         [testng]     ... 61 more
         [testng] Caused by: java.lang.ClassNotFoundException: [Ljava.lang.Class;
         [testng]     at java.net.URLClassLoader$1.run(Unknown Source)
         [testng]     at java.security.AccessController.doPrivileged(Native Method)
         [testng]     at java.net.URLClassLoader.findClass(Unknown Source)
         [testng]     at java.lang.ClassLoader.loadClass(Unknown Source)
         [testng]     at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         [testng]     at java.lang.ClassLoader.loadClass(Unknown Source)
         [testng]     at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.resolveComplexTypeInfo(IntrospectionTypeInfoFactoryImpl.java:367)
         [testng]     at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:344)
         [testng]     at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory.getTypeInfo(IntrospectionTypeInfoFactory.java:54)
         [testng]     at org.jboss.reflect.plugins.ArrayInfoImpl.getType(ArrayInfoImpl.java:99)
         [testng]     ... 64 more




      My ant classpath is populated with:


      <path id="test.path">
                      <path path="${tests.result.dir}" />
                      <pathelement location="${lib.dir}/tests/jboss-embedded-all.jar" />
                      <pathelement location="${lib.dir}/tests/hibernate-all.jar" />
                      <pathelement location="${lib.dir}/tests/thirdparty-all.jar" />
                      <path refid="build.classpath" />
                      <path path="${bootstrap.dir}" />
                      <path refid="emma" />
              </path>
      



      The order of classpath is exactly as the Seam's build.xml. The build.classpath contains the others requireds jars:


      -jboss-deployers-client-spi.jar


      -jboss-deployers-core-spi.jar


      My bootstrap directory is the same of the Seam.


      My test class is very simple:


      import org.jboss.seam.mock.SeamTest;
      import org.testng.annotations.Test;
      
      public class EValidationTest extends SeamTest{
          @Test
          public void wrongParametersTest() throws Exception {
              System.out.println("AUAU");
          }
      
          @Test
          public void correctParametersTest() throws Exception {
              System.out.println("AUAU");
          }
      }



      And raises the exceptions related in this post. When I remove the SeamTest inheritance the test works fine.


      Please, if any can help, I will appreciate. And sorry for poor english.

        • 1. Re: SeamTest don't works
          Adrien Orsier Newbie

          Update your /bootstrap with the last Seam version and get sure you're running in 1.5 and not in 1.6, because that looks like one of those (probably the /bootstrap directory not updated I think).

          • 2. Re: SeamTest don't works
            Victor Outtes Newbie

            Thanks for reply. I made a deeper analysis and, although all my project was configured with java 5, the build.xml was running with java 6 and I had not noticed. Thanks for help.

            • 3. Re: SeamTest don't works
              Alessandro Bezerra Moreira Newbie

              Could you report how do you verify and correty your project and build. It's my error and I had hard looked for helping.


              I'll apreciate your helping!!




              test:
                 [testng] [TestNGAntTask] TESTNG PASSED @/tmp/testng64271 WHICH CONTAINS:
                 [testng] [TestNGAntTask] -d
                 [testng] [TestNGAntTask] /home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/build/testout
                 [testng] [TestNGAntTask] -suitename
                 [testng] [TestNGAntTask] Ant suite
                 [testng] [TestNGAntTask] -testname
                 [testng] [TestNGAntTask] Ant test
                 [testng] [TestNGAntTask] /home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/test/testng.xml
                 [testng] [Parser] Running:
                 [testng]   /home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/test/testng.xml
                 [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfsfile:/home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/build/test/ state=PostClassLoader mode=Manual requiredState=Real
                 [testng] org.jboss.deployers.spi.DeploymentException: Error deploying test: Interceptor class not found: 
                 [testng]         org.jboss.seam.ejb.SeamInterceptor
                 [testng]        in class loader sun.misc.Launcher$AppClassLoader@12498b5
                 [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(NativeMethodAccessorImpl.java:39)
                 [testng]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 [testng]     at java.lang.reflect.Method.invoke(Method.java:585)
                 [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: java.lang.RuntimeException: Interceptor class not found: 
                 [testng]         org.jboss.seam.ejb.SeamInterceptor
                 [testng]        in class loader sun.misc.Launcher$AppClassLoader@12498b5
                 [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.loadClass(InterceptorInfoRepository.java:532)
                 [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.getOrInitialiseFromAnnotations(InterceptorInfoRepository.java:438)
                 [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialiseDefaultInterceptors(InterceptorInfoRepository.java:428)
                 [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialise(InterceptorInfoRepository.java:114)
                 [testng]     at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.<init>(Ejb3HandlerFactory.java:48)
                 [testng]     at org.jboss.ejb3.Ejb3HandlerFactory.getInstance(Ejb3HandlerFactory.java:83)
                 [testng]     at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:432)
                 [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.ClassNotFoundException: 
                 [testng]         org.jboss.seam.ejb.SeamInterceptor
                 [testng]       
                 [testng]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
                 [testng]     at java.security.AccessController.doPrivileged(Native Method)
                 [testng]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                 [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                 [testng]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
                 [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                 [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.loadClass(InterceptorInfoRepository.java:528)
                 [testng]     ... 52 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:/home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/build/test/ -> java.lang.ClassNotFoundException: 
                 [testng]         org.jboss.seam.ejb.SeamInterceptor
                 [testng]       
                 [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: unitTestSayHello
                 [testng] SKIPPED: testSayHello
                 [testng] ===============================================
                 [testng]     HelloWorld
                 [testng]     Tests run: 2, Failures: 0, Skips: 2
                 [testng]     Configuration Failures: 1, Skips: 5
                 [testng] ===============================================
                 [testng] ===============================================
                 [testng] HelloWorld
                 [testng] Total tests run: 2, Failures: 0, Skips: 2
                 [testng] Configuration Failures: 1, Skips: 5
                 [testng] ===============================================
              BUILD SUCCESSFUL
              Total time: 14 seconds


              • 4. Re: SeamTest don't works
                Victor Outtes Newbie

                First: observe if your classpath is correct (jboss-embedded-all.jar, hibernate-all.jar, thirdparty-all.jar, boss-embedded-api.jar, jboss-deployers-client-spi.jar, jboss-deployers-core-spi.jar and bootstrap must be in first order)


                Second: observe ALL your compilation and runtime JVM. All them must be Java 5.


                In my case I had not noticed that my build.xml was running on Java 6. To see this (in eclipse), go to build.xml / right click / debug as / the last Ant Build option / In the window, go to tab JRE and select the correct JRE (5).


                I hope that it helps.

                • 5. Re: SeamTest don't works
                  Alessandro Bezerra Moreira Newbie

                  Could you report how do you verify and correty your project and build. It's my error and I had hard looked for helping.


                  I'll apreciate your helping!!



                  test:
                     [testng] [TestNGAntTask] TESTNG PASSED @/tmp/testng64271 WHICH CONTAINS:
                     [testng] [TestNGAntTask] -d
                     [testng] [TestNGAntTask] /home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/build/testout
                     [testng] [TestNGAntTask] -suitename
                     [testng] [TestNGAntTask] Ant suite
                     [testng] [TestNGAntTask] -testname
                     [testng] [TestNGAntTask] Ant test
                     [testng] [TestNGAntTask] /home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/test/testng.xml
                     [testng] [Parser] Running:
                     [testng]   /home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/test/testng.xml
                     [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfsfile:/home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/build/test/ state=PostClassLoader mode=Manual requiredState=Real
                     [testng] org.jboss.deployers.spi.DeploymentException: Error deploying test: Interceptor class not found: 
                     [testng]         org.jboss.seam.ejb.SeamInterceptor
                     [testng]        in class loader sun.misc.Launcher$AppClassLoader@12498b5
                     [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(NativeMethodAccessorImpl.java:39)
                     [testng]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     [testng]     at java.lang.reflect.Method.invoke(Method.java:585)
                     [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: java.lang.RuntimeException: Interceptor class not found: 
                     [testng]         org.jboss.seam.ejb.SeamInterceptor
                     [testng]        in class loader sun.misc.Launcher$AppClassLoader@12498b5
                     [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.loadClass(InterceptorInfoRepository.java:532)
                     [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.getOrInitialiseFromAnnotations(InterceptorInfoRepository.java:438)
                     [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialiseDefaultInterceptors(InterceptorInfoRepository.java:428)
                     [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialise(InterceptorInfoRepository.java:114)
                     [testng]     at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.<init>(Ejb3HandlerFactory.java:48)
                     [testng]     at org.jboss.ejb3.Ejb3HandlerFactory.getInstance(Ejb3HandlerFactory.java:83)
                     [testng]     at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:432)
                     [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.ClassNotFoundException: 
                     [testng]         org.jboss.seam.ejb.SeamInterceptor
                     [testng]       
                     [testng]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
                     [testng]     at java.security.AccessController.doPrivileged(Native Method)
                     [testng]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                     [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                     [testng]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
                     [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                     [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.loadClass(InterceptorInfoRepository.java:528)
                     [testng]     ... 52 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:/home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/build/test/ -> java.lang.ClassNotFoundException: 
                     [testng]         org.jboss.seam.ejb.SeamInterceptor
                     [testng]       
                     [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: unitTestSayHello
                     [testng] SKIPPED: testSayHello
                     [testng] ===============================================
                     [testng]     HelloWorld
                     [testng]     Tests run: 2, Failures: 0, Skips: 2
                     [testng]     Configuration Failures: 1, Skips: 5
                     [testng] ===============================================
                     [testng] ===============================================
                     [testng] HelloWorld
                     [testng] Total tests run: 2, Failures: 0, Skips: 2
                     [testng] Configuration Failures: 1, Skips: 5
                     [testng] ===============================================
                  BUILD SUCCESSFUL
                  Total time: 14 seconds
                  
                  


                  • 6. Re: SeamTest don't works
                    Alessandro Bezerra Moreira Newbie

                    This is my testng classpath.




                    <path id="test.classpath">
                        <path path="${build.test}" />
                         <fileset dir="${testlib}">
                            <include name="*-all.jar" />
                              </fileset>
                              <!-- Horrible hack around jbossembedded -->
                              <fileset dir="${lib}">
                              <!-- Don't include seam-ui or interop modules -->
                                   <exclude name="jboss-seam-ui.jar" />
                                   <exclude name="interop/**/*" />
                                   <exclude name="gen/**/*" />
                              </fileset>
                              <path path="${eejb.conf.dir}" />
                         </path>



                    I set java compiler to 5.0 of Project and set eclipse Java installed JRE to 1.5. And more, as you oriented I'd check ant by ant configuration and launch and its classpath and jre is 1.5.


                    Any Thing more ??? :'(


                    • 7. Re: SeamTest don't works
                      Victor Outtes Newbie

                      Notice that the order of jars in your classpath is vital. I don't know if your classpath is correct, but don't seem! Your bootstrap directory appear in this classpath?



                      Look if your bootstrap fold is the same as Seam too.


                      I suggest you try the most basic first: Anything like this...


                      <path id="test.path">
                                      <path path="${tests.result.dir}" /> <!-- the fold with compiled test class -->
                                      <pathelement location="${lib.dir}/tests/jboss-embedded-all.jar" />
                                      <pathelement location="${lib.dir}/tests/hibernate-all.jar" />
                                      <pathelement location="${lib.dir}/tests/thirdparty-all.jar" />
                                      <pathelement location="${lib.dir}/tests/jboss-embedded-api.jar" />
                                      <pathelement location="${lib.dir}/tests/jboss-deployers-client-spi.jar" />
                                      <pathelement location="${lib.dir}/tests/jboss-deployers-core-spi.jar" />
                                      <path refid="build.classpath" />
                                      <path path="${bootstrap.dir}" />
                      </path>


                      • 8. Re: SeamTest don't works
                        Alessandro Bezerra Moreira Newbie

                        Victor, I´m not sure what dependency you are talking about at


                        <path refid="build.classpath" />



                        . But I changed my path to:


                        <path id="test.classpath">
                                <path path="${build.test}" />
                                <fileset dir="${testlib}">
                                        <include name="jboss-embedded-all.jar" />
                                        <include name="hibernate-all.jar" />
                                        <include name="thirdparty-all.jar" />
                                        </fileset>
                                <fileset dir="${lib}">
                                        <include name="jboss-embedded-api.jar"/>
                                        <include name="jboss-deployers-client-spi.jar"/>
                                        <include name="jboss-deployers-core-spi.jar"/>
                                </fileset>
                                <!-- build.classpath -->
                                <fileset dir="${lib}">
                                        <include name="jboss-seam.jar"/>
                                        <include name="jsf-api.jar"/>
                                        <include name="el-api.jar"/>
                                </fileset>
                                <path path="${bootstrap.dir}" />
                        </path>
                        



                        In fileset of build.classpath, I'm trying to set others dependency. First of all request was:


                        Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/seam/mock/SeamTest



                        . So I set


                        <include name="jboss-seam.jar"/>



                        . After was:


                        Exception in thread "main" java.lang.NoClassDefFoundError: javax/faces/application/Application



                        . So I set


                        <include name="jsf-api.jar"/>



                        . And:


                        Exception in thread "main" java.lang.NoClassDefFoundError: [Ljavax/el/ELResolver;



                        I set


                        <include name="el-api.jar"/>



                        .


                        At this point the error happens.



                        test:
                           [testng] [Parser] Running:
                           [testng]   /home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/test/testng.xml
                           [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfsfile:/home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/build/test/ state=PostClassLoader mode=Manual requiredState=Real
                           [testng] org.jboss.deployers.spi.DeploymentException: Error deploying test: Interceptor class not found: 
                           [testng]         org.jboss.seam.ejb.SeamInterceptor
                           [testng]        in class loader sun.misc.Launcher$AppClassLoader@12498b5
                           [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(NativeMethodAccessorImpl.java:39)
                           [testng]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           [testng]     at java.lang.reflect.Method.invoke(Method.java:585)
                           [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: java.lang.RuntimeException: Interceptor class not found: 
                           [testng]         org.jboss.seam.ejb.SeamInterceptor
                           [testng]        in class loader sun.misc.Launcher$AppClassLoader@12498b5
                           [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.loadClass(InterceptorInfoRepository.java:532)
                           [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.getOrInitialiseFromAnnotations(InterceptorInfoRepository.java:438)
                           [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialiseDefaultInterceptors(InterceptorInfoRepository.java:428)
                           [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialise(InterceptorInfoRepository.java:114)
                           [testng]     at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.<init>(Ejb3HandlerFactory.java:48)
                           [testng]     at org.jboss.ejb3.Ejb3HandlerFactory.getInstance(Ejb3HandlerFactory.java:83)
                           [testng]     at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:432)
                           [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.ClassNotFoundException: 
                           [testng]         org.jboss.seam.ejb.SeamInterceptor
                           [testng]       
                           [testng]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
                           [testng]     at java.security.AccessController.doPrivileged(Native Method)
                           [testng]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
                           [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
                           [testng]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
                           [testng]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                           [testng]     at org.jboss.ejb3.interceptor.InterceptorInfoRepository.loadClass(InterceptorInfoRepository.java:528)
                           [testng]     ... 52 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:/home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/build/test/ -> java.lang.ClassNotFoundException: 
                           [testng]         org.jboss.seam.ejb.SeamInterceptor
                           [testng]       
                           [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: unitTestSayHello
                           [testng] SKIPPED: testSayHello
                           [testng] ===============================================
                           [testng]     HelloWorld
                           [testng]     Tests run: 2, Failures: 0, Skips: 2
                           [testng]     Configuration Failures: 1, Skips: 5
                           [testng] ===============================================
                           [testng] ===============================================
                           [testng] HelloWorld
                           [testng] Total tests run: 2, Failures: 0, Skips: 2
                           [testng] Configuration Failures: 1, Skips: 5
                           [testng] ===============================================
                        


                        • 9. Re: SeamTest don't works
                          Victor Outtes Newbie

                          What is your Seam version?


                          Update to Seam 2.0.2 GA. I found this org.jboss.seam.ejb.SeamInterceptor in it.

                          • 10. Re: SeamTest don't works
                            Alessandro Bezerra Moreira Newbie

                            My version is 2.0.2.SP1.


                            What interesting is I can run the test of Seam Examples with success.

                            • 11. Re: SeamTest don't works
                              Alessandro Bezerra Moreira Newbie

                              Victor,


                              I fount out watch was making error. I removed de lib:
                              jboss-embedded-api.jar from de classpath.


                              But a new error happened:



                              test:
                                 [testng] [Parser] Running:
                                 [testng]   /home/alessandro.moreira/workspaces/seam/HelloWorldSeamPrentice/test/testng.xml
                                 [testng] FATAL [org.hibernate.connection.DatasourceConnectionProvider] Could not find datasource: java:/DefaultDS
                                 [testng] java.lang.RuntimeException: PROVIDER_URL not provided in jndi.properties.  Automatic discovery not implemented yet.
                                 [testng]      at org.jboss.naming.JBossRemotingContextFactory.getInitialContext(JBossRemotingContextFactory.java:158)
                                 [testng]      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
                                 [testng]      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
                                 [testng]      at javax.naming.InitialContext.init(InitialContext.java:223)
                                 [testng]      at javax.naming.InitialContext.<init>(InitialContext.java:175)
                                 [testng]      at org.hibernate.util.NamingHelper.getInitialContext(NamingHelper.java:28)
                                 [testng]      at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
                                 [testng]      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
                                 [testng]      at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
                                 [testng]      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62)
                                 [testng]      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
                                 [testng]      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
                                 [testng]      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:918)
                                 [testng]      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:656)
                                 [testng]      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121)
                                 [testng]      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
                                 [testng]      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
                                 [testng]      at HelloWorldTest.unitTestSayHello(HelloWorldTest.java:53)
                                 [testng]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                 [testng]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                 [testng]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                 [testng]      at java.lang.reflect.Method.invoke(Method.java:585)
                                 [testng]      at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
                                 [testng]      at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
                                 [testng]      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
                                 [testng]      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
                                 [testng]      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
                                 [testng]      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
                                 [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] ERROR [org.jboss.seam.jsf.SeamPhaseListener] uncaught exception
                                 [testng] java.lang.RuntimeException: PROVIDER_URL not provided in jndi.properties.  Automatic discovery not implemented yet.



                              • 12. Re: SeamTest don't works
                                Victor Outtes Newbie

                                This erro occurs because you remove the jboss-embedded-api.jar :)


                                It is necessary to application.


                                Your last error is very strange. Compare your project with any project generated by Seam-Gen.