geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ericp56 <>
Subject Re: JPA and JNDI
Date Tue, 19 Aug 2008 19:29:10 GMT

>>check if the persistence.xml is configured correctly.
I looked through that document, thanks for the link.  I still can't get it
to work.

In my code:
  @PersistenceContext(unitName = "ctimssql") 
  EntityManager em;

My EntityManager object is not being injected.  When I try to use em, I'm
getting a NullPointerException.

>From persistence.xml:
  <persistence-unit name="ctimssql" transaction-type="JTA">

>From openejb-jar.xml:

In Geronomio, I configured a Data Pool named 
eFlowCtiDatabase, using the jTDS data driver.

Any ideas on what isn't configured properly?



View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message