createEntityManagerFactory « Update « JPA Q&A





1. javax.persistence.Persistence.createEntityManagerFactory not working with ClassGuard    stackoverflow.com

I just take a look at ClassGuard (although I know some objection to it). However I get a javax.persistence.PersistenceException: [PersistenceUnit: MyPU] class or package not found that I ...

2. problem with Persistence.createEntityManagerFactory    forum.hibernate.org

Hi all, I have an application that runs fine in the netbeans IDE. I have compiled it and run it from the command line (java -jar jarfile.jar), but it dies at Persistence.createEntityManagerFactory(). When I say dies, I mean nothing happens - no exceptions are being thrown that I can see and the method returns null. I have set up a logger ...