[jboss-jira] [JBoss JIRA] Closed: (JBAS-9229) hibernate fails to bind session factory name to jndi

Scott Marlow (JIRA) jira-events at lists.jboss.org
Tue Apr 5 12:53:33 EDT 2011


     [ https://issues.jboss.org/browse/JBAS-9229?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Marlow closed JBAS-9229.
------------------------------



Fixed:

https://github.com/jbossas/jboss-as/commit/57fea8a5c52e448a9e71f97ec8f3c0307473eed5

https://github.com/jbossas/jboss-as/commit/b534a27a2270996a464d3b1653ef2f4b7bdb731a

> hibernate fails to bind session factory name to jndi
> ----------------------------------------------------
>
>                 Key: JBAS-9229
>                 URL: https://issues.jboss.org/browse/JBAS-9229
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JPA / Hibernate
>    Affects Versions: 7.0.0.Beta2
>            Reporter: George Sapountzis
>            Assignee: Scott Marlow
>             Fix For: 7.0.0.Beta3
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list