• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to load mapping definitions from jar file ?

 
Abhi Sal
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to load mapping definitions from jar file ?

I get following exception

org.hibernate.InvalidMappingException: Could not read mapping documents from jar:

I tried putting jar file having mapping definition files at the root of the class path, but no luck

Any clue ?

Thanks
Abhijit
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Normally the mapping file is in the same package as the Java file. And that's defined in the hibernate.cfg.xml.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without at least your configuration and jar layout it's going to be tough to help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic