1 Reply Latest reply: Feb 3, 2012 3:09 AM by gimbal2 RSS

    Classnot found exception- persistence.xml

    863926
      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.
        • 1. Re: Classnot found exception- persistence.xml
          gimbal2
          Nicky26 wrote:
          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.
          Java does not agree with you and Java is the boss.

          A thought: perhaps the wrong persistence.xml is loaded? In other words, do you have multiple persistence.xml files on the classpath?