-->
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.  [ 3 posts ] 
Author Message
 Post subject: java.lang.NoClassDefFoundError: org/odmg/DCollection
PostPosted: Tue Sep 23, 2003 7:42 am 
Beginner
Beginner

Joined: Mon Sep 22, 2003 7:16 am
Posts: 25
Whenever I set up a <one-to-many> tag, I'll get the above errors.

From the log, I found that the program was failed to create Configuration:
Code:
...
19:37:58,974  INFO Collection:166 - Mapping class: eg.Book -> book
19:38:00,682  INFO Collection:166 - Mapping class: eg.Child -> child
19:38:00,688  INFO Collection:166 - Mapping class: eg.Parent -> parent
// stop here if <one-to-many>
19:38:00,692  INFO Configuration:851 - Configured SessionFactory: null
19:38:00,903  INFO SessionFactoryImpl:122 - building session factory
19:38:00,931  INFO Dialect:36 - Using dialect: net.sf.hibernate.dialect.MySQLDialect
...


My hbm.xml is as follows:
Code:
...

   <class name="eg.Parent" table="parent">
      <id name="pid" column="pid" type="int" unsaved-value="0" >
         <generator class="assigned"/>
      </id>
      <property name="name">
         <column name="name" sql-type="varchar(10)" not-null="true"/>
      </property>
<!-- Error occur
      <set name="children" inverse="true" lazy="true" table="child">
         <key column="parent_pid"/>
         <one-to-many class="eg.Child"/>
      </set>
-->
   </class>
...


Any clues? Thx in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 23, 2003 8:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Yeah, make sure odmg.jar is on the classpath


Top
 Profile  
 
 Post subject: oops
PostPosted: Tue Sep 23, 2003 9:28 pm 
Beginner
Beginner

Joined: Mon Sep 22, 2003 7:16 am
Posts: 25
yeah ... my mistake
thx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.