Unfortunately it didn't work either. I removed the ejb annotations and made it a POJO. Then I injected entityManager using @In, I got a similar problem, the root of which is due to the micro-container (and the JNDI) not available before the starting up of the bean:
anonymous wrote :
| [testng] 09:49:46,453 INFO [Component] Component: voteCount, scope: CONVERSA
| TION, type: ENTITY_BEAN, class: com.n2.bo.VoteCount
| [testng] 09:49:46,453 INFO [Lifecycle] starting up: entityManager
| [testng] 09:49:46,453 INFO [Lifecycle] starting up: companyList
| [testng] FAILED CONFIGURATION: @BeforeClass init
| [testng]
java.lang.IllegalArgumentException: EntityManagerFactory not found i
| n JNDI
| [testng] at org.jboss.seam.core.ManagedPersistenceContext.getEntityManage
| rFactoryFromJndiOrValueBinding(ManagedPersistenceContext.java:164)
| [testng] at org.jboss.seam.core.ManagedPersistenceContext.initEntityManag
| er(ManagedPersistenceContext.java:77)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053670#4053670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053670
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user