0 Replies Latest reply on Nov 30, 2008 4:48 AM by Marcel Grabher

    TestNG Eclipse Plugin Seam Booking Example

    Marcel Grabher Newbie
      Hi,

      i m trying to get the booking example running in JBoss Developer Studio.
      I tried the Project Example Wizzard. But the download failed.
      I downloaded it by hand and extracted the booking, booking-ear, booking-ejb

      to run the tests i did everything mentioned in here
      http://seamframework.org/Community/RunningTestsWithTestNGExlipsePlugin

      but with no luck

      [Parser] Running:
        C:\jbdevstudio\workspace\booking-ejb\temp-testng-customsuite.xml

      FAILED CONFIGURATION: @BeforeClass init
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}

      jboss.j2ee:jar=classes,name=AuthenticatorAction,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=bookingDatabase **}

      jboss.j2ee:jar=classes,name=BookingListAction,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=bookingDatabase **}

      jboss.j2ee:jar=classes,name=ChangePasswordAction,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=bookingDatabase **}

      jboss.j2ee:jar=classes,name=HotelBookingAction,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=bookingDatabase **}

      jboss.j2ee:jar=classes,name=HotelSearchingAction,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=bookingDatabase **}

      jboss.j2ee:jar=classes,name=RegisterAction,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=bookingDatabase **}

      persistence.units:jar=classes.jar,unitName=bookingDatabase
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.jca:name=bookingDatasource,service=DataSourceBinding **}


      *** CONTEXTS IN ERROR: Name -> Error

      <UNKNOWN> -> ** UNRESOLVED Demands 'jboss.jca:name=bookingDatasource,service=DataSourceBinding **


              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
              at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
              at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
              at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:15)
              at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
              at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
              at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
              at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
      ... Removed 22 stack frames
      SKIPPED CONFIGURATION: @BeforeMethod begin
      SKIPPED CONFIGURATION: @AfterMethod end
      SKIPPED CONFIGURATION: @AfterClass cleanup
      SKIPPED: testChangePassword

      ===============================================
          org.jboss.seam.example.booking.test.ChangePasswordTest
          Tests run: 1, Failures: 0, Skips: 1
          Configuration Failures: 1, Skips: 3
      ===============================================


      ===============================================
      booking-ejb
      Total tests run: 1, Failures: 0, Skips: 1
      Configuration Failures: 1, Skips: 3
      ===============================================

      I would really appreciate help