2 Replies Latest reply on Oct 19, 2010 6:01 AM by didi1976

    seam test fails when running with @Depends

    simoncigoj

      I have a MDB marked with @Depends making it dependent on my war, when I deploy the application to the server it works ok, but when I try to run my tests the test fails...seams because of some wrong config...any hints to solve this? I guess that the embeded jboss handels this in some diferent way?


      I use:
      seam 2.2.1
      jboss 5.1
      testNG


      the Error when I run the test :



      FAILED CONFIGURATION: @BeforeSuite startSeam
      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=DlqHandler,service=EJB3
       -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.web.deployment:war=convert_it/ **}
      
      jboss.j2ee:jar=classes,name=ImageConverterMDB,service=EJB3
       -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.web.deployment:war=convert_it/ **}
      
      jboss.j2ee:jar=classes,name=VideoConverterMDB,service=EJB3
       -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.web.deployment:war=convert_it/ **}






        • 1. Re: seam test fails when running with @Depends
          didi1976

          Did you find any solution?


          I have ran into the same problem.

          • 2. Re: seam test fails when running with @Depends
            didi1976

            -------------------------------------------------------------------------------
            Test set: TestSuite
            -------------------------------------------------------------------------------
            Tests run: 28, Failures: 1, Errors: 0, Skipped: 27, Time elapsed: 39.915 sec <<< FAILURE!
            startSeam(com.hp.wision.test.curriculum.CurriculumTest)  Time elapsed: 0 sec  <<< FAILURE!
            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=ejb-2.0-SNAPSHOT.jar,name=SraImportTaskListener,service=EJB3
            -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.messaging.destination:service=Queue,name=sraTaskQueue **}
            jboss.j2ee:jar=ejb-2.0-SNAPSHOT.jar,name=SraUpdateTaskListener,service=EJB3
            -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.messaging.destination:service=Queue,name=sraTaskQueue **}
            jboss.j2ee:jar=ejb-2.0-SNAPSHOT.jar,name=journalWriterQueue,service=EJB3
            -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.messaging.destination:service=Queue,name=journalWriterQueue **}
            *** CONTEXTS IN ERROR: Name -> Error
            <UNKNOWN> -> ** UNRESOLVED Demands 'jboss.messaging.destination:service=Queue,name=journalWriterQueue **


            but the queues are created on startup:


            2010-10-19 10:27:10,359 INFO  [org.jboss.jms.server.destination.QueueService] (Main Thread) Queue[queue/sraTask, name=sraTaskQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
            2010-10-19 10:27:10,359 INFO  [org.jboss.jms.server.destination.QueueService] (Main Thread) Queue[queue/journalWriter, name=journalWriterQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000