• 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!