It looks like java:comp/env/OpenJPAEMF should have worked, although the extra slash didn't work either.
>From reading some articles, it looks like the following should work: I'm no longer using the initial context, or web.xml. context.xml: <Resource name="bean/OpenJPAEMF" auth="Container" factory="org.apache.openjpa.persistence.OpenJPAEntityManagerFactory" type="org.apache.openjpa.persistence.OpenJPAEntityManagerFactory.class" /> my class using JPA: @PersistenceUnit(unitName = "CallScheduler") private @Resource(name="bean/OpenJPAEMF")OpenJPAEntityManagerFactory emf; private OpenJPAEntityManager em; In my functions, emf is still null. -- View this message in context: http://www.nabble.com/Configuring-OpenJPA%2C-need-help-tp18341039p18347525.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]