Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Excpeion in creation of hibernate session

Priya Gupta
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying a hibernate program.I m using RAD7.0,websphere 6.1,java 1.5, DB2 8.2.

I have included db2 jars, cglib-full-2.0.2.jar,hibernate3.jar,dom4j-1.5.2.jar

I am getting the error message

Exception in thread "main" java.lang.NoSuchMethodError: net/sf/cglib/proxy/Enhancer.setInterceptDuringConstruction(Z)V
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(

i have also tried hibernate-cglib-repack-2.1_3.jar but it is also not working.


<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"

<property name="hibernate.connection.driver_class"></property>
<property name="hibernate.connection.url">jdbc:db2://</property>

<property name="hibernate.connection.username">administ</property>
<property name="hibernate.connection.password">tt</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.DB2Dialect</property>
<property name="">update</property>
<!-- Mapping files -->
<mapping resource="testuser.hbm.xml"/>

Please suggest me.where i need to change.

Thanks in advance.

Please reply back.

Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!