-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Could not instantiate TransactionManagerLookup
PostPosted: Mon Mar 05, 2007 3:12 am 
Newbie

Joined: Mon Mar 05, 2007 3:02 am
Posts: 3
when i run first application of hibernate through hibernate document at:
http://www.hibernate.org/hib_docs/v3/reference/en/html/

I get this error : Initial SessionFactory creation failed.org.hibernate.HibernateException: Could not instantiate TransactionManagerLookup.

This is my hibernate.cfg.xml :
///////////////////////////////////////////
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>

<session-factory>
<property name="myeclipse.connection.profile">test</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/test1
</property>
<property name="connection.username">root</property>
<property name="connection.password">root</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>

<property name="connection.pool_size">1</property>

<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>

<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>

<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>

<!-- Drop and re-create the database schema on startup -->
<property name="transaction.manager_lookup_class">
org.hibernate.transaction.TransactionManagerLookup
</property>

<mapping resource="com/dto/Event.hbm.xml"></mapping>

</session-factory>

</hibernate-configuration>
//////////////////////////////////////////

Please help me to sovle this problem or tell me what cause this error, thank you so much for your help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.