Hi,
I've been struggling with getting TestNG to work with anything but simple CRUD tests
on my EJB layer. I wanted to start off by getting some simple authentication tests working
as per the examples in the Booking example application so I tried to run those tests with
the 2.0.0 Beta (which I have had previously working with the 1.2 GA release) but it keeps
falling over with the same problems.
Has anyone got these tests working for the example applications with the 2.0.0 Beta, and
if so could they tell me how please? The only way I have managed to get anything to work
(and this is very hacky but I was running out of ideas) was to use the 1.2 GA jars in the
test lib, and then the tests run but this is obviously not a way forward.
We are using the following configuration, and we are not using any other software apart
from some Dojo libraries.
JBoss 4.2.1
Seam 2.0.0 Beta
Richfaces & Ajax4JSF
Any help would be greatly appreciated,
Thanks, Al.
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{Create:Configured}
[testng] -> jboss.jca:name=DefaultDS,service=LocalTxCM{Start: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{Start:** NOT FOUND
**}
[testng] ->
jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment{Create:** NOT FOUND
**}
[testng] jboss.jca:name=DefaultDS,service=ManagedConnectionPool
[testng] ->
jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Create:Configured}
[testng] ->
jboss.jca:name=DefaultDS,service=ManagedConnectionFactory{Start:Configured}
[testng] jboss.messaging.connectionfactory:service=ConnectionFactory
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] jboss.messaging.destination:name=DLQ,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] jboss.messaging.destination:name=ExpiryQueue,service=Queue
[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=PrivateDLQ,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] jboss.messaging.destination:name=PrivateExpiryQueue,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng]
jboss.messaging.destination:name=QueueWithOwnDLQAndExpiryQueue,service=Queue
[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=QueueWithOwnRedeliveryDelay,service=Queue
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng]
jboss.messaging.destination:name=TopicWithOwnDLQAndExpiryQueue,service=Topic
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=PostOffice{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] -> jboss.messaging:service=PostOffice{Create:Configured}
[testng] jboss.messaging.destination:name=TopicWithOwnRedeliveryDelay,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:service=JMSUserManager
[testng] ->
jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured}
[testng] ->
jboss.jca:name=DefaultDS,service=DataSourceBinding{Create: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{Create:Configured}
[testng] ->
jboss.jca:name=DefaultDS,service=DataSourceBinding{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] jboss.messaging:service=ServerPeer
[testng] -> jboss.messaging:service=PersistenceManager{Start:Configured}
[testng] -> jboss.messaging:service=PersistenceManager{Create:Configured}
[testng] -> jboss.messaging:service=JMSUserManager{Create:Configured}
[testng] -> jboss.messaging:service=JMSUserManager{Start:Configured}
[testng] jboss.mq:service=DestinationManager
[testng] -> jboss.messaging:service=ServerPeer{Start:Configured}
[testng] -> jboss.messaging:service=ServerPeer{Create:Configured}
[testng] *** CONTEXTS IN ERROR: Name -> Error
[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
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075099#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...