Hi Nicklas,
IF ,I had kept the hbm file with the class package itself.
Then while executing the command it shows like..
D:\RiskManagement_Workspace\HiberanteConfiguration\target>jar -tf HiberanteConfiguration-1.war
META-INF/
META-INF/MANIFEST.MF
WEB-INF/
WEB-INF/classes/
WEB-INF/classes/com/
WEB-INF/classes/com/dms/
WEB-INF/classes/com/dms/sample/
WEB-INF/classes/com/dms/ws/
WEB-INF/classes/META-INF/
WEB-INF/lib/
WEB-INF/beans.xml
WEB-INF/classes/com/dms/sample/Customer.class
WEB-INF/classes/com/dms/sample/CustomerManagerBean.class
WEB-INF/classes/com/dms/ws/ServiceCustomer.class
WEB-INF/classes/META-INF/persistence.xml
WEB-INF/faces-config.xml
WEB-INF/lib/antlr-2.7.6.jar
WEB-INF/lib/asm-3.1.jar
WEB-INF/lib/cglib-2.2.jar
WEB-INF/lib/commons-collections-3.2.1.jar
WEB-INF/lib/commons-logging-1.1.1.jar
WEB-INF/lib/dom4j-1.6.1.jar
WEB-INF/lib/hibernate-annotations-3.5.6-Final.jar
WEB-INF/lib/hibernate-commons-annotations-3.2.0.Final.jar
WEB-INF/lib/hibernate-core-3.5.6-Final.jar
WEB-INF/lib/hibernate-jpa-2.0-api-1.0.0.Final.jar
WEB-INF/lib/hibernate3-3.2.3.GA.jar
WEB-INF/lib/javax.annotation-api-1.2-b02.jar
WEB-INF/lib/javax.ejb-api-3.2-b01.jar
WEB-INF/lib/javax.transaction-api-1.2-b01.jar
WEB-INF/lib/javax.ws.rs-api-2.0-rc1.jar
WEB-INF/lib/javax.xml.rpc-api-1.1.jar
WEB-INF/lib/jta-1.1.jar
WEB-INF/lib/mysql-connector-java-5.1.9.jar
WEB-INF/lib/slf4j-api-1.6.1.jar
WEB-INF/lib/xml-apis-1.0.b2.jar
WEB-INF/web.xml
META-INF/maven/
META-INF/maven/ProofOfConcept/
META-INF/maven/ProofOfConcept/HiberanteConfiguration/
META-INF/maven/ProofOfConcept/HiberanteConfiguration/pom.xml
META-INF/maven/ProofOfConcept/HiberanteConfiguration/pom.properties
i.e the hbm file is not included in this war.
chitra devi wrote:
Hi Nicklas,
Mapping files are placed in src/main/resources --- META-INF folder. -- Customer.hbm.file
Based on the persistence.xml you have posted, you'll have to place that Customer.hbm.xml file in src/main/resources/com/dms/sample folder.