openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajeev Chaudhary (JIRA)" <>
Subject [jira] Created: (OPENJPA-1653) Why getting null for EntityManagerFactory and EntityManager
Date Wed, 05 May 2010 19:25:02 GMT
Why getting null for EntityManagerFactory and EntityManager 

                 Key: OPENJPA-1653
             Project: OpenJPA
          Issue Type: Question
         Environment: Oracle10g, weblogic10
            Reporter: Rajeev Chaudhary

<persistence-unit name="eclepJTA">

public abstract class BaseDao {
	@PersistenceUnit(unitName = "eclepJTA", name="eclepJTA")
           private  EntityManager entityUnit;
	@PersistenceContext(unitName = "eclepJTA", name="eclepJTA")
            private EntityManager entityContext;
	@PersistenceUnit(unitName = "eclepJTA",name="eclepJTA") 
	private EntityManagerFactory emf;
	  public void check(){

All of these come as null.  Could you tell me why?
I have weblogic system libraries having javax.persistence_1.0.0.0_1-0.jar and org.apache.openjpa_2.2.0.0_1-1-0.jar.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message