5 Replies Latest reply: Dec 24, 2012 5:15 PM by dvohra21 RSS

    Could not write to persistence.xml file. java.lang.NullPointerException

      I have installed Oracle Enterprise Pack for Eclipse 12c Release 1 on Eclipse 4.2.1.

      When I try to create a JPA project at the last step when I click finish I get the error: "Could not write to persistence.xml file. java.lang.NullPointerException".


      My project settings are as follows:

      Platform: EclipseLink 2.4.x

      JPA Implementation: User Library (EclipseLink 2.4.1 - Juno)

      Connected to an Oracle 11.2 database.

      Persistent class management: Discover annotated classes automatically

      Target Runtime: jre7

      Project Facets: Default Configuration for jre7


      I have tried creating a project in a different workspace so I don't think it is a file permissions problem.

      Does anyone know why I'm getting this error?