4 Replies Latest reply on Sep 21, 2011 5:14 AM by Viggo Navarsete

    What could prevent PersistenceContext injection?

    John Franey Novice

      I have a simple test method which fails:




      EntityManager entityManager;



      public void testEntityManager() {






      I'm using 1.0.0.Final-SNAPSHOT (8/27), arquillian-core, containter (jboassas-remote-6) and arquillian-junit all of which I built from source from github.


      I know the container is finding the persistence unit.  If I use a non-existing name, a "Can't find such-n-such persistence unit" error occurs.


      The @EJB injection test from arquillian examples (shouldBeAbleToInjectEJB GreetingManager) works in the very same test class.  So, I think my configuration is at least correct for that test.



      What are the potential conditions that can cause this? and how do I isolate them?  Is there specific log message that I can look for?