-->
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.  [ 6 posts ] 
Author Message
 Post subject: hibernate plugin for eclipse (URGENT)
PostPosted: Tue Nov 04, 2003 10:00 am 
Beginner
Beginner

Joined: Thu Oct 02, 2003 8:02 am
Posts: 45
I have installed hibernate plugin for eclipse (version 0.9.6).
When i create a connection view by selecting a eclipse project, none hbm.xml files included in the project appear in the right window.
And so, i continue the configuration and when i connect the view, i get the following message in the hibernate log

Ignoring resources in Project output: /portailCfort/WEB-INF/classes

what does it mean?


Top
 Profile  
 
 Post subject: hibernate 0.9.6 plugin problem
PostPosted: Tue Nov 04, 2003 11:20 am 
Newbie

Joined: Wed Oct 22, 2003 12:59 pm
Posts: 14
i also installed the latest version for Eclipse 2.1.1 but it does load the mappings except for this one:

goal.hbm.xml

Code:
<?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 an extract of the log in the Hibernator Log view


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



Any idea why this is happening?
thanks
P


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 04, 2003 12:58 pm 
Newbie

Joined: Tue Nov 04, 2003 12:53 pm
Posts: 3
Location: Washington, DC
are you guys in the wrong forum? i think theres a hibernator forum on sourceforge which will probably help you out more


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 04, 2003 1:01 pm 
Newbie

Joined: Tue Nov 04, 2003 12:53 pm
Posts: 3
Location: Washington, DC
oh yeah and check out your eclipse log it will probably give you a better error for that then that hibernator console thing


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 04, 2003 9:18 pm 
Newbie

Joined: Tue Sep 23, 2003 7:30 pm
Posts: 7
Location: Melbourne, Australia
Yes as the above says go to the Hibernator forum (http://sourceforge.net/forum/forum.php?forum_id=232309)

and maybe we could check out the <workspace>/.metadatal/.log file as well.

Also I fail to see how this could be urgent, please don't generate that kind of forum noise.

The ignoring resources message is just an info message to say that it is looking for *.hbm.xml mapping files all over the selected projects, but ignoring any mapping files in the output location. This is there because it may find duplicates if your mapping files are in your source area and are copied across into your classes area as part of the Eclipse build process.

Daniel


Top
 Profile  
 
 Post subject: Some explanations about URGENT
PostPosted: Wed Nov 05, 2003 4:09 am 
Beginner
Beginner

Joined: Thu Oct 02, 2003 8:02 am
Posts: 45
I use the term URGENT because i spent about one day to make it works and i didn't know the existence of the forum about the plug in.


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