View RSS Feed

My Java Tips

  1. No Persistence provider for EntityManager

    by , 06-02-2011 at 08:15 PM (My Java Tips)
    You might have encountered the following exception while working with hibernate:

    Java Code:
    [java] Exception in thread "main" javax.persistence.PersistenceException: 
    No Persistence provider for EntityManager named  ****
    Make sure you have all the required jars in the class path.

    Java Code:
          \antlr-2.7.6.jar
          \asm.jar
          \asm-attrs.jar
          \c3p0-0.9.0.jar
          \cglib-2.1.3.jar
    ...