java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null

Stack Overflow | developer10 | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Would providing `EntityManagerFactory` solve `Unable to retrieve EntityManagerFactory for unitName xyz`

    Stack Overflow | 5 months ago | developer10
    java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null
  2. 0

    Error when calling EJB from managed bean

    Stack Overflow | 3 years ago | Radu Gheorghiu
    javax.faces.el.EvaluationException: javax.ejb.EJBException
  3. 0

    JavaEE 6: java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null

    Stack Overflow | 5 years ago | skip
    java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null error when I try to retrieve something from database. The application is still deploying without any problems but I can't see the [jpa] engine working this time. I couldn't figure out why was I getting this error. I did not make any changes to may configuration on the Glassfish Admin Console or anything in my application. Only thing that I did yesterday was to use the appclient (ACC) provided by Glassfish 3.1 to test dependency injection of resources using @Resource. I did absolutely nothing else than that. But today when I deploy my application I do not see the [jpa] engine listed with [web, ejb] when I see the deployed modules and components on my application on Glassfish admin console. Could someone help me understand the reason why would it happening and how to solve this problem. I've already spent quite a lot of time trying to get it to work but I cant see the [jpa] engine working to give me an EntityManagerFactory for my application to talk to database. Complete stacktrace: javax.ejb.EJBTransactionRolledbackException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Unable to retrieve EntityManagerFactory for unitName null

      at com.sun.enterprise.container.common.impl.EntityManagerWrapper.init()
    2. Container Common
      EntityManagerWrapper.createQuery
      1. com.sun.enterprise.container.common.impl.EntityManagerWrapper.init(EntityManagerWrapper.java:138)
      2. com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:171)
      3. com.sun.enterprise.container.common.impl.EntityManagerWrapper.createQuery(EntityManagerWrapper.java:477)
      3 frames