0 Replies Latest reply on Mar 7, 2008 1:10 AM by Colin Johnston

    seam-gen integration test bootstrapping problem

    Colin Johnston Newbie

      I am trying to run an integration test I have created by extending SeamTest inside of a new project created with seam-gen.  While running the test with ant, I get an exception in @BeforeClass init with the stack trace:



      java.lang.RuntimeException: Could not create Component: org.jboss.seam.security.identity


           at org.jboss.seam.init.Initialization.addComponent(Initialization.java:976)
           at org.jboss.seam.init.Initialization.installComponents(Initialization.java:898)
           at org.jboss.seam.init.Initialization.init(Initialization.java:576)
           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)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
           at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
           at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
           at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
           at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
           at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
           at org.testng.TestRunner.runWorkers(TestRunner.java:689)
           at org.testng.TestRunner.privateRun(TestRunner.java:566)
           at org.testng.TestRunner.run(TestRunner.java:466)
           at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
           at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
           at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
           at org.testng.SuiteRunner.run(SuiteRunner.java:191)
           at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
           at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
           at org.testng.TestNG.run(TestNG.java:701)
           at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
           at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)


      Caused by: java.lang.IllegalArgumentException: no such setter method: org.jboss.seam.security.Identity.securityRules


           at org.jboss.seam.util.Reflections.getSetterMethod(Reflections.java:236)
           at org.jboss.seam.Component.initInitializers(Component.java:467)
              at org.jboss.seam.Component.init(Component.java:264)
           at org.jboss.seam.Component.init(Component.java:217)
           at org.jboss.seam.init.Initialization.addComponent(Initialization.java:961)
           ... 27 more



      java version: build 1.5.0 14-b03
      seam version: jboss-seam-2.0.1.GA


      any thoughts?