-->
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: NoClassDefFoundError when in Servlet under Tomcat
PostPosted: Tue Feb 28, 2006 8:34 pm 
Newbie

Joined: Wed Feb 22, 2006 11:56 pm
Posts: 3
I am encountering this error (java.lang.NoClassDefFoundError: org/hibernate/cfg/HbmBinder$SecondPass) when I try to get a Hibernate session using the follow code:

Configuration cfg = new Configuration();
cfg.addClass(test.Widget.class);

The NoClassDefFoundError only occurs when I am running it inside a servlet in Tomcat. If I am running the exact same code in a standalone static main(), it works perfectly.

This is hibernate 3.1.2, and I have all the jars (including annotation) in my path.

Any help will be appreciated.


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.