[jboss-user] [JBoss Tools (users)] - Re: Hibernate SchemaExport

fabricio.lemos do-not-reply at jboss.com
Tue May 20 09:19:46 EDT 2008


I tried to reproduce the error, but now SchemeExport is disable. When I try to expand the configuration, it gives me the error: 

org.hibernate.InvalidMappingException: Could not parse mapping document from file

In the log file I have:


  | 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
  | 	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
  | 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.prototipo.model.Person
  | 	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:669)
  | 	at org.hibernate.cfg.Configuration.addFile(Configuration.java:309)
  | 	... 9 more
  | !SUBENTRY 2 org.hibernate.eclipse.console 4 150 2008-05-20 10:11:40.030
  | !MESSAGE org.hibernate.InvalidMappingException: Could not parse mapping document from file C:\workspaces\jbosstools3\teste\src\main\resources\person.hbm.xml
  | !STACK 0
  | org.hibernate.InvalidMappingException: Could not parse mapping document from file C:\workspaces\jbosstools3\teste\src\main\resources\person.hbm.xml
  | 	at org.hibernate.cfg.Configuration.addFile(Configuration.java:319)
  | 	at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:225)
  | 	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
  | 	at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:189)
  | 	at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:106)
  | 	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38)
  | 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:97)
  | 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
  | 	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
  | 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.prototipo.model.Person
  | 	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:669)
  | 	at org.hibernate.cfg.Configuration.addFile(Configuration.java:309)
  | 	... 9 more
  | !SUBENTRY 2 org.hibernate.eclipse.console 4 150 2008-05-20 10:11:40.030
  | !MESSAGE org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.prototipo.model.Person
  | !STACK 0
  | org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.prototipo.model.Person
  | 	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:669)
  | 	at org.hibernate.cfg.Configuration.addFile(Configuration.java:309)
  | 	at org.hibernate.console.ConsoleConfiguration$2.execute(ConsoleConfiguration.java:225)
  | 	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
  | 	at org.hibernate.console.ConsoleConfiguration.buildWith(ConsoleConfiguration.java:189)
  | 	at org.hibernate.console.ConsoleConfiguration.build(ConsoleConfiguration.java:106)
  | 	at org.hibernate.eclipse.console.workbench.ConsoleConfigurationWorkbenchAdapter.getChildren(ConsoleConfigurationWorkbenchAdapter.java:38)
  | 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.getChildren(BasicWorkbenchAdapter.java:97)
  | 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
  | 	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
  | 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152006#4152006

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152006



More information about the jboss-user mailing list