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.