I'm trying to test an application with hibernate, but I'm having a lot of problems when it comes to configuring it. At the moment I have managed to generate the file hibernate.cfg.xml, hibernate.reveng.xml and the object of Hibernate Console Configuration.
When I try to generate the Hibernate Code I skip the following exception:
org.hibernate.console.HibernateConsoleRuntimeException: Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class Received to NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class org.hibernate.console.HibernateConsoleRuntimeException: Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class Received to NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class java.lang.NoClassDefFoundError: org / apache / commons / collections / MultiMap org / apache / commons / collections / MultiMap java.lang.ClassNotFoundException: org.apache.commons.collections.MultiMap can not be found by org.jboss.tools.hibernate.runtime.v_5_1_5.0.1.Final-v20160331-1852-B88 org.apache.commons.collections.MultiMap can not be found by org.jboss.tools.hibernate.runtime.v_5_1_5.0.1.Final-v20160331-1852-B88
For what I have investigated, it is due to the jars of my library. Right now I have these:
I used to have more bookstores but I have deleted them, anyway I put an image of them that I had not deleted one that should not.
My hibernate.cfg.xml is like this now, although I'm not sure it's relevant:
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory name="ConexionHibernate">
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.password">hr</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:xe</property>
<property name="hibernate.connection.username">hr</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle10gDialect</property>
</session-factory>
</hibernate-configuration>