[jboss-user] [JBoss Seam] - Re: SeamTest, Embedded EJB and TestNG issue

tarantula do-not-reply at jboss.com
Sat Feb 24 21:43:19 EST 2007


More info:

It turns out that after testing with two different connection pools, the underlying problem is a java.sql.SQLException ("No suitable driver").

This only shows up for the second test class. The first one gets a connection just fine and my tests pass. 

I still vote for the container per suite option, but if someone has any tips on dealing with this short term issue I'm having that would be great.

Why is the driver class not found for the second test? How does the TestNG suite classpath work? My driver is definitely on the classpath of my Eclipse projects. 

In addition, I tried classloading the JDBC driver explicitly before each test method, but to no avail.

Any thoughts on what could be causing this?

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021840#4021840

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021840



More information about the jboss-user mailing list