facebook

JPA project migration to 2013 – wrong persistense.xml path

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #344412 Reply

    Sam Muthu
    Member

    Experts – Could you please help me with the following?

    1) Imported a JPA project which was created in MyEclipse 10.x
    2) Migration assistant popped up and migrated the project.
    3) After migration the following persistance.xml file was generated

    src/main/java/META-INF/persistence.xml

    Actual peristence.xml is located at the following path

    src/main/resources/META-INF/persistence.xml

    My deployment is failing, how to tell myeclipse to refer the actual file when deployed on a server. If built and deployed outside of MyEclipse there is no issue.

    Appreciate your quick response.

    #344421 Reply

    support-swapna
    Moderator

    sammuthu,

    Sorry that you are seeing this issue. You can remove the persistence.xml that is generated by MyEclipse.

    Can you please send us all the .* files of the project along with the pom.xml from before the migration to help us ensure that the persistence.xml is not generated again upon project migration?

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JPA project migration to 2013 – wrong persistense.xml path

You must be logged in to post in the forum log in