org.hibernate.InvalidMappingException

Could not parse mapping document from file C:\mokader\CCA\workspace\samples\src\mapping\advert.hbm.xml

Solutions on the web227

  • Could not parse mapping document from file C:\mokader\CCA\workspace\samples\src\mapping\advert.hbm.xml
  • via Hibernate JIRA by Hai Nguyen, 1 year ago
    Could not parse mapping document from file C:\Documents and Settings\Hai Nguyen\workspace\laisWebv0.4\src\cz\raynet\lais\Response.hbm.xml
  • via Hibernate JIRA by Hai Nguyen, 9 months ago
    Could not parse mapping document from file C:\Documents and Settings\Hai Nguyen\workspace\laisWebv0.4\src\cz\raynet\lais\Response.hbm.xml
  • Stack trace

    • org.hibernate.InvalidMappingException: Could not parse mapping document from file C:\mokader\CCA\workspace\samples\src\mapping\advert.hbm.xml at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:4009) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXmlQueue(Configuration.java:3998) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3986) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1398) at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:1002) at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:130) at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:92) at org.hibernate.tool.hbm2ddl.SchemaExportTask.getSchemaExport(SchemaExportTask.java:241) at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:169) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:357) at org.apache.tools.ant.Target.performTasks(Target.java:385) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) at org.apache.tools.ant.Project.executeTarget(Project.java:1298) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) at org.apache.tools.ant.Project.executeTargets(Project.java:1181) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) Caused by: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping model.Advert at org.hibernate.cfg.Configuration$MappingsImpl.addClass(Configuration.java:3179) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:178) at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:4006) ... 24 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago