[jboss-user] [JBoss Seam] - Re: Writing SeamTests with Seam 2.0.0. CR2 - What's Changed?
neilac333
do-not-reply at jboss.com
Wed Oct 31 15:47:22 EDT 2007
I have studied the forum, yet I am having trouble simply getting the most basic test to work--a single TestNG unit test extending SeamTest with a single method with Assert.assertTrue(true). That's it. No FacesContext simulation or anything remotely complex. I haven't seen anything in the documentation or in the Yuan book that might help.
Can you please provide just a basic tutorial on the configuration necessary to make SeamTest work? JAR files, configuration files like components.xml and their contents and where they should be, any other kinds of special settings, etc.
It is really frustrating to be having so much trouble with something so basic.
Thanks.
Here is the stack trace of the error:
| java.lang.RuntimeException: Unable to create a KernelInitializer based on the specified KernelConfig
| at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:156)
| at org.jboss.kernel.KernelFactory.assembleNewKernel(KernelFactory.java:99)
| at org.jboss.kernel.KernelFactory.newInstance(KernelFactory.java:67)
| at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.bootstrap(AbstractBootstrap.java:120)
| at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
| at org.jboss.embedded.Bootstrap.createKernel(Bootstrap.java:131)
| at org.jboss.embedded.Bootstrap.getInstance(Bootstrap.java:76)
| at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:10)
| at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:967)
| at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:892)
| at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
| at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
| at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
| at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
| at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
| at org.testng.TestRunner.runWorkers(TestRunner.java:678)
| at org.testng.TestRunner.privateRun(TestRunner.java:624)
| at org.testng.TestRunner.run(TestRunner.java:495)
| at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
| at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
| at org.testng.SuiteRunner.run(SuiteRunner.java:190)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
| at org.testng.TestNG.run(TestNG.java:699)
| at org.testng.TestNG.privateMain(TestNG.java:824)
| at org.testng.TestNG.main(TestNG.java:802)
| Caused by: java.lang.AbstractMethodError: org.jboss.aop.microcontainer.integration.AOPJoinpointFactoryBuilder.createJoinpointFactory(Lorg/jboss/reflect/spi/ClassInfo;Lorg/jboss/repository/spi/MetaDataContext;)Lorg/jboss/joinpoint/spi/JoinpointFactory;
| at org.jboss.classadapter.plugins.BasicClassAdapter.getJoinpointFactory(BasicClassAdapter.java:85)
| at org.jboss.beans.info.plugins.AbstractBeanInfo.getJoinpointFactory(AbstractBeanInfo.java:140)
| at org.jboss.kernel.plugins.config.Configurator.findConstructor(Configurator.java:210)
| at org.jboss.kernel.plugins.config.Configurator.getConstructorJoinPoint(Configurator.java:194)
| at org.jboss.kernel.plugins.config.Configurator.instantiate(Configurator.java:92)
| at org.jboss.kernel.plugins.config.Configurator.instantiateAndConfigure(Configurator.java:68)
| at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.getImplementation(PropertyKernelConfig.java:149)
| at org.jboss.kernel.plugins.config.property.PropertyKernelConfig.createKernelInitializer(PropertyKernelConfig.java:117)
| at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:150)
| ... 32 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100824#4100824
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100824
More information about the jboss-user
mailing list