SessionFactory « Exception « JPA Q&A





1. Hibernate Exception in thread "main" java.lang.NoClassDefFoundError while building SessionFactory ?    coderanch.com

Hi All, I am executing the Cliet Appliction for Hibernate but i am getting Error as below: earlier i had mysql connectivity problem with user and database access related issue which i have fixed it and now i am facing the problem which is related to some classpath i think .. Jan 19, 2010 1:03:05 PM org.hibernate.impl.SessionFactoryImpl INFO: building session ...

2. Exception of "Initial SessionFactory creation failed...    forum.hibernate.org

Newbie Joined: Mon Nov 06, 2006 9:39 pm Posts: 2 Location: Kunshan, Jiangsu, China hibernate v3.2 Mysql v5.0 when I run an application based on the demo of "Hibernate 3.2", I met some exceptions below: 09:46:49,818 INFO Environment:500 - Hibernate 3.2.0 Initial SessionFactory creation failed.java.lang.ExceptionInInitializerError Exception in thread "main" java.lang.ExceptionInInitializerError at util.HibernateUtil.(HibernateUtil.java:18) at messages.MessageManager.listMessages(MessageManager.java:48) at messages.MessageManager.main(MessageManager.java:16) Caused by: java.lang.ExceptionInInitializerError at org.hibernate.cfg.Configuration.reset(Configuration.java:168) ...

3. Exception thrown when closing the SessionFactory using c3p0    forum.hibernate.org

Exception is thrown when closing the SessionFactory using c3p0 and hibernate.hbm2ddl.auto set to "create-drop". Hibernate version: 3.2.2 Hibernate annotation version: 3.2.1 Full stack trace of any exception that occurs: INFO Feb 07 2007 03:49:45 org.hibernate.impl.SessionFactoryImpl - closing INFO Feb 07 2007 03:49:45 org.hibernate.tool.hbm2ddl.SchemaExport - Running hbm2ddl schema export DEBUG Feb 07 2007 03:49:45 org.hibernate.tool.hbm2ddl.SchemaExport - import file not found: /import.sql INFO ...

4. Naming exception occring while building session factory    forum.hibernate.org

Hi can anyone help me, I am getting following exception when I am running my hibernate code from command line. javax.naming.NoInitialContextException: 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 at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.getNameParser(Unknown Source) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:306) ...

5. Exception while building sessionFactory    forum.hibernate.org

Hibernate version:3.2.6 The cfg file looks like this xxx.ism.core.hibernate.XXXConnectionProvider false org.hibernate.dialect.Oracle9Dialect true thread Problem We are running our application in a non-managed environment, therefore we are not using JNDI. In order to get a connection, we are using a custom connection provider which provides a connection object from an existing connection ...