java.lang.IllegalStateException

Unable to retrieve EntityManagerFactory for unitName DEFAULT_PU

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web15951

  • via GitHub by jShiwaniGupta
    , 5 months ago
    Unable to retrieve EntityManagerFactory for unitName DEFAULT_PU
  • Unable to retrieve EntityManagerFactory for unitName mainPU
  • Unable to retrieve EntityManagerFactory for unitName GuestbookPU
  • Stack trace

    • java.lang.IllegalStateException: Unable to retrieve EntityManagerFactory for unitName DEFAULT_PU at com.sun.enterprise.container.common.impl.EntityManagerWrapper.init(EntityManagerWrapper.java:138) at com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:171) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.createNamedQuery(EntityManagerWrapper.java:536) at service.facade.AbstractFacade.findSingleByNamedQuery(AbstractFacade.ava:85) at service.facade.UserFacade.findOneWithAuthoritiesByLogin(UserFacade.java:53) at app.service.UserService.authenticate(UserService.java:180) at controller.UserJWTController.login(UserJWTController.java:62)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 weeks ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago