-->
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.  [ 11 posts ] 
Author Message
 Post subject: I can't use the hibern8IDE ....help!!!
PostPosted: Mon Apr 12, 2004 4:21 am 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
classpath

Code:
set CLASSPATH=d:\hibern8ide\lib\pf-joi-full.jar;d:\hibern8ide\hibern8ide.jar;F:\hibernate-2.1.2\hibernate-2.1\hibernate2.jar;F:\hibernate-2.1.2\hibernate-2.1\lib\dom4j-1.4.jar;d:\hibern8ide\jdom.jar;D:\JBuilder9\lib\ext\classes12.jar;d:\hibern8ide\lib\jgraph.jar;D:\commons-logging-1.0.3\commons-logging.jar;D:\hibern8ide\commons-lang-2.0\commons-lang-2.0.jar;D:\hibern8ide\commons-collections-3.0\commons-collections-3.0.jar;D:\hibern8ide\dom4j-1.4.jar;D:\quickstart\quickstart;


java net.sf.hibern8ide.Hibern8IDE

the IDE FACE of the hibernate8ide can show,but when i choose the hibernate.properties and hibernate.cfg.xml,and then add the hbm file....

when i press the bottom of the apply ,it tells me the error
:

Code:
net.sf.hibernate.MappingException: duplicate import Cat

i can't understand how to treat this!!!
help,thanks a lot!!!


Top
 Profile  
 
 Post subject: the holl code runs ok in jbuilder9
PostPosted: Mon Apr 12, 2004 4:26 am 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
the holl code runs ok in jbuilder9


Top
 Profile  
 
 Post subject: unwanted import statement in map ?
PostPosted: Mon Apr 12, 2004 7:00 am 
Newbie

Joined: Mon Apr 05, 2004 3:14 am
Posts: 13
i ran into similar error when i had unwanted import statement in my map file.


Top
 Profile  
 
 Post subject: can you tell me the true reason!
PostPosted: Mon Apr 12, 2004 7:08 am 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
can you tell me the true reason!

thanks a lot!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 12, 2004 7:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
as he says - you probably have add'ed both Cat.hbm.xml in the hbm.xml list and via the hibernate.cfg.xml

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: but here still some problem!!
PostPosted: Mon Apr 12, 2004 11:38 am 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
as you say ,i only choose the hibernate.properties and the hibernate.cfg.xml(because i write some :<mapping resource="./com/one2many/Person.hbm.xml"/>)

but here still some problem,when i press the botton of apply ,it tell me nothing ,it like nothing happen!!

here is my run.bat for the IDE--->
java -classpath F:\ElsaJava\database\hibernate2.1.1\hibernate2.jar;F:\ElsaJava\IDE\hibern8ide-0.9\hibern8ide-0.9\hibern8ide.jar;F:\ElsaJava\IDE\hibern8ide-0.9\hibern8ide-0.9\lib\pf-joi-full.jar;F:\ElsaJava\database\hibernate2.1.1\lib\commons-logging.jar;F:\ElsaJava\database\hibernate2.1.1\lib\commons-collections.jar;F:\ElsaJava\database\hibernate2.1.1\lib\commons-lang.jar;F:\ElsaJava\database\hibernate2.1.1\lib\jdom.jar;F:\ElsaJava\database\hibernate2.1.1\lib\dom4j.jar;F:\ElsaJava\database\hibernate2.1.1\lib\odmg.jar;F:\ElsaJava\CodeHibernate\hibernate\classes;E:\oracle\ora81\jdbc\lib\classes12.jar;F:\ElsaJava\database\hibernate2.1.1\lib\ehcache.jar net.sf.hibern8ide.Hibern8IDE

here is my file:
hibernate.properties--->
## Oracle
#hibernate.dialect net.sf.hibernate.dialect.OracleDialect
#hibernate.connection.driver_class oracle.jdbc.driver.OracleDriver
#hibernate.connection.username sfhc
#hibernate.connection.password b
#####hibernate.connection.url jdbc:oracle:thin:@192.168.3.35:1521:test
#hibernate.connection.url jdbc:oracle:oci8:@platform


hibernate.cfg.xml-->
<?xml version="1.0" encoding="GB2312"?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuratin DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>

<property name="show_sql">true</property>
<property name="hibernate.dialect">net.sf.hibernate.dialect.OracleDialect</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.username">hibernate</property>
<property name="hibernate.connection.password">hibernate</property>
<property name="hibernate.connection.url">jdbc:oracle:oci8:@platform</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.jdbc.fetch_size">50</property>
<property name="hibernate.jdbc.batch_size">25</property>
<property name="hibernate.cglib.use_reflection_optimizer">false</property>
<mapping resource="./com/one2many/Person.hbm.xml"/>
<mapping resource="./com/one2many/Author.hbm.xml"/>
<mapping resource="./com/one2many/Publication.hbm.xml"/>

</session-factory>
</hibernate-configuration>

thanks a lot for everyone who want to help me!!!!
the whole code run ok in the jbuilder9


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 12, 2004 11:50 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what does the log contain ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: i am a new to the ide....
PostPosted: Mon Apr 12, 2004 12:02 pm 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
i am a new to the ide,i don't know where the log file is,and what is the name of the log file


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 12, 2004 12:18 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
it uses whatever your hibernate is configured to do...so if you haven't done anything i guess it will be logged to the console

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: thanks ...but
PostPosted: Mon Apr 12, 2004 12:26 pm 
Regular
Regular

Joined: Tue Dec 30, 2003 2:35 am
Posts: 85
the console tells no error,but get many info,it looks like run ok,but when i type the hsql

select tt from com.one2many.Author as tt

it tells me that:hibernate not yet configured


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 12, 2004 12:41 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
if it says that then you have not pressed Apply or an exception has occurred...could you try and step through the code and see when it fails ?

_________________
Max
Don't forget to rate


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