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.  [ 2 posts ] 
Author Message
 Post subject: Unable to construct current session context
PostPosted: Sun Jan 10, 2010 3:13 pm 
Newbie

Joined: Mon Dec 14, 2009 10:33 pm
Posts: 2
What does this exception really mean? I see this in a sample deployment but the actual changes I make are persisted to the database.

Here is the stack:

14:06:47,852 INFO [STDOUT] 14:06:47,852 ERROR [SessionFactoryImpl] Unable to construct current session context [org.hibernate.transaction.JDBCTransactionFactory]
java.lang.NoSuchMethodException: org.hibernate.transaction.JDBCTransactionFactory.<init>(org.hibernate.engine.SessionFactoryImplementor)
at java.lang.Class.getConstructor0(Class.java:2706)
at java.lang.Class.getConstructor(Class.java:1657)
at org.hibernate.impl.SessionFactoryImpl.buildCurrentSessionContext(SessionFactoryImpl.java:1044)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:366)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)


Top
 Profile  
 
 Post subject: Re: Unable to construct current session context
PostPosted: Mon Jan 11, 2010 8:59 am 
Newbie

Joined: Tue Jun 02, 2009 4:06 am
Posts: 16
Hi,

There is no init() method present in JDBCTransactionFactory class and hence you are getting the below exception.Open JDBCTransactionFactory class present in your hibernate.jar and check if you can see init() method present in it.

Which version of hibernate jar are you refering to?Try finding for this method(init) in another version of hibernate.jar

-kartik


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

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.