-->
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: org/hibernate/cfg/HbmBinder$SecondPass not found in 3.1.2
PostPosted: Thu Feb 23, 2006 12:08 am 
Newbie

Joined: Wed Feb 22, 2006 11:56 pm
Posts: 3
I am getting this error while trying to instantiate a Hibernate session:

-----------
java.lang.NoClassDefFoundError: org/hibernate/cfg/HbmBinder$SecondPass
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1779)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
org.hibernate.cfg.Configuration.add(Configuration.java:385)
org.hibernate.cfg.Configuration.addInputStream(Configuration.java:426)
org.hibernate.cfg.Configuration.addClass(Configuration.java:502)
----------

I checked hibernate.jar and there is no such class.

The code used to get session:

public DatabaseSession() {
try {
Configuration cfg = new Configuration();
cfg.addClass(com.Test.class);
sessionFactory = cfg.buildSessionFactory();
} catch (Exception ex) {
// Log exception!
log.error("trying to create db session factor", ex);
throw new ExceptionInInitializerError(ex);
}
}


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 23, 2006 4:54 pm 
Newbie

Joined: Wed Feb 22, 2006 11:56 pm
Posts: 3
Problem is solved by upgrading to the latest Hibernate Tools jar beta 18.


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.