Patria - 2003-11-05

Hi all

has anyone know why I am getting this type of problems? I am running Eclipse 2.1.1, hibernator 0.9.6 and it does connect and starts loading the mappings correctly but it fails in loading the following one:

***********************************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN"
   "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>

  <class name="com.sp.fbb.businessobject.goal.Goal" table="FBB_GOAL" dynamic-insert="true" dynamic-update="true">
     <id name="goalID" column="GOAL_ID" type="java.lang.Long">
         <generator class="sequence">
            <param name="sequence">FBB_GOAL_PK_SEQ</param>
         </generator>
     </id>

     <property column="NAM_GOAL_ID" length="12" name="namGoalID" type="java.lang.Long" />
     <property column="HHOLD_ID" length="12" name="householdID" type="java.lang.Long" insert="false" />
     <property column="USER_ID" length="12" name="producerID" type="java.lang.Long" />
     <property column="GOAL_NAME"   name="name" length="30" type="string" not-null="true" />
     <property column="GOAL_DESCRIPTION" name="description" length="1024" type="string" />
     <property column="GOAL_ACTIVE"  name="active" length="1" type="string" />
     <property column="GOAL_ISDUMMY" name="dummy" length="1" type="string" />
     <property column="TAAM_COMPLETED"  name="taamCompleted" type="string" length="1" update="true" insert="false"/>
     <property column="GOAL_HH_ACTIVE" name="isLinkedToHH" type="string" length="1" />
     <property column="GOAL_HH_LMD" length="7"  name="goalHHLinklastModifiedDate" type="timestamp" update="true"/>
     <property column="LAST_MODIFIED_DATE"  name="lastModifiedDate" type="timestamp" update="false" insert="false"/>
     <property column="IMPL_ID" length="1024" name="implementationID" type="java.lang.String"/>
     <property column="IMPL_COMMENTS" length="1024" name="implementationComments" type="java.lang.String"/>
     <property column="GOALCTGRY_ID" length="12" name="goalCategoryID" not-null="true"  type="java.lang.Long"/>

     <set name="accounts" table="FBB_ACCOUNT" inverse="true" lazy="true">
     <key column="GOAL_ID"   />
       <one-to-many class="com.sp.fbb.businessobject.account.FbbAccount"/>
     </set>

</class>

</hibernate-mapping>
*************************************

and this is the output in the hibernator log:

***************************
Adding Mapping - C:/Eclipse/FBB/src/com/sp/fbb/businessobject/account/taam/TaamBasketBridge.hbm.xml
Adding Mapping - C:/Eclipse/FBB/src/com/sp/fbb/businessobject/account/taam/FbbTaam.hbm.xml
Adding Mapping - C:/Eclipse/FBB/src/com/sp/fbb/businessobject/account/summary/SelectedAssetAllocation.hbm.xml
Adding Mapping - C:/Eclipse/FBB/src/com/sp/fbb/businessobject/account/summary/Goal.hbm.xml
java.lang.ClassNotFoundException: com.sp.fbb.businessobject.account.AccountGoal
at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:866)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:73)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:155)
at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:168)
at net.sf.hibernator.views.ConnectionView$8.run(ConnectionView.java:199)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
rethrown as net.sf.hibernate.MappingException: persistent class not found: com.sp.fbb.businessobject.account.AccountGoal
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:76)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:155)
at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:168)
at net.sf.hibernator.views.ConnectionView$8.run(ConnectionView.java:199)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Caused by: java.lang.ClassNotFoundException: com.sp.fbb.businessobject.account.AccountGoal
at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:866)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:73)
... 7 more
rethrown as net.sf.hibernate.MappingException: persistent class not found: com.sp.fbb.businessobject.account.AccountGoal
at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:159)
at net.sf.hibernator.HibernateConnection.createConnection(HibernateConnection.java:168)
at net.sf.hibernator.views.ConnectionView$8.run(ConnectionView.java:199)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Caused by: net.sf.hibernate.MappingException: persistent class not found: com.sp.fbb.businessobject.account.AccountGoal
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:76)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:165)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1095)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:230)
at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:155)
... 3 more
Caused by: java.lang.ClassNotFoundException: com.sp.fbb.businessobject.account.AccountGoal
at org.eclipse.core.internal.boot.DelegatingURLClassLoader.loadClass(DelegatingURLClassLoader.java:866)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:268)
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:73)
... 7 more

**********************************

will appreciate any help
thanks
P