[jboss-user] [Beginners Corner] - seam test not working

Scheintod do-not-reply at jboss.com
Fri Mar 7 13:45:44 EST 2008


Hi folks,

seam 2 seems to work pretty good. I especially like the seam setup tool since setting up a new project is really easy. Except for one function: seam test

What I'm doing:

seam setup
seam new-action
seam explode   (works find. get the application with one action)
seam test

My Versions:
Seam 2.0.1.GA, JBoss 4.2.2.GA

But seam test doesn't work and quits with tons of exceptions:

test:
   [testng] [Parser] Running:
   [testng]   C:\Java\workspace_europa\SeamTT\test-build\TestCTest.xml
   [testng]
   [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController]
 Error installing to Described: name=BeanDeployer state=PreInstall
   [testng] java.lang.RuntimeException: java.lang.reflect.UndeclaredThrowableExc
eption
   [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.methodHash(ClassInf
oMethodHashing.java:70)
   [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.addDeclaredMethods(
ClassInfoMethodHashing.java:169)
   [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTable
s(ClassInfoMethodHashing.java:182)
   [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTable
s(ClassInfoMethodHashing.java:181)
   [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTable
s(ClassInfoMethodHashing.java:181)
   [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTable
s(ClassInfoMethodHashing.java:181)
   [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTable
s(ClassInfoMethodHashing.java:181)
   [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTable
s(ClassInfoMethodHashing.java:181)
   [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.getMethodMap(ClassI
nfoMethodHashing.java:188)

... and many more which I can't copy very well since it's in a dos box.


If I try to run it from eclipse with build.xml and 'test' target and follow the instructions in the README.TXT (included: hibernate-all.jar, jboss-embedded-all.jar, thirdparty-all.jar, jboss-deployers-client-spi.jar, jboss-deployers-core-spi.jar, jboss-embedded-api.jar, bootstrap) it doesn't work either and gives me this:

   [testng] [Parser] Running:
   [testng]   C:\Java\workspace_europa\SeamTestTest\test-build\TestActionTest.xml
   [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)

... and again much more.


Help would be much apreciated.

Thanx,

Scheintod


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134948#4134948

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134948



More information about the jboss-user mailing list