Results 1 to 2 of 2
  1. #1
    Matang is offline Member
    Join Date
    Mar 2011
    Posts
    8
    Rep Power
    0

    Exclamation directory location of persistence.xml fiel

    HI i m new user of hibernate and i m trying out with JPA.I hv read abt the JPA and persistence.xml fiel but i can not get idea where to put the persistence.xml fiel and in which directory. I am using Eclipse IDE.Where i try to run the code the errror shows:
    No Persistence provider for EntityManager named firstexample

    Thanks and redards..

  2. #2
    sibernewf is offline Member
    Join Date
    Mar 2011
    Posts
    48
    Rep Power
    0

    Default

    persistence.xml usually resides in your META-INF directory.

    In my projects (I use the Maven project folder structure) its in the: appName\src\main\resources\META-INF\persistence.xml directory.

    Hope that helps

Similar Threads

  1. Persistence
    By frexjeff in forum Advanced Java
    Replies: 1
    Last Post: 01-21-2011, 04:03 PM
  2. help me with persistence
    By halyal in forum NetBeans
    Replies: 14
    Last Post: 09-04-2010, 10:20 AM
  3. Fiel read suggestion needed
    By mac in forum New To Java
    Replies: 3
    Last Post: 05-28-2010, 11:50 PM
  4. need to copy file from one location to another location
    By naveen.dpt2007 in forum New To Java
    Replies: 4
    Last Post: 02-28-2010, 03:53 PM
  5. location provider returns no location
    By sandeeprao.techno in forum CLDC and MIDP
    Replies: 0
    Last Post: 09-24-2009, 09:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •