Bonjour,
Je suis débutant et g un problème de configuration sur lequel je ne trouve aucun post ou aide sur le net à ce sujet :
Quote:
INFO: Default entity-mode: pojo
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/objectweb/asm/Type
Le code utilisé est celui d'un tutorial très simple mais qui ne décrit cette erreur. Ci dessous j'ai joint mes deux fichiers de config:
hibernate.properties:
Code:
hibernate.dialect org.hibernate.dialect.MySQLDialect
hibernate.dialect org.hibernate.dialect.MySQLInnoDBDialect
hibernate.dialect org.hibernate.dialect.MySQLMyISAMDialect
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://localhost/test
hibernate.connection.username root
hibernate.connection.password ****
hibernate.cfg.xmlCode:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/test</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password">****</property>
<property name="dialect">org.hibernate.dialect.HSQLDialect</property>
<property name="show_sql">true</property>
<property name="transaction.factory_class">
org.hibernate.transaction.JDBCTransactionFactory
</property>
<property name="hibernate.cache.provider_class">
org.hibernate.cache.HashtableCacheProvider
</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<mapping resource="com/ao/hibernateTutorial/Event.hbm.xml"/>
</session-factory>
</hibernate-configuration>
My mapping seems to be correct, as my db's url... I'm quite dazed and confused...
Thanks for any help you can provide...