7 Replies Latest reply on Jun 18, 2008 4:31 AM by Srinivas Chamarthi

    Testng: Integration Test Cases are failing

    Srinivas Chamarthi Newbie

      Hi,


      I am running integration tests in Eclipse using testng plugin.


      I have added the following entries to my test classpath



      UMC/classes/action
      UMC/classes/model
      UMC/classes/common
      UMC/lib/test/*.jar



      But I am getting lot of exceptions. It looks like some major configuration is missing for which I ran out of patience finding solution in forums and googling.


      Could any 1 please help me to run the tests. Appreciate your help in advance.



      [Parser] Running:
        D:\projects\UMC\temp-testng-customsuite.xml
      
      WARN  [org.jboss.mx.loading.UnifiedLoaderRepository3] Tried to add non-URLClassLoader.  Ignored
      INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] Setting up property manager MBean and JMX layer
      WARN  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. Using -3f57373e:6bd:48562ec5:0
      INFO  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 1725
      INFO  [com.arjuna.ats.arjuna.logging.arjLogger] TransactionStatusManagerItem - host: 192.168.200.194 port: 1725
      INFO  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] - TransactionStatusManager started on port 1725 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
      INFO  [com.arjuna.ats.tsmx.logging.tsmxLogger] Registering mbean for module 'arjuna'
      INFO  [com.arjuna.ats.tsmx.logging.tsmxLogger] Initialising JMX agent com.arjuna.ats.internal.jbossatx.agent.LocalJBossAgentImpl
      INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] Starting recovery manager
      INFO  [com.arjuna.ats.arjuna.logging.arjLogger] 
        --- Start RecoveryActivators 
      INFO  [com.arjuna.ats.arjuna.logging.arjLoggerI18N] [com.arjuna.ats.internal.arjuna.recovery.ready] RecoveryManagerImple is ready on port 1,726
      INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] Recovery manager started
      INFO  [com.arjuna.ats.jbossatx.jta.TransactionManagerService] Binding TransactionManager JNDI Reference
      INFO  [org.jboss.resource.deployers.RARDeployment] Required license terms exist, view vfsfile:/D:/projects/UMC/bootstrap/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
      INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      INFO  [org.jboss.resource.deployers.RARDeployment] Required license terms exist, view vfsfile:/D:/projects/UMC/bootstrap/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
      INFO  [org.jboss.resource.deployers.RARDeployment] Required license terms exist, view vfsfile:/D:/projects/UMC/bootstrap/deploy/jms-ra.rar/META-INF/ra.xml
      INFO  [org.jboss.jms.server.ServerPeer] ServerPeer[0] creating server peer with ID 0
      INFO  [org.jboss.jms.server.ServerPeer] JBoss Messaging 1.2.0.sp1 server [0] started
      INFO  [org.jboss.jms.server.destination.TopicService] Topic[/topic/TopicWithOwnDLQAndExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      INFO  [org.jboss.jms.server.destination.QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      INFO  [org.jboss.jms.server.destination.QueueService] Queue[/queue/PrivateExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      INFO  [org.jboss.jms.server.destination.QueueService] Queue[/queue/QueueWithOwnRedeliveryDelay] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      INFO  [org.jboss.jms.server.destination.QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] Connector bisocket://192.168.200.194:4457 has leasing enabled, lease period 10000 milliseconds
      INFO  [org.jboss.jms.server.connectionfactory.ConnectionFactory] [/ConnectionFactory, /XAConnectionFactory, java:/ConnectionFactory, java:/XAConnectionFactory] started
      INFO  [org.jboss.jms.server.destination.QueueService] Queue[/queue/PrivateDLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      INFO  [org.jboss.jms.server.destination.TopicService] Topic[/topic/TopicWithOwnRedeliveryDelay] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      INFO  [org.jboss.jms.server.destination.QueueService] Queue[/queue/QueueWithOwnDLQAndExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
      INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      INFO  [org.jboss.ejb3.MCKernelAbstraction] installing bean: jboss.j2ee:jar=classes,name=AdvertisementAction,service=EJB3 with dependencies:
      INFO  [org.jboss.ejb3.MCKernelAbstraction]      persistence.units:unitName=UMC
      INFO  [org.jboss.ejb3.MCKernelAbstraction] installing bean: jboss.j2ee:jar=classes,name=ApplicationManagerAction,service=EJB3 with dependencies:
      INFO  [org.jboss.ejb3.MCKernelAbstraction]      persistence.units:unitName=UMC
      INFO  [org.jboss.ejb3.MCKernelAbstraction] installing bean: jboss.j2ee:jar=classes,name=Authenticator,service=EJB3 with dependencies:
      INFO  [org.jboss.ejb3.MCKernelAbstraction]      persistence.units:unitName=UMC
      INFO  [org.jboss.ejb3.MCKernelAbstraction] installing bean: jboss.j2ee:jar=classes,name=IssueManagerAction,service=EJB3 with dependencies:
      INFO  [org.jboss.ejb3.MCKernelAbstraction]      persistence.units:unitName=UMC
      INFO  [org.jboss.ejb3.MCKernelAbstraction] installing bean: jboss.j2ee:jar=classes,name=UserManagerAction,service=EJB3 with dependencies:
      INFO  [org.jboss.ejb3.MCKernelAbstraction]      persistence.units:unitName=UMC
      INFO  [org.jboss.ejb3.MCKernelAbstraction] installing bean: jboss.j2ee:jar=classes,name=SearchMessagesAction,service=EJB3 with dependencies:
      INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: com.gtm.umc.model.search.SearchMessagesAction ejbName: SearchMessagesAction
      WARN  [org.jboss.ejb3.timerservice.jboss.JBossTimerServiceFactory] TIMER SERVICE IS NOT INSTALLED
      INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=GlueDatasource' to JNDI name 'java:GlueDatasource'
      INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=UMCDatasource' to JNDI name 'java:UMCDatasource'
      FAILED CONFIGURATION: @BeforeClass init
      org.jboss.deployers.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=AdvertisementAction,service=EJB3
       -> <UNKNOWN>{Described:** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem@11f2041{name=jboss.j2ee:jar=classes,name=AdvertisementAction,service=EJB3 dependsOn=null whenRequired=Described resolved=false demand=persistence.units:unitName=UMC} **}
      
      jboss.j2ee:jar=classes,name=ApplicationManagerAction,service=EJB3
       -> <UNKNOWN>{Described:** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem@10e468f{name=jboss.j2ee:jar=classes,name=ApplicationManagerAction,service=EJB3 dependsOn=null whenRequired=Described resolved=false demand=persistence.units:unitName=UMC} **}
      
      jboss.j2ee:jar=classes,name=Authenticator,service=EJB3
       -> <UNKNOWN>{Described:** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem@1cc3baa{name=jboss.j2ee:jar=classes,name=Authenticator,service=EJB3 dependsOn=null whenRequired=Described resolved=false demand=persistence.units:unitName=UMC} **}
      
      jboss.j2ee:jar=classes,name=IssueManagerAction,service=EJB3
       -> <UNKNOWN>{Described:** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem@220711{name=jboss.j2ee:jar=classes,name=IssueManagerAction,service=EJB3 dependsOn=null whenRequired=Described resolved=false demand=persistence.units:unitName=UMC} **}
      
      jboss.j2ee:jar=classes,name=UserManagerAction,service=EJB3
       -> <UNKNOWN>{Described:** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem@6da8eb{name=jboss.j2ee:jar=classes,name=UserManagerAction,service=EJB3 dependsOn=null whenRequired=Described resolved=false demand=persistence.units:unitName=UMC} **}
      
      jboss.jdbc:datasource=GlueDatasource,service=metadata
       -> jboss.jdbc:service=metadata{Create:** NOT FOUND **}
       -> jboss.jdbc:service=metadata{Start:** NOT FOUND **}
      
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      jboss.jdbc:service=metadata -> ** NOT FOUND **
      
      <UNKNOWN> -> ** UNRESOLVED AbstractDemandMetaData$DemandDependencyItem@6da8eb{name=jboss.j2ee:jar=classes,name=UserManagerAction,service=EJB3 dependsOn=null whenRequired=Described resolved=false demand=persistence.units:unitName=UMC} **
      
      
           at org.jboss.embedded.DeploymentGroup.checkIncomplete(DeploymentGroup.java:151)
           at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:129)
           at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:307)
           at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:14)
           at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
           at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
           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: testMyIssueList
      
      ===============================================
          com.gtm.umc.test.ttrack.IssueManagerActionTest
          Tests run: 1, Failures: 0, Skips: 1
          Configuration Failures: 1, Skips: 3
      ===============================================
      
      
      ===============================================
      UMC
      Total tests run: 1, Failures: 0, Skips: 1
      Configuration Failures: 1, Skips: 3
      ===============================================