org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.xpn.xwiki.doc.XWikiDocument

XWiki.org JIRA | Jolanda Naafs | 7 years ago
  1. 0

    Dear Readers, After having a fine working version of the XWiki Enterprize version 1.8, I'm having trouble installing version 1.9. We use MS SQL Server and had our share of problems running XWiki on it, but they were all solvable. This time we need help.... While mapping the file xwiki.mssql.hbm.xml hibernate comes with the following error: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.xpn.xwiki.doc.XWikiDocument at org.hibernate.cfg.Mappings.addClass(Mappings.java:118) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:145) at org.hibernate.cfg.Configuration.add(Configuration.java:675) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:510) at org.hibernate.cfg.Configuration.addResource(Configuration.java:572) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514) at org.hibernate.cfg.Configuration.configure(Configuration.java:1434) at com.xpn.xwiki.store.XWikiHiber...... The hibernate settings we use: <!-- MSSQL Configuration --> <property name="connection.url">jdbc:jtds:sqlserver://localhost:3306/xwiki;tds=8.0;lastupdatecount=true</property> <property name="connection.username">xxx</property> <property name="connection.password">yyy</property> <property name="connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.SQLServerDialect</property> <property name="connection.provider_class">com.xpn.xwiki.store.DBCPConnectionProvider</property> <property name="connection.pool_size">2</property> <property name="statement_cache.size">2</property> <mapping resource="xwiki.mssql.hbm.xml"/> I hope someone has the answer to this missery. Kind regards, Jolanda Naafs

    XWiki.org JIRA | 7 years ago | Jolanda Naafs
    org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.xpn.xwiki.doc.XWikiDocument
  2. 0

    [LPS-18176] Error in using Ext plugin (which is created using Plugin SDK 6.0) - Liferay Issues

    liferay.com | 12 months ago
    org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl
  3. 0

    Hibernate-Could not parse mapping document from input stream

    Stack Overflow | 2 years ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF//applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Grails User (Old Archive) - Issues after upgrade to grails 1.2.0

    nabble.com | 5 months ago
    org.hibernate.DuplicateMappingException: Duplicate class/entity > mapping UserUsage
  6. 0

    My Experience With Hibernate: Schema text failed: Could not parse mapping document from file \samples\src\mapping\advert.hbm.xml

    blogspot.com | 4 months ago
    org.hibernate.InvalidMappingException: Could not parse mapping document from file C:\mokader\CCA\workspace\samples\src\mapping\advert.hbm.xml

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.DuplicateMappingException

      Duplicate class/entity mapping com.xpn.xwiki.doc.XWikiDocument

      at org.hibernate.cfg.Mappings.addClass()
    2. Hibernate
      Configuration.configure
      1. org.hibernate.cfg.Mappings.addClass(Mappings.java:118)
      2. org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:145)
      3. org.hibernate.cfg.Configuration.add(Configuration.java:675)
      4. org.hibernate.cfg.Configuration.addInputStream(Configuration.java:510)
      5. org.hibernate.cfg.Configuration.addResource(Configuration.java:572)
      6. org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
      7. org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
      8. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
      9. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
      10. org.hibernate.cfg.Configuration.configure(Configuration.java:1434)
      10 frames