Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Re: Trouble with SeamTest when bean is
 annotated @Startup

scott.stark@jboss.org

2007-06-12


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
©2008 junlu.com - Jax Systems, LLC, U.S.A.