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

Stack Overflow | developer10 | 2 months ago
  1. 0

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

    Stack Overflow | 2 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

  5. 0

    Java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null - www.scriptscoop.net

    scriptscoop.net | 7 months ago
    java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName null

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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