-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Tool Reveng - java.lang.IncompatibleClassChangeErr
PostPosted: Wed May 12, 2010 7:36 pm 
Newbie

Joined: Wed May 12, 2010 7:05 pm
Posts: 1
I got the following error when I try to extract POJOs from an existing MYSQL database using Reverse Engineer ant build from Hibernate tool.

I am using the following jar files:
Hibernate3.jar - v3.5.0
Hibernate Tool v3.2.4
mysql-connector-java-5.0.5.jar
eclipse 3.4.0

What version of hibernate engine should I use in this case?

java.lang.IncompatibleClassChangeError: Found interface org.hibernate.cfg.Mappin
gs, but class was expected
at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:
134)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:95)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaData
Configuration.java:42)
at org.hibernate.tool.ant.JDBCConfigurationTask.doConfiguration(JDBCConf
igurationTask.java:83)
at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(Configurati
onTask.java:55)
at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateTo
olTask.java:302)
at org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolT
ask.java:318)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.ja
va:94)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.ja
va:186)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)

thanks,
sis


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.