Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-218

hibernate fails to bind session factory name to jndi

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Final
    • 7.0.0.Beta2
    • JPA / Hibernate
    • None

    Description

      Put the following line in persistence.xml:

      <property name="hibernate.session_factory_name" value="modelSessionFactory" />

      Hibernate fails to bind modelSessionFactory.

      Remove the following two lines from HibernatePersistenceProviderAdaptor.java

      • properties.put("hibernate.jndi.java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
      • properties.put("hibernate.jndi.java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");

      Then the bindind succeeds.

      Attachments

        Issue Links

          Activity

            People

              smarlow1@redhat.com Scott Marlow
              gsapountzis_jira George Sapountzis (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: