-
1. Re: Unable to lookup EntityManager in 4.0.3 SP1 with EJB3 RC
bill.burke Jan 31, 2006 10:23 AM (in response to donniedarko)I cannot reproduce the problem. Our testsuite does *actually* test this stuff you know.
I need more information. Are you sure something else isn't null? -
2. Re: Unable to lookup EntityManager in 4.0.3 SP1 with EJB3 RC
holgercasties Feb 1, 2006 4:52 AM (in response to donniedarko)I have the same problem.
I can also see the JNDI entries of my "EntityManager" and "EntityManagerFactory" inside the JNDI view service but when executing the JNDI lookup method the same error occurs: em or emf are null!
Holger -
3. Re: Unable to lookup EntityManager in 4.0.3 SP1 with EJB3 RC
donniedarko Feb 1, 2006 8:33 AM (in response to donniedarko)..well... you might have test suites that tests all possible aspects of this, and probably I'm not adopting the "new" RC4_PFD ways of doing things correctly ... but I have set up a new JBoss IDE project for the sole purpose of reproducing the issue. I have uploaded it to the following url:
http://www.lightminds.com/ShowDocument.asp?id=735
To reproduce the issue just point your browser to http://localhost:8080/testentitymanager/test and set a breakpoint
withing the getEntityManager method of the com.lightminds.test.EntityManagerStoreBean class and step. You should see that the looked up entity manager will become null.
Please tell me if this is an error in my setup/ usage error and in that case shouldn't it at least throw an exception instead of just returning null?
Best regards -
4. Re: Unable to lookup EntityManager in 4.0.3 SP1 with EJB3 RC
bill.burke Feb 1, 2006 10:24 AM (in response to donniedarko)ok, i'll try it out.
-
5. Re: Unable to lookup EntityManager in 4.0.3 SP1 with EJB3 RC
donniedarko Feb 15, 2006 9:42 AM (in response to donniedarko)Bill,
What was your foundings on this...?
Best regards -
6. Re: Unable to lookup EntityManager in 4.0.3 SP1 with EJB3 RC
rorschach Feb 15, 2006 9:52 AM (in response to donniedarko)Same problem here.
-
7. Re: Unable to lookup EntityManager in 4.0.3 SP1 with EJB3 RC
rorschach Feb 15, 2006 11:35 AM (in response to donniedarko)Actually, the JNDI lookup works... the injection using @PersistenceContext(unitName="foo") does not.
-
8. Re: Unable to lookup EntityManager in 4.0.3 SP1 with EJB3 RC
donniedarko Feb 16, 2006 12:33 PM (in response to donniedarko)Rorschach...If you got my test project to work...what exactly did you do? You are not saying that you got it to work with my setup unmodified on 4.0.3 SP1 with EJB3 RC4-PFD are you?
Bill... what was your conclusion running the test project as described? -
9. Re: Unable to lookup EntityManager in 4.0.3 SP1 with EJB3 RC
rorschach Feb 17, 2006 9:50 AM (in response to donniedarko)Please disregard, my issue was on 4.0.4.