2 Replies Latest reply on Jul 24, 2008 10:50 AM by Vikram Chhetry

    Seam ant test problem

    Vikram Chhetry Newbie

      Hi all,
      I am trying to run ant test in my project but I am getting an exception.




         [testng] Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Apparently wrong driver class specified for URL: class: org.hsqldb.jdbcDriver, url:
         [testng]                     jdbc:hsqldb:/home/vikramc/workspace/Poseidon/bootstrap/data/hypersonic/localDB
         [testng]             )


      I have not touched the configuration. Just made a LoginTest.java and LoginTest.xml.


      Can anyone tell me how do I solve this?


      Thanks in advance.


      Vikram

        • 1. Re: Seam ant test problem
          Vikram Chhetry Newbie

          Not able to capture full stack trace.



          Buildfile: build.xml
          
          compiletest:
          
          copytestclasses:
          
          buildtest:
               \[copy\] Copying 1 file to /home/vikramc/workspace/Poseidon/test-build/META-INF
               \[copy\] Copying 1 file to /home/vikramc/workspace/Poseidon/test-build
          
          test:
             \[testng\] \[Parser\] Running:
             \[testng\]   /home/vikramc/workspace/Poseidon/test-build/LoginTest.xml
          
             \[testng\] WARN  \[org.jboss.mx.loading.UnifiedLoaderRepository3\] Tried to add non-URLClassLoader.  Ignored
             \[testng\] WARN  \[org.jboss.aop.deployment.AspectManagerService\] Could not find base-aspects.xml file in the resources
           of sun.misc.Launcher$AppClassLoader@133056f
             \[testng\] INFO  \[org.jboss.aop.deployers.AspectDeployer\] Deploying xml into org.jboss.aop.AspectManager@172290f for s
          un.misc.Launcher$AppClassLoader@133056f
             \[testng\] \[error\] @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool",
             maxSize=30, timeout=10000) vfsfile:/home/vikramc/workspace/Poseidon/bootstrap/deploy/ejb
          3-interceptors-aop.xml
             \[testng\] WARN  \[org.jboss.aop.deployers.AspectDeployer\] Error undeploying xml ejb3-interceptors-aop.xml from org.jbo
          ss.aop.AspectManager@172290f
             \[testng\] java.lang.RuntimeException: Unable to undeploy container: Stateless Bean
          
             [testng]     at org.jboss.aop.AspectXmlLoader.undeployDomain(AspectXmlLoader.java:1071)
             [testng]     at org.jboss.aop.AspectXmlLoader.undeployTopElements(AspectXmlLoader.java:1297)
             [testng]     at org.jboss.aop.AspectXmlLoader.undeployXML(AspectXmlLoader.java:1201)
             [testng]     at org.jboss.aop.deployers.AspectDeployer.undeployXml(AspectDeployer.java:208)
             [testng]     at org.jboss.aop.deployers.AspectDeployer.deployXml(AspectDeployer.java:180)
             [testng]     at org.jboss.aop.deployers.AspectDeployer.deploy(AspectDeployer.java:119)
             [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.DeploymentScanner.start(DeploymentScanner.java:105)
             [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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
             [testng]     at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
             [testng]     at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
             [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:97)
             [testng]     at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
             [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:137)
             [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:47)
             [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:12)
             [testng]     at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1005)
             [testng]     at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:929)
             [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] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to PostClassLoader: name=vfsfile:/home/vikramc/workspace/Poseidon/bootstrap/deploy/ejb3-interceptors-aop.xml state=ClassLoader mode=Manual requiredState=PostClassLoader
             [testng] org.jboss.deployers.spi.DeploymentException: Error deploying xml ejb3-interceptors-aop.xml into org.jboss.aop.AspectManager@172290f
             [testng]     at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
             [testng]     at org.jboss.aop.deployers.AspectDeployer.deployXml(AspectDeployer.java:183)
             [testng]     at org.jboss.aop.deployers.AspectDeployer.deploy(AspectDeployer.java:119)
             [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.DeploymentScanner.start(DeploymentScanner.java:105)
             [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.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:56)
             [testng]     at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:110)
             [testng]     at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
             [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:97)
             [testng]     at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
             [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:137)
             [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:47)
             [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:12)
             [testng]     at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1005)
             [testng]     at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:929)
             [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: java.lang.RuntimeException: @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool",
             [testng]                     maxSize=30, timeout=10000)
             [testng]     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:993)
             [testng]     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:978)
             [testng]     at org.jboss.aop.deployers.AspectDeployer.deployXml(AspectDeployer.java:168)
             [testng]     ... 71 more
             [testng] Caused by: java.lang.RuntimeException: @org.jboss.ejb3.annotation.Pool (value="ThreadlocalPool",
             [testng]                     maxSize=30, timeout=10000)
             [testng]     at org.jboss.aop.introduction.AnnotationIntroduction.<init>(AnnotationIntroduction.java:98)
             [testng]     at org.jboss.aop.introduction.AnnotationIntroduction.createComplexAnnotationIntroduction(AnnotationIntroduction.java:75)
             [testng]     at org.jboss.aop.AspectXmlLoader.loadAnnotationIntroduction(AspectXmlLoader.java:813)
             [testng]     at org.jboss.aop.AspectXmlLoader.deployAnnotationOverride(AspectXmlLoader.java:782)
             [testng]     at org.jboss.aop.AspectXmlLoader.deployTopElements(AspectXmlLoader.java:1159)
             [testng]     at org.jboss.aop.AspectXmlLoader.deployDomain(AspectXmlLoader.java:1053)
             [testng]     at org.jboss.aop.AspectXmlLoader.deployTopElements(AspectXmlLoader.java:1167)
             [testng]     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:987)
             [testng]     ... 73 more
             [testng] Caused by: org.jboss.annotation.factory.ast.ParseException: Encountered "\n" at line 1, column 58.
             [testng] Was expecting:
             [testng]     <IDENTIFIER> ...
             [testng]
             [testng]     at org.jboss.annotation.factory.ast.AnnotationParser.generateParseException(AnnotationParser.java:706)
             [testng]     at org.jboss.annotation.factory.ast.AnnotationParser.jj_consume_token(AnnotationParser.java:583)
             [testng]     at org.jboss.annotation.factory.ast.AnnotationParser.Identifier(AnnotationParser.java:330)
             [testng]     at org.jboss.annotation.factory.ast.AnnotationParser.MemberValuePair(AnnotationParser.java:216)
             [testng]     at org.jboss.annotation.factory.ast.AnnotationParser.MemberValuePairs(AnnotationParser.java:187)
             [testng]     at org.jboss.annotation.factory.ast.AnnotationParser.Annotation(AnnotationParser.java:93)
             [testng]     at org.jboss.annotation.factory.ast.AnnotationParser.Start(AnnotationParser.java:33)
             [testng]     at org.jboss.aop.introduction.AnnotationIntroduction.<init>(AnnotationIntroduction.java:93)
             [testng]     ... 80 more
          
          



          • 2. Re: Seam ant test problem
            Vikram Chhetry Newbie

            I created a new project using seam-gen.


            I created a stateful bean and an interface using seam new-form command


            Than I ran ant test and it worked perfectly.


            After that I created entities using seam generate-model.


            after that I ran ant test again and i got the error submitted above.


            Can anyone help me out on this?


            Any help would be appreciated.


            Thanks and regards


            Vikram