[jboss-user] [JBoss Seam] - Re: Problem injecting (@In) entityManger in TestNG unit test

roger_goldman2000 do-not-reply at jboss.com
Fri Jun 8 21:40:47 EDT 2007


"christian.bauer at jboss.com" wrote : Component.getInstance("entityManager")
  | 

Unfortunately that doesn' t work, at least not on its own.  Is there some additional initialization code that needs to be added to the test class for this to work?


  | FAILED: theTest
  | java.lang.IllegalStateException: No application context active
  | 	at org.jboss.seam.Component.forName(Component.java:1577)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1627)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1610)
  | 	at org.jboss.seam.Component.getInstance(Component.java:1604)
  | 	at simpletest.SimpleTest.getEntityManager(SimpleTest.java:25)
  | 	at simpletest.SimpleTest.theTest(SimpleTest.java:17)
  | 


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

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



More information about the jboss-user mailing list