I found the problem, sorry for disturbing you !


Someone added a class with the same name as an existing class, but in another 
package. Hibernate didnt like that very much ... The funny thing is that there 
was no build error.



I dont know if the problem is AndroMDA or Hibernate related, but it would be 
cool if there was a failure in case of a bad Hibernate mapping. Should I report 
it in JIRA ? Under the Hibernate or Spring cartridge ?



Here follows the trace of the problem (output of "maven -o").



    [java] Jun 6, 2005 4:46:10 PM 
net.sf.hibernate.cfg.Configuration addFile

    [java] INFO: Mapping file: 
/home/gehel/projects/siems/core/target/src/ch/tecost/siems/dao/partner/Role.hbm.xml

    [java] Jun 6, 2005 4:46:10 PM 
net.sf.hibernate.cfg.Configuration add

    [java] SEVERE: Could not compile the mapping document

    [java] net.sf.hibernate.MappingException: duplicate 
import: RoleImpl

    [java]      at 
net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:85)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindClass(Binder.java:126)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:221)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)

    [java]      at 
net.sf.hibernate.cfg.Configuration.add(Configuration.java:253)

    [java]      at 
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:175)

    [java]      at 
net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)

    [java] Jun 6, 2005 4:46:10 PM 
net.sf.hibernate.cfg.Configuration addFile

    [java] SEVERE: Could not configure datastore from 
file: 
/home/gehel/projects/siems/core/target/src/ch/tecost/siems/dao/partner/Role.hbm.xml

    [java] net.sf.hibernate.MappingException: duplicate 
import: RoleImpl

    [java]      at 
net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:85)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindClass(Binder.java:126)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:221)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)

    [java]      at 
net.sf.hibernate.cfg.Configuration.add(Configuration.java:253)

    [java]      at 
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:175)

    [java]      at 
net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)

    [java] Jun 6, 2005 4:46:10 PM 
net.sf.hibernate.tool.hbm2ddl.SchemaExport main

    [java] SEVERE: Error creating schema

    [java] net.sf.hibernate.MappingException: 
net.sf.hibernate.MappingException: duplicate import: RoleImpl

    [java]      at 
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:180)

    [java]      at 
net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)

    [java] Caused by: 
net.sf.hibernate.MappingException: duplicate import: RoleImpl

    [java]      at 
net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:85)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindClass(Binder.java:126)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:221)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)

    [java]      at 
net.sf.hibernate.cfg.Configuration.add(Configuration.java:253)

    [java]      at 
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:175)

    [java]      ... 1 more

    [java] net.sf.hibernate.MappingException: 
net.sf.hibernate.MappingException: duplicate import: RoleImpl

    [java]      at 
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:180)

    [java]      at 
net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)

    [java] Caused by: 
net.sf.hibernate.MappingException: duplicate import: RoleImpl

    [java]      at 
net.sf.hibernate.cfg.Mappings.addImport(Mappings.java:85)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindClass(Binder.java:126)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:221)

    [java]      at 
net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)

    [java]      at 
net.sf.hibernate.cfg.Configuration.add(Configuration.java:253)

    [java]      at 
net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:175)

    [java]      ... 1 more

INFO  [DefaultArtifactDeployer] Copying: from 
'/home/gehel/projects/siems/core/target/siems-core-0.1-SNAPSHOT.jar' to: 
'/home/gehel/.maven/repository/siems/jars/siems-core-0.1-SNAPSHOT.jar'
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=806#806
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to