-->
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/apache/commons/collections/SequencedHashMap
PostPosted: Mon Jan 02, 2006 8:44 am 
Newbie

Joined: Mon Nov 14, 2005 11:09 am
Posts: 2
Hibernate version: 3

Full stack trace of any exception that occurs:java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
at org.hibernate.mapping.Table.<init>(Table.java:33)
at org.hibernate.cfg.Mappings.addTable(Mappings.java:116)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:250)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:235)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:151)
at org.hibernate.cfg.Configuration.add(Configuration.java:360)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:397)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:446)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1313)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1285)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1267)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1234)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1162)
at org.hibernate.cfg.Configuration.configure

I have the following directory structure:

src\prg1

src contains:
prg1 <folder>
prg2 <folder>
hibernate.cfg.xml

hibernate.cfg.xml :

<mapping resource="prg1/tst1.hbm.xml"/>
<mapping resource="prg2/tst2.hbm.xml"/>

prg1:
tst1.java
tst1.hbm.xml

prg2:
tst2.java
tst2.hbm.xml


SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); throws the exception: org/apache/commons/collections/SequencedHashMap

I believe it is because hibernate not being able to locate the appropriate mapping file? Everything seems okie, to me. Can neone comment on the same ...
Thanks and regards,
Saurabh


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 02, 2006 10:42 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The Commons collection jar is not part of your classpath

_________________
Emmanuel


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.