[jboss-jira] [JBoss JIRA] (AS7-218) hibernate fails to bind session factory name to jndi

jaikiran pai (Commented) (JIRA) jira-events at lists.jboss.org
Fri Jan 6 09:38:10 EST 2012


    [ https://issues.jboss.org/browse/AS7-218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654327#comment-12654327 ] 

jaikiran pai commented on AS7-218:
----------------------------------

Scott, this one is assigned to you, but since the support needs to come from the naming subsystem, do you know if anyone is looking at why this is still not working when there was a JIRA related to this which was marked as fix? I saw a couple of threads in the forum that this isn't working yet, so just curious.

                
> hibernate fails to bind session factory name to jndi
> ----------------------------------------------------
>
>                 Key: AS7-218
>                 URL: https://issues.jboss.org/browse/AS7-218
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: 7.0.0.Beta2
>            Reporter: George Sapountzis
>            Assignee: Scott Marlow
>             Fix For: 7.1.0.Final
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list