[jboss-user] [JBoss Seam] - [TestNG] IncompatibleClassChangeError
enzhao
do-not-reply at jboss.com
Fri Jun 22 08:05:34 EDT 2007
I set up the project using seam-gen (1.3.0 Alpha), wrote a very simple test class which extends SeamTest. When I typed "ant test" in a shell, seams that my test class was found. But I got the error output like below and all the tests in the test class were skipped:
java.lang.IncompatibleClassChangeError: Implementing class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.seam.deployment.ComponentScanner.handleItem(ComponentScanner.java:59)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:161)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:157)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:157)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:157)
at org.jboss.seam.deployment.Scanner.handleDirectory(Scanner.java:157)
at org.jboss.seam.deployment.Scanner.scan(Scanner.java:114)
at org.jboss.seam.deployment.ComponentScanner.getClasses(ComponentScanner.java:39)
at org.jboss.seam.init.Initialization.scanForComponents(Initialization.java:616)
at org.jboss.seam.init.Initialization.init(Initialization.java:486)
at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:843)
at org.jboss.seam.mock.SeamTest.init(SeamTest.java:39)
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:597)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:529)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:311)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:149)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:77)
at org.testng.TestRunner.privateRun(TestRunner.java:614)
at org.testng.TestRunner.run(TestRunner.java:505)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:221)
at org.testng.SuiteRunner.run(SuiteRunner.java:147)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:576)
at org.testng.TestNG.runSuitesLocally(TestNG.java:539)
at org.testng.TestNG.run(TestNG.java:316)
at org.testng.TestNG.privateMain(TestNG.java:666)
at org.testng.TestNG.main(TestNG.java:608)
Thanks in advance for any help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056837#4056837
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056837
More information about the jboss-user
mailing list