Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15288

Invalid persistence.xml error when opening hibernate console for JPA 2.1 project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 4.2.0.CR1
    • 4.1.0.CR1
    • hibernate
    • None
    • Hide

      STEP: Create JPA Project, set JPA version to 2.1
      STEP: Set connection profile, disable library configuration
      STEP: Open hibernate configuration
      STEP: Try to expand it
      ASSERT: Configuration should be expanded without errors

      Show
      STEP: Create JPA Project, set JPA version to 2.1 STEP: Set connection profile, disable library configuration STEP: Open hibernate configuration STEP: Try to expand it ASSERT: Configuration should be expanded without errors
    • High

      Error while expanding JPA project with JPA 2.1
      This works ok when JPA 2.0 is used

      org.hibernate.console.HibernateConsoleRuntimeException: Could not create JPA based Configuration
      Could not create JPA based Configuration
        <No message>
        java.lang.reflect.InvocationTargetException
          java.lang.reflect.InvocationTargetException: <no message>
          java.lang.reflect.InvocationTargetException
          javax.persistence.PersistenceException: Invalid persistence.xml.
      Error parsing XML (line-1 : column -1): cvc-elt.1: Cannot find the declaration of element 'persistence'.
      
          Invalid persistence.xml.
      Error parsing XML (line-1 : column -1): cvc-elt.1: Cannot find the declaration of element 'persistence'.
      

            kaers@redhat.com Koen Aers
            jpeterka_jira Jiri Peterka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: