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.  [ 2 posts ] 
Author Message
 Post subject: Hibernates problem
PostPosted: Tue Apr 14, 2009 8:48 am 
Newbie

Joined: Wed Apr 08, 2009 4:57 am
Posts: 6
Location: FRANCE
hi,
i have a problem, when i execute my application i have this error
INFO: hibernate.properties not found
i don't know why it does not find properties


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 14, 2009 8:59 am 
Newbie

Joined: Wed Apr 08, 2009 4:57 am
Posts: 6
Location: FRANCE
in fact i have a lot of errors
Code:
14 avr. 2009 14:53:42 org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.2.5
14 avr. 2009 14:53:42 org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
14 avr. 2009 14:53:42 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : cglib
14 avr. 2009 14:53:42 org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
14 avr. 2009 14:53:42 org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
14 avr. 2009 14:53:42 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
14 avr. 2009 14:53:42 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : com/test/rsyncBean/Personne.hbm.xml
14 avr. 2009 14:53:42 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.test.rsyncBean.Personne -> personne
14 avr. 2009 14:53:42 org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : com/test/rsyncBean/Compte.hbm.xml
14 avr. 2009 14:53:42 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: com.test.rsyncBean.Compte -> compte
14 avr. 2009 14:53:42 org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Initial SessionFactory creation failed.org.hibernate.MappingException: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(PASSWORD)]
Exception in thread "main" java.lang.ExceptionInInitializerError
        at com.test.rsyncModel.HibernateUtil.<clinit>(HibernateUtil.java:30)
        at com.test.rsyncModel.EventManager.getPersonne(EventManager.java:29)
        at com.test.rsyncModel.EventManager.main(EventManager.java:20)
Caused by: org.hibernate.MappingException: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(PASSWORD)]
        at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)
        at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)
        at org.hibernate.mapping.Property.isValid(Property.java:185)
        at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:440)
        at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
        at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
        at com.test.rsyncModel.HibernateUtil.<clinit>(HibernateUtil.java:25)
        ... 2 more
Java Result: 1
[/quote]


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