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

Parsing error while opening Console Configuration

    XMLWordPrintable

Details

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

      STEP: Start DB (https://github.com/maxandersen/sakila-h2)
      STEP: Import (as a general or mavenproject) https://github.com/jbosstools/jbosstools-integration-tests/tree/master/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/mvn-hibernate40
      STEP: Create Hibernate configuration (enable creating Console Configuration)
      STEP: In console configuration select Hibernate 4.0
      STEP: Expand Hibernate Console
      ERROR: Could not parse configuration
      ASSERT: Console should be expandable without errors

      Show
      STEP: Start DB ( https://github.com/maxandersen/sakila-h2 ) STEP: Import (as a general or mavenproject) https://github.com/jbosstools/jbosstools-integration-tests/tree/master/tests/org.jboss.tools.hibernate.ui.bot.test/resources/prj/mvn-hibernate40 STEP: Create Hibernate configuration (enable creating Console Configuration) STEP: In console configuration select Hibernate 4.0 STEP: Expand Hibernate Console ERROR: Could not parse configuration ASSERT: Console should be expandable without errors

    Description

      org.hibernate.HibernateException: Could not parse configuration: C:\Users\jpeterka\workspace\b3\mvn-hibernate40\src\main\java\hibernate.cfg.xml
      Could not parse configuration: C:\Users\jpeterka\workspace\b3\mvn-hibernate40\src\main\java\hibernate.cfg.xml
      org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
      org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
      org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
      org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory

      Console configuration

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE hibernate-configuration PUBLIC
      		"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
      		"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
      <hibernate-configuration>
          <session-factory>
              <property name="hibernate.connection.driver_class">org.h2.Driver</property>
              <property name="hibernate.connection.url">jdbc:h2:tcp://localhost/sakila</property>
              <property name="hibernate.connection.username">sa</property>
              <property name="hibernate.dialect">org.hibernate.dialect.H2Dialect</property>
          </session-factory>
      </hibernate-configuration>
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: