Good afternoon gemel,
Could you post your complete code segment? I followed your example to manually
create an EntityManagerFactory , but got the following error:
No Persistence provider for EntityManager named XXX
Thanks,
Sheng
View the original post :
chuckadams wrote : You can't depend on the EJB3 container being initialized
in a @BeforeClass/beforeTestClass method, because it does in fact run before
the embedded container is started by SeamTest.init().
|
Yep got the same problem. But with your idea you will get the same problem.
It's
CVS uses Testng 5.6
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4073531#4073531
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4073531
___
jboss-user mailing list
I had this failure too and I could solve it I hope I can help you.
Dou you have a datasource defined in your persistence.xml file like this?
jta-data-sourcejava:/SeamRcAdfDatasource/jta-data-source
if yes -- Try this
1- Take the jta-data-source definition away from the persistence.xml file
2-
You can't depend on the EJB3 container being initialized in a
@BeforeClass/beforeTestClass method, because it does in fact run before the
embedded container is started by SeamTest.init().
I believe TestNG will run tests in the order they're specified in the
testng.xml file, so you could