org.hibernate.engine.jndi.JndiException: Error performing unbind [modelSessionFactory]

GitHub | wildfly-ci | 1 year 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. 1

    GitHub comment 8361#152614810

    GitHub | 1 year ago | wildfly-ci
    org.hibernate.engine.jndi.JndiException: Error performing unbind [modelSessionFactory]
  2. 0

    GitHub comment 8361#152617682

    GitHub | 1 year ago | wildfly-ci
    org.hibernate.engine.jndi.JndiException: Error performing unbind [modelSessionFactory]

    Root Cause Analysis

    1. javax.naming.NamingException

      WFLYNAM0020: Could not resolve service service jboss.naming.context.java.modelSessionFactory

      at org.jboss.as.naming.WritableServiceBasedNamingStore.unbind()
    2. JBoss Application Server: Naming Subsystem
      InitialContext$DefaultInitialContext.unbind
      1. org.jboss.as.naming.WritableServiceBasedNamingStore.unbind(WritableServiceBasedNamingStore.java:136)
      2. org.jboss.as.naming.NamingContext.unbind(NamingContext.java:318)
      3. org.jboss.as.naming.InitialContext$DefaultInitialContext.unbind(InitialContext.java:280)
      3 frames
    3. Java RT
      InitialContext.unbind
      1. javax.naming.InitialContext.unbind(InitialContext.java:445)
      2. javax.naming.InitialContext.unbind(InitialContext.java:445)
      2 frames
    4. org.hibernate.engine
      JndiServiceImpl.unbind
      1. org.hibernate.engine.jndi.internal.JndiServiceImpl.unbind(JndiServiceImpl.java:210)
      1 frame
    5. Hibernate
      SessionFactoryImpl.close
      1. org.hibernate.internal.SessionFactoryRegistry.removeSessionFactory(SessionFactoryRegistry.java:124)
      2. org.hibernate.internal.SessionFactoryImpl.close(SessionFactoryImpl.java:1077)
      2 frames
    6. org.hibernate.jpa
      EntityManagerFactoryImpl.close
      1. org.hibernate.jpa.internal.EntityManagerFactoryImpl.close(EntityManagerFactoryImpl.java:339)
      1 frame
    7. JPA
      PersistenceUnitServiceImpl$2$1.run
      1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$2$1.run(PersistenceUnitServiceImpl.java:220)
      2. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$2$1.run(PersistenceUnitServiceImpl.java:206)
      2 frames
    8. WildFly Security Manager
      WildFlySecurityManager.doChecked
      1. org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
      1 frame
    9. JPA
      PersistenceUnitServiceImpl$2.run
      1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$2.run(PersistenceUnitServiceImpl.java:239)
      1 frame
    10. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames
    11. JBoss Threads
      JBossThread.run
      1. org.jboss.threads.JBossThread.run(JBossThread.java:320)
      1 frame