Ganesan Shankar

Greenhorn
+ Follow
since May 07, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ganesan Shankar

Added testService project to testWeb "Deployment Assembly" and now it works.

Thanks.
When the Hibernate Entity bean(Product.java in testService) is declared outside the dymanic web project, hibernate could not load the class Product.java. But when Product.java is placed in testWeb it is working fine.
Please help to access the Entity that is declared outside the dynamic web project.

Project created in Eclipse Mars2

Project Structure:
==========


Error:


Thanks in advance
Thank you. It works after moving all the jars to WEB-INF/lib.
8 years ago
I have corrected the typo error in my previous post (it is userdetails.hbm.xml)
8 years ago
Thank you Karthik for your quick rely.
Below are the approaches I tried, but getting the same error in all the attempts




Source Structure:
Java Resources
--src
----config.db
--------database.properties
--------hibernate-cfg.xml
----config.db.mapping
--------userdetails.hbm.xml
WebContent

userdetails.hbm.xml:
=============


Product.java:
========
8 years ago
hibernate-cfg.xml:


Error while starting tomcat:


Please help to solve the issue.

Thanks in advance.
8 years ago