0 Replies Latest reply on Aug 18, 2007 11:49 AM by Casey Boyd

    TestNG Problems Booking Example - Seam 2.0.0 Beta

    Casey Boyd Novice

      Here is my configuration...

      Seam - 2.0.0 Beat 1
      Java - 1.6.0_02
      MySQL - 5
      Eclipse - 3.3
      TestNG - Newest Eclipse Plug-in

      Here is what i did..

      1. Use Seam Gen to create a project
      2. Moved the Booking example code over to this project
      3. Everything builds and the application runs just fine
      4. Try and run test through Eclipse
      5. Got the following error

      13:24:15,913 ERROR [AbstractKernelController] Error installing to Instantiated: name=DeploymentFilter state=Described
      java.lang.IllegalStateException: Class not found: [Ljava.lang.String;

      6. Fixed the error doing the following - http://jira.jboss.com/jira/browse/JBAS-4491
      7. Run Test again. Get this error

      [testng] *** CONTEXTS IN ERROR: Name -> Error
      [testng] jboss.jca:name='jms-ra.rar',service=RARDeployment -> ** NOT FOUND **
      [testng] jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment -> ** NOT FOUND **
      [testng] at org.jboss.embedded.Bootstrap.checkIncomplete(Bootstrap.java:144)
      [testng] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:169)
      [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
      [testng] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
      [testng] at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:919)
      [testng] at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:856)
      [testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
      [testng] ... Removed 22 stack frames

      8. Fixed that error by following - http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115373
      9. Now get this error...

      [testng] ERROR 17-08 11:57:05,296 (DeployerWrapper.java:commitDeploy:177) -Error during deployment: vfsfile:/C:/Documents%20and%20Settings/casey.boyd/workspace/booking/bootstrap/deploy/jboss-local-jdbc.rar
      [testng] org.jboss.deployers.spi.DeploymentException: Error parsing meta data jboss-local-jdbc.rar/META-INF/ra.xml

      10. I am now stuck...

      What am I doing wrong? The app deploys and runs just fine, I just cant run the tests....

      Should I just use a earlier version of Seam? Is my Java version incorrect?
      Should I have not replaced the Signature class?

      Any help would be very appreciated....