Fellows, I�m getting started with Hibernate and i�m having some basic troubles with its configuration,as i explain further:
I have a folder called "beans" in my "src" folder that is located inside the "web-inf" folder.In the "beans" folder,i have a class called Client.java.In the same folder,I put the Client.hbm.xml,and I put the "hibernate.cfg.xml" in the root of the "src" folder.
Therefore,as I execute my app I�m facing the following exception: org.hibernate.MappingNotFoundException: resource: /WEB-INF/src/beans/Cliente.hbm.xml not found
I defined the mapping of the Client.hbm.xml file as:
Could someone please show me where am i going wrong?
Regards, Rafael Roque Sun Certified Programmer for Java 2 Platform Sun Certified Web Component Developer for Java 2 Enterprise Edition Sun Certified Enterprise Architect for Java 2 Platform,Enterprise Edition(I)
It is all about classpath, if the src is the root of your classpath it should work fine, which in war files are the root of the classpath for your Java files. Sorry actually WEB-INF/classes is the root of the classpath.