Issue
Hello I am using Hibernate 3.6 with XML mapping (no annotations).
I tried to create instance of Configuration, but it failed. The only message Hibernate told me was this:
org.hibernate.MappingException: No type name
Yep, that's it. No mapping file name, no entity name, nothing. I am pretty much desperate here, I really have no idea what to do. Maybe there are more options to put in hibernate.cfg.xml
, maybe some advanced logging.
Do you have an idea how to deal with this? Getting more info about this exception or making Hibernate to be more chatty would be great. Thanks
Solution
There's this unresolved bug against hibernate-core that looks like what you're experiencing. You can check the link there to see the source code where the exception is being thrown. If you put a breakpoint at the line where the exception is thrown, you can probably gather enough information from the debugger to see where the problem is. Otherwise, if you can localize the problem and post some mappings, someone might be able to spot the problem for you.
Answered By - Ryan Stewart