facebook

Problem with Hibernate Tutorial part II

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #335767 Reply

    IgnatzMouse
    Member

    as follow own to http://www.myeclipseide.com/PNphpBB2-viewtopic-t-29639-sid-dee7ed6d75733436af5d2ad9d90d39c9.html
    I now run in a problem, when running my hibernate app with the following exception:

    22.02.2013 13:18:39 org.hibernate.cfg.Configuration addResource
    INFO: HHH000221: Reading mappings from resource: com/myeclipse/hibernate/Counter.hbm.xml
    %%%% Error Creating SessionFactory %%%%
    org.hibernate.InvalidMappingException: Unable to read XML
    &nbsp&nbsp&nbsp&nbspat org.hibernate.internal.util.xml.MappingReader.readMappingDocument(MappingReader.java:109)
    &nbsp&nbsp&nbsp&nbspat org.hibernate.cfg.Configuration.add(Configuration.java:478)
    &nbsp&nbsp&nbsp&nbspat org.hibernate.cfg.Configuration.add(Configuration.java:474)
    &nbsp&nbsp&nbsp&nbspat org.hibernate.cfg.Configuration.add(Configuration.java:647)
    &nbsp&nbsp&nbsp&nbspat org.hibernate.cfg.Configuration.addResource(Configuration.java:730)
    &nbsp&nbsp&nbsp&nbspat org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2109)
    &nbsp&nbsp&nbsp&nbsp:

    Which XML is missing?

    #335873 Reply

    IgnatzMouse,

    Can you please remove the extra space (if there) at the end of the DTDs and check if you can still replicate the issue ?. Open all xml files in your project, remove the extra space at the end of DTDs in all the files.

    For more information can you please check this :
    http://stackoverflow.com/questions/13920089/error-creating-sessionfactory-hibernate-in-myeclipse-reverse-engineered-database

    Let us know how it works for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Problem with Hibernate Tutorial part II

You must be logged in to post in the forum log in