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 Init Error
PostPosted: Wed Dec 06, 2006 1:05 pm 
Newbie

Joined: Wed Dec 06, 2006 12:58 pm
Posts: 1
Hello;

Iam beginner to Hibernate, i have these eror message(bellow)

Here are my configuration

Eclipse WTP 3.2

in my lib directory

ant-antlr-1.6.2.jar
asm.jar
asm-attrs.jar
aspectj-1.5.3.jar
cglib-2.1.jar
commons-collections-2.1.1.jar
commons-logging-1.0.4.jar
dom4j-1.5.2.jar
hibernate3.jar
jta.jar
log4j-1.2.9.jar
mysql-connector-java-5.0.4-bin-g.jar

---hibernate.cfg.xml---------------

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
<session-factory>

<!-- local connection properties -->
<property name="hibernate.connection.url">jdbc:mysql://localhost/mabase</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.username">user1</property>
<property name="hibernate.connection.password">mypass</property>
<!-- <property name="hibernate.connection.pool_size">10</property> -->

<!-- dialect for MySQL -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>

<property name="hibernate.show_sql">true</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
</session-factory>
</hibernate-configuration>

----Client.hbm.xml---------------------------

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
<class name="com.pv.hibernate.beans.Client" table="client">

<id name="Id" column="Id" type="integer" unsaved-value="none" >
<generator class="asigned"/>
</id>

<property name="Nom" column="Nom" type="string"/>
<property name="RS" column="RS" type="string"/>
<property name="Tel" column="Tel" type="string"/>

</class>

</hibernate-mapping>

-----Log------------------------

17:25:04,965 INFO Environment:460 - Hibernate 3.0
17:25:04,965 INFO Environment:473 - hibernate.properties not found
17:25:04,965 INFO Environment:506 - using CGLIB reflection optimizer
17:25:04,981 INFO Environment:536 - using JDK 1.4 java.sql.Timestamp handling
17:25:05,075 INFO Configuration:1159 - configuring from resource: /hibernate.cfg.xml
17:25:05,075 INFO Configuration:1130 - Configuration resource: /hibernate.cfg.xml
17:25:05,200 INFO Configuration:1271 - Configured SessionFactory: null
17:25:05,247 INFO Configuration:851 - processing extends queue
17:25:05,247 INFO Configuration:855 - processing collection mappings
17:25:05,247 INFO Configuration:864 - processing association property references
17:25:05,247 INFO Configuration:893 - processing foreign key constraints
17:25:05,294 INFO Dialect:91 - Using dialect: org.hibernate.dialect.MySQLDialect
17:25:05,387 INFO SettingsFactory:87 - Maximum outer join fetch depth: 2
17:25:05,387 INFO SettingsFactory:90 - Default batch fetch size: 1
17:25:05,387 INFO SettingsFactory:94 - Generate SQL with comments: disabled
17:25:05,387 INFO SettingsFactory:98 - Order SQL updates by primary key: disabled
17:25:05,387 INFO SettingsFactory:273 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
17:25:05,387 INFO ASTQueryTranslatorFactory:21 - Using ASTQueryTranslatorFactory
17:25:05,387 INFO SettingsFactory:106 - Query language substitutions: {}
17:25:05,403 INFO DriverManagerConnectionProvider:41 - Using Hibernate built-in connection pool (not for production use!)
17:25:05,403 INFO DriverManagerConnectionProvider:42 - Hibernate connection pool size: 20
17:25:05,403 INFO DriverManagerConnectionProvider:45 - autocommit mode: false
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.hibernate.connection.DriverManagerConnectionProvider.configure(DriverManagerConnectionProvider.java:57)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80)
at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:301)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1505)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1053)
at com.pv.hibernate.Utils.HibernateUtils.<clinit>(HibernateUtils.java:16)
at com.pv.hibernate.test.Test.main(Test.java:11)
Exception in thread "main"

_________________
Hibernate Novice


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.