• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven2 with Spring2.5+Hibernate3

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to implement a project with the frameworks that you can see on the title.
I have two versions of this application, one with ant and one with maven.

When I build my code with ant it works without any problem but when I try to build it with maven it throws me a hibernate exception.

org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity:

By googling it I've found that this exception has been thrown due to hibernate can't find the mapping file.

My question is, if hibernate can find the file when I build the project with ant, is there any specific configuration that I need to do when I used hibernate with maven?

For example do I have to specify the class paths somewhere in the pom.

Thank you.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where did you put your config files? It should go under the resources dir tree.
 
Kerem Yazici
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:Where did you put your config files? It should go under the resources dir tree.



Thank you David. It works fine now.
It was in my classpath and I was using


now I changed it to




and it works fine now.


 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic