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.  [ 4 posts ] 
Author Message
 Post subject: mappingnotfoundexception
PostPosted: Wed Dec 20, 2006 4:44 pm 
Newbie

Joined: Wed Dec 20, 2006 4:29 pm
Posts: 3
je travaille avec hibernate et netbeans , l'application marche tres bien dans l'ide mais quand je construit un jar je recoi cet exception

org.hibernate.mappingnotfoundexception


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 20, 2006 5:33 pm 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Où as tu mis tes fichiers hbm.xml ? Ce sont certainement ces fichiers qu'Hibernate ne trouve pas au démarrage. Peut-être as tu oublié d'inclure ces fichiers au packaging de ton jar ?

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 21, 2006 5:55 am 
Newbie

Joined: Wed Sep 14, 2005 12:25 pm
Posts: 14
Peut être manque t'il une ligne vers un de tes fichiers hbm.xml dans le fichier Hibernate.cfg.xml, un truc du genre :

<mapping resource="chemin/fichier.hbm.xml"/>

A moins que vue que les fichiers sont dans un .jar, il faut peut être revoir le chemin vers ces fichiers dans Hibernate.cfg.xml


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 25, 2006 1:54 pm 
Newbie

Joined: Wed Dec 20, 2006 4:29 pm
Posts: 3
le plugin hibernate de netbean ne cre pas un fichier config.xml mais un fichier .lst qui contient les chemin des beans
en + c l'ide qui a généré les fichier de configuration


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