0 Replies Latest reply on Jul 31, 2008 8:31 PM by Tim Nguyen

    testNg Failed: NoClassDefFoundError: AjaxActionComponent

    Tim Nguyen Newbie

      Could somebody plsss help? I had this problem for a couple of days and couldn't figure out what caused it. I run a simple testNg on my environment (Seam 2.02, jvm 1.5, richface 3.2.0) to do integration test on the login. But here is the error:


      FAILED CONFIGURATION: @BeforeClass init
      java.lang.RuntimeException: Could not create Component: searchBean
              at org.jboss.seam.init.Initialization.addComponent(Initialization.java:989)
              at org.jboss.seam.init.Initialization.installComponents(Initialization.java:911)
              at org.jboss.seam.init.Initialization.init(Initialization.java:589)
              at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:939)
              at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
              at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
      Caused by: java.lang.NoClassDefFoundError: org/ajax4jsf/component/AjaxActionComponent
              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$100(URLClassLoader.java:56)
      ....


      Thanks in advance