Unable to run a test
michaelcourcy Jul 19, 2007 11:31 AMHi
I'm unable to run a single test
I use seam gen
seam setup
seam new-project
seam new-action
I use all the default value (ear, hsql and so on), I don't touch the code
I can deploy it on JBoss every thing work fine.
But when I try to run the test
I get a deployment error
[testng] FAILED CONFIGURATION: @BeforeClass init [testng] org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): [testng] *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
Do you meet the same problem
My config :
jdk 1.5, seam 2.0 Beta, JBoss 4.2
Here is the conplete output
Buildfile: C:\Projects\michael\build.xml compiletest: copytestclasses: buildtest: [copy] Copying 1 file to C:\Projects\michael\test-build\META-INF [copy] Copying 1 file to C:\Projects\michael\test-build test: [testng] [Parser] Running: [testng] C:\Projects\michael\test-build\MicTest.xml [testng] WARN 19-07 17:46:07,265 [org.jboss.mx.loading.UnifiedLoaderRepository3.addClassLoader():675] Tried to add non-URLClassLoader. Ignored [testng] INFO 19-07 17:46:16,078 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():126] JBossTS Transaction Service (JTA version) - JBoss Inc. [testng] INFO 19-07 17:46:16,078 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():128] Setting up property manager MBean and JMX layer [testng] WARN 19-07 17:46:16,859 [com.arjuna.ats.arjuna.coordinator.TxControl.<clinit>():266] [com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. Using -3f57fda0:59b:469f8748:0 [testng] INFO 19-07 17:46:17,296 [com.arjuna.ats.arjuna.recovery.TransactionStatusManager.addService():110] [com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 1435 [testng] INFO 19-07 17:46:17,312 [?.?():?] TransactionStatusManagerItem - host: 192.168.2.96 port: 1435 [testng] INFO 19-07 17:46:17,437 [com.arjuna.ats.arjuna.recovery.TransactionStatusManager.start():161] [com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] - TransactionStatusManager started on port 1435 with service com.arjuna.ats.arjuna.recovery.ActionStatusService [testng] INFO 19-07 17:46:17,640 [?.?():?] Registering mbean for module 'arjuna' [testng] INFO 19-07 17:46:17,703 [?.?():?] Initialising JMX agent com.arjuna.ats.internal.jbossatx.agent.LocalJBossAgentImpl [testng] INFO 19-07 17:46:18,046 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():163] Starting recovery manager [testng] INFO 19-07 17:46:18,140 [?.?():?] [testng] --- Start RecoveryActivators [testng] INFO 19-07 17:46:18,234 [com.arjuna.ats.internal.arjuna.recovery.RecoveryManagerImple.<init>():142] [com.arjuna.ats.internal.arjuna.recovery.ready] RecoveryManagerImple is ready on port 1 436 [testng] INFO 19-07 17:46:18,250 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():168] Recovery manager started [testng] INFO 19-07 17:46:18,312 [com.arjuna.ats.jbossatx.jta.TransactionManagerService.startService():191] Binding TransactionManager JNDI Reference [testng] INFO 19-07 17:46:37,078 [org.jboss.jms.server.ServerPeer.<init>():187] ServerPeer[0] creating server peer with ID 0 [testng] FAILED CONFIGURATION: @BeforeClass init [testng] org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): [testng] *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State} [testng] jboss.jca:name=DefaultDS,service=DataSourceBinding [testng] -> jboss.jca:name=DefaultDS,service=LocalTxCM{Start:Configured} [testng] -> jboss.jca:name=DefaultDS,service=LocalTxCM{Create:Configured} [testng] jboss.jca:name=DefaultDS,service=LocalTxCM [testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionPool{Create:Configured} [testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionPool{Start:Configured} [testng] jboss.jca:name=DefaultDS,service=ManagedConnectionFactory [testng] -> jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Create:** NOT FOUND **} [testng] -> jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Start:** NOT FOUND **} [testng] jboss.jca:name=DefaultDS,service=ManagedConnectionPool [testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Start:Configured} [testng] -> jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Create:Configured} [testng] jboss.jca:name=JmsXA,service=DataSourceBinding [testng] -> jboss.jca:name=JmsXA,service=TxCM{Create:Configured} [testng] -> jboss.jca:name=JmsXA,service=TxCM{Start:Configured} [testng] jboss.jca:name=JmsXA,service=ManagedConnectionFactory [testng] -> jboss.jca:name='jms-ra.rar',service=RARDeployment{Start:** NOT FOUND **} [testng] -> jboss.jca:name='jms-ra.rar',service=RARDeployment{Create:** NOT FOUND **} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] jboss.jca:name=JmsXA,service=ManagedConnectionPool [testng] -> jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Start:Configured} [testng] -> jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Create:Configured} [testng] jboss.jca:name=JmsXA,service=TxCM [testng] -> jboss.jca:name=JmsXA,service=ManagedConnectionPool{Create:Configured} [testng] -> jboss.jca:name=JmsXA,service=ManagedConnectionPool{Start:Configured} [testng] jboss.messaging.connectionfactory:service=ConnectionFactory [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] -> jboss.messaging:service=PostOffice{Create:Configured} [testng] -> jboss.messaging:service=PostOffice{Start:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] jboss.messaging.destination:name=DLQ,service=Queue [testng] -> jboss.messaging:service=PostOffice{Start:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] -> jboss.messaging:service=PostOffice{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] jboss.messaging.destination:name=ExpiryQueue,service=Queue [testng] -> jboss.messaging:service=PostOffice{Start:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] -> jboss.messaging:service=PostOffice{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] jboss.messaging.destination:name=PrivateDLQ,service=Queue [testng] -> jboss.messaging:service=PostOffice{Start:Configured} [testng] -> jboss.messaging:service=PostOffice{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] jboss.messaging.destination:name=PrivateExpiryQueue,service=Queue [testng] -> jboss.messaging:service=PostOffice{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] -> jboss.messaging:service=PostOffice{Start:Configured} [testng] jboss.messaging.destination:name=QueueWithOwnDLQAndExpiryQueue,service=Queue [testng] -> jboss.messaging:service=PostOffice{Start:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] -> jboss.messaging:service=PostOffice{Create:Configured} [testng] jboss.messaging.destination:name=QueueWithOwnRedeliveryDelay,service=Queue [testng] -> jboss.messaging:service=PostOffice{Create:Configured} [testng] -> jboss.messaging:service=PostOffice{Start:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] jboss.messaging.destination:name=TopicWithOwnDLQAndExpiryQueue,service=Topic [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] -> jboss.messaging:service=PostOffice{Start:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] -> jboss.messaging:service=PostOffice{Create:Configured} [testng] jboss.messaging.destination:name=TopicWithOwnRedeliveryDelay,service=Topic [testng] -> jboss.messaging:service=PostOffice{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] -> jboss.messaging:service=PostOffice{Start:Configured} [testng] jboss.messaging:service=JMSUserManager [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured} [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured} [testng] jboss.messaging:service=PersistenceManager [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured} [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured} [testng] jboss.messaging:service=PostOffice [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured} [testng] -> jboss.jca:name=DefaultDS,service=DataSourceBinding{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [testng] jboss.messaging:service=ServerPeer [testng] -> jboss.messaging:service=PersistenceManager{Start:Configured} [testng] -> jboss.messaging:service=JMSUserManager{Create:Configured} [testng] -> jboss.messaging:service=PersistenceManager{Create:Configured} [testng] -> jboss.messaging:service=JMSUserManager{Start:Configured} [testng] jboss.mq:service=DestinationManager [testng] -> jboss.messaging:service=ServerPeer{Create:Configured} [testng] -> jboss.messaging:service=ServerPeer{Start:Configured} [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 [testng] SKIPPED CONFIGURATION: @BeforeMethod begin [testng] SKIPPED CONFIGURATION: @AfterMethod end [testng] SKIPPED CONFIGURATION: @AfterClass cleanup [testng] SKIPPED: test [testng] =============================================== [testng] Mic Test [testng] Tests run: 1, Failures: 0, Skips: 1 [testng] Configuration Failures: 1, Skips: 3 [testng] =============================================== [testng] =============================================== [testng] Mic Tests [testng] Total tests run: 1, Failures: 0, Skips: 1 [testng] Configuration Failures: 1, Skips: 3 [testng] =============================================== BUILD SUCCESSFUL Total time: 55 seconds