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

Scott Marlow (JIRA) jira-events at lists.jboss.org
Mon Apr 4 23:39:33 EDT 2011


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

Scott Marlow commented on JBAS-9229:
------------------------------------

George, your suggested fix worked for me as well (looked good when I stepped through both sides of the code)!  Thank you for reporting this and for the suggested fix!  I applied your change (https://github.com/scottmarlow/jboss-as/commit/01bfaf8b622760c847004a0b5be1432f90293ffe).  Which, should get pulled into as7 (https://github.com/jbossas/jboss-as) in the near future.  

In case you are interested, http://community.jboss.org/wiki/HackingonAS7 describes how to get started retrieving the AS7 source code with 'git' source control.  If you were to create your own branch on github, as suggested in the above 'HackingonAS7' link.  You could specify the commit link for your next patch, which I could merge into my branch (if done correctly, your name should show up on the change/fix).

Either way, thank you for contributing!

Scott

> 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