1 Reply Latest reply on Jul 9, 2012 10:01 AM by Jason Porter

    testng issue with ant

    prati bha Newbie

      Hi Team i am trying to run test using ant clean test , for some reasoon its giving below error

       

        [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=persistence.units:jar=test-build.jar,unitN

      ame=HSample state=Create

         [testng] java.lang.AssertionError

         [testng]     at org.hibernate.cfg.AnnotationBinder.getElementsToProcess(AnnotationBinder.java:817)

         [testng]     at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:667)

         [testng]     at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:546)

         [testng]     at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:291)

         [testng]     at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1148)

         [testng]     at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1226)

         [testng]     at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:173)

         [testng]     at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854)

         [testng]     at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)

         [testng]     at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)

         [testng]     at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:259)

         [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:597)

         [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$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:21

      4)

         [testng]     at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:45)

         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:108)

         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:69)

         [testng]     at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)

         [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)