org.hibernate.engine.jndi.JndiException

Error performing unbind [modelSessionFactory]

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 web15

  • via GitHub by wildfly-ci
    , 11 months ago
    Error performing unbind [modelSessionFactory]
  • via GitHub by wildfly-ci
    , 11 months ago
    Error performing unbind [modelSessionFactory]
  • Error parsing JNDI name []
  • Stack trace

    • org.hibernate.engine.jndi.JndiException: Error performing unbind [modelSessionFactory] at org.hibernate.engine.jndi.internal.JndiServiceImpl.unbind(JndiServiceImpl.java:213) at org.hibernate.internal.SessionFactoryRegistry.removeSessionFactory(SessionFactoryRegistry.java:124) at org.hibernate.internal.SessionFactoryImpl.close(SessionFactoryImpl.java:1077) at org.hibernate.jpa.internal.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:339) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$2$1.run(PersistenceUnitServiceImpl.java:220) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$2$1.run(PersistenceUnitServiceImpl.java:206) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667) at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$2.run(PersistenceUnitServiceImpl.java:239) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at org.jboss.threads.JBossThread.run(JBossThread.java:320) Caused by: javax.naming.NamingException: WFLYNAM0020: Could not resolve service service jboss.naming.context.java.modelSessionFactory at org.jboss.as.naming.WritableServiceBasedNamingStore.unbind(WritableServiceBasedNamingStore.java:136) at org.jboss.as.naming.NamingContext.unbind(NamingContext.java:318) at org.jboss.as.naming.InitialContext$DefaultInitialContext.unbind(InitialContext.java:280) at javax.naming.InitialContext.unbind(InitialContext.java:445) at javax.naming.InitialContext.unbind(InitialContext.java:445) at org.hibernate.engine.jndi.internal.JndiServiceImpl.unbind(JndiServiceImpl.java:210) ... 11 more

    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

    You’re the first here who have seen this exception.