This content has been marked as final. Show 1 reply
Nicky26 wrote:Java does not agree with you and Java is the boss.
While Executing Unit test from Eclipse itself, Keep getting exception saying......Unable to load entity class, it's not on the classpath, check your persistence.xml
if anyone have some clue on that?
Entity classes are in some different project in eclipse & have added those Entities jars in My classpath.
A thought: perhaps the wrong persistence.xml is loaded? In other words, do you have multiple persistence.xml files on the classpath?