I got this same problem running tests in my seam project too.
JBoss seam 2.2.0.GA
When running testNG tests in my embedded jboss container i got the connection time out exception. So i commented out the DOCTYPE declaration for -ds.xml in test-build directory.
Got rid of that problem.
Thanks for the reply.