javax.persistence.PersistenceException: Unable to locate persistence units

openxava | volt88 | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    UpdateSchema y MS SQL Server

    openxava | 8 months ago | volt88
    javax.persistence.PersistenceException: Unable to locate persistence units
  2. 0

    OpenXava / Discussion / Ayuda (Español):UpdateSchema y MS SQL Server

    sourceforge.net | 6 months ago
    javax.persistence.PersistenceException: Unable to locate persistence units
  3. 0

    algaworks.com | 11 months ago
    javax.persistence.PersistenceException: Unable to locate persistence units
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors

    Root Cause Analysis

    1. javax.persistence.PersistenceException

      Invalid persistence.xml. Error parsing XML [line : -1, column : -1] : cvc-complex-type.3.2.2: No está permitido que el atributo 'defaultTransactionIsolation' aparezca en el elemento 'property'.

      at org.hibernate.jpa.boot.internal.PersistenceXmlParser.validate()
    2. org.hibernate.jpa
      HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull
      1. org.hibernate.jpa.boot.internal.PersistenceXmlParser.validate(PersistenceXmlParser.java:377)
      2. org.hibernate.jpa.boot.internal.PersistenceXmlParser.loadUrl(PersistenceXmlParser.java:310)
      3. org.hibernate.jpa.boot.internal.PersistenceXmlParser.parsePersistenceXml(PersistenceXmlParser.java:114)
      4. org.hibernate.jpa.boot.internal.PersistenceXmlParser.doResolve(PersistenceXmlParser.java:104)
      5. org.hibernate.jpa.boot.internal.PersistenceXmlParser.locatePersistenceUnits(PersistenceXmlParser.java:86)
      6. org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull(HibernatePersistenceProvider.java:97)
      6 frames
    3. Hibernate EJB
      HibernatePersistence.getEntityManagerFactoryBuilderOrNull
      1. org.hibernate.ejb.HibernatePersistence.getEntityManagerFactoryBuilderOrNull(HibernatePersistence.java:93)
      1 frame
    4. org.hibernate.jpa
      HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull
      1. org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull(HibernatePersistenceProvider.java:88)
      1 frame
    5. Hibernate EJB
      HibernatePersistence.getEntityManagerFactoryBuilderOrNull
      1. org.hibernate.ejb.HibernatePersistence.getEntityManagerFactoryBuilderOrNull(HibernatePersistence.java:101)
      1 frame
    6. org.hibernate.jpa
      HibernatePersistenceProvider.createEntityManagerFactory
      1. org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:69)
      1 frame
    7. Hibernate EJB
      HibernatePersistence.createEntityManagerFactory
      1. org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:54)
      1 frame
    8. JavaEE 7
      Persistence.createEntityManagerFactory
      1. javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
      1 frame
    9. org.openxava.jpa
      XPersistence.getManager
      1. org.openxava.jpa.XPersistence.getEntityManagerFactory(XPersistence.java:197)
      2. org.openxava.jpa.XPersistence.createManager(XPersistence.java:112)
      3. org.openxava.jpa.XPersistence.openManager(XPersistence.java:128)
      4. org.openxava.jpa.XPersistence.getManager(XPersistence.java:98)
      4 frames
    10. org.openxava.tools
      SchemaTool.main
      1. org.openxava.tools.SchemaTool.execute(SchemaTool.java:75)
      2. org.openxava.tools.SchemaTool.updateSchema(SchemaTool.java:53)
      3. org.openxava.tools.SchemaTool.main(SchemaTool.java:42)
      3 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    12. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
      2. org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
      3. org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
      4. org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
      5. org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
      6. org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
      7. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      7 frames
    13. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3. java.lang.reflect.Method.invoke(Unknown Source)
      3 frames
    14. Ant
      SingleCheckExecutor.executeTargets
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.Target.execute(Target.java:435)
      4. org.apache.tools.ant.Target.performTasks(Target.java:456)
      5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
      6. org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
      6 frames
    15. org.eclipse.ant
      EclipseSingleCheckExecutor.executeTargets
      1. org.eclipse.ant.internal.launching.remote.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:34)
      1 frame
    16. Ant
      UnknownElement.execute
      1. org.apache.tools.ant.Project.executeTargets(Project.java:1248)
      2. org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
      3. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
      3 frames
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    18. Ant
      DefaultExecutor.executeTargets
      1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      2. org.apache.tools.ant.Task.perform(Task.java:348)
      3. org.apache.tools.ant.Target.execute(Target.java:435)
      4. org.apache.tools.ant.Target.performTasks(Target.java:456)
      5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
      6. org.apache.tools.ant.Project.executeTarget(Project.java:1364)
      7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      7 frames
    19. org.eclipse.ant
      EclipseDefaultExecutor.executeTargets
      1. org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:36)
      1 frame
    20. Ant
      Project.executeTargets
      1. org.apache.tools.ant.Project.executeTargets(Project.java:1248)
      1 frame
    21. org.eclipse.ant
      InternalAntRunner.main
      1. org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:453)
      2. org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:140)
      2 frames