| 
					
						 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 
					
  
						
					 |