2 Replies Latest reply: Jul 23, 2012 10:10 AM by cdelahun RSS

    javax.persistence.PersistenceException in C:\Program Files

    950935
      When I run my application located in "C:\Program Files\MyAp" displays the following error in console.

      C:\Program Files (x86)\MyAp>java -jar APLICACION.jar

      Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: No Persistence provider for EntityManager named EntidadPrincipal;databaseName=Documentos: The following providers:
      oracle.toplink.essentials.PersistenceProvider
      oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
      Returned null to createEntityManagerFactory.

      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.
      java:154)
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.
      java:83)
      at com.vgs.radl.view.Inicio.initComponents(Inicio.java:185)
      at com.vgs.radl.view.Inicio.<init>(Inicio.java:85)
      at com.vgs.radl.view.Inicio$106.run(Inicio.java:5276)
      at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
      ad.java:273)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
      java:183)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
      ad.java:173)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

      at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)



      But when I run it from anywhere else other than Program Files or Program Files (x86), works perfectly.


      I appreciate your support.