1. How to register the Hibernate SessionFactory into JNDI coderanch.com |
2. Hibernate sessionFactory and JNDI forum.hibernate.org |
3. Could not locate SessionFactory in JNDI forum.hibernate.org |
4. SessionFactory and JNDI lookup under InitialContext forum.hibernate.org |
10. Putting the Hibernate Session factory onto JNDI forum.hibernate.orgI am trying to setup the RAR JCA adapter with WL 81 and Hibernate 305. It used to work with 217 but does not with 305. This is my connector file: Code: |
11. SessionFactory JNDI lookup fails forum.hibernate.orgClass Visibility The org.hibernate.impl.SessionFactoryObjectFactory maintains a hashmap of uid to objects. If you bind a SessionFactory in one class loader and try to load it in another class loader, the SessionFactoryObjectFactory in that class loader cannot see the mapping of uid to session factory, so the call fails. Don't know if this is a feature of hibernate or not, we had ... |
12. Accessing SessionFactory through JNDI from J2SE app forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.5 Mapping documents: Code between sessionFactory.openSession() and session.close(): Full stack trace of any exception that occurs: [java] org.hibernate.HibernateException: Could not find datasource [java] at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:48) [java] at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80) [java] at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:313) [java] at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:112) [java] at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509) [java] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054) [java] at ami.server.ejb.HibernateUtil. |
13. Could not locate SessionFactory in JNDI -> I am a newbie! forum.hibernate.orgHi, I'm new to Hibernate. ;) I have a JBoss running and a HypersonicDB as Server Engine running. I set up a small phonebook-Table, which was is accessable through Hibernate Tools. So I finished everything as it mentioned in the tutorial... Now I generated a DAO-File to test the generated files... This is my CFG: Code: |
14. Can't get the SessionFactory using JNDI forum.hibernate.orgHello, I am using JBoss 4.0.3SP, EJB3.0 Hibernate3.1 and I am trying to create a Hibernate Archive (har). My problem is that the SessionFactory that I am trying to retrieve is not bound. I have searched the forums for a solution, but didn't find anything. I am confused in some issues. 1) Should my mbean that I am trying to create ... |
15. JNDI bound SessionFactory forum.hibernate.orgNewbie Joined: Sun Mar 05, 2006 7:52 am Posts: 4 Hi, This has been discussed before but I could not get it working even after going through the various past posts. I am using Hibernate 3.0 with Weblogic 8.1 and am trying to bind the session factory to the JNDI. hibernate.cfg.xml is Code: |
17. looking up SessionFactory in JNDI from two different EARs forum.hibernate.orgScenario 1) The application deployed through the same EAR is able to register, look up, and instantiate Hibernate SessionFactory through JNDI. Scenarion2) Two EARs are deployed with separate Application class loaders (default for WebSphere). The application in one EAR registers the Hibernate SessionFactory in JNDI. The other EAR is able to do the look up, however, it fails to instatiate the ... |
18. Could not locate SessionFactory in JNDI forum.hibernate.orgHello everyone, I have generated daos for my appplication but there is a problem when I call the dao from a test class. The error I get is: Could not locate SessionFactory in JNDI Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial My config file: |
19. Could not locate SessionFactory in JNDI forum.hibernate.orgPlease excuse replying to my own topic. I just noticed straight after the "Could not locate..." error message I got a NoInitialContextException. Here's my sanitised hbm.xml file. Code: |
20. JNDI problem "Could not locate SessionFactory in JNDI&q forum.hibernate.orgpackage com.gmsoft; import com.gmsoft.model.Role; import com.gmsoft.model.RoleHome; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub com.gmsoft.model.Role rol = new Role(60,"Hibernate"); com.gmsoft.model.RoleHome rolDAO = new RoleHome(); rolDAO.persist(rol); ... |
21. session_factory_name.Cant access to SessionFactory with JNDI forum.hibernate.orgHello forum, I'm configuring Hibernate to use JNDI properties. So, in hibernate.cfg.xml I set session_factory_name to "java:/hibernate/webshop". Mmm, I thank that if I set session_factory_name, the SessionFactory will be automatically bounded to this name in JNDI after it has been created. So, I've created a ServletContextListener as follow --> Code: /** * * @author Jordi * @web.listener * name="initContext" ... |
22. Help needed!, Cannot get session factory from JNDI forum.hibernate.orgprotected SessionFactory getSessionFactory() { try { InitialContext ic = new InitialContext(); return (SessionFactory) ic.lookup("java:comp/env/hibernate/SessionFactory"); } ... |
23. Hibernate session factory jndi name not bound forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version:3.x Mapping documents: |
26. "Could not locate SessionFactory in JNDI" Problem need Help! forum.hibernate.orgNewbie Joined: Sun May 31, 2009 11:09 pm Posts: 1 Java 1.6+ Eclipse 3.4.2 TOMCAT 6.0 JBoss Hibernate Tools 3 MySQL 5.0 Hibernate.cfg.xml: Code: |
27. IllegalStateException: Could not locate SessionFactory JNDI forum.hibernate.orgAuthor Message lokesh.rajarathnam Post subject: IllegalStateException: Could not locate SessionFactory JNDI Posted: Tue Jun 30, 2009 1:29 am Newbie Joined: Tue Jun 30, 2009 12:47 am Posts: 1 Hi all... I m new to hibernate and trying some examples to know this... i struck in while retrieve records from database.... and getting error.. java.lang.IllegalStateException: Could not locate SessionFactory in ... |
28. setting jndi for session factory forum.hibernate.org |
29. Problem Retrieving Hibernate SessionFactory from JNDI forum.hibernate.org |