Bookmark Topic Watch Topic
  • New Topic

hibernate in service

 
naresh kumar gupta kapilavai
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi
iam using hibernate tool to get the data from the database.i wrote code regarding the hibernate in service methode of my servlet(getting session factory etc.)but iam getting the error like this

14:03:38,690 ERROR [BasicLazyInitializer] CGLIB Enhancement failed: serv.Book
java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer.setInterceptDuringConstruction(Z)V
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:95)

serv.Book is my pojo class

any one can give the help..please

previously by mistake i have posted this issue in servlet forum..sorry for the inconvenience
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
No inconvenience. Since your original topic has a reply, and since it has been moved here I'll close this topic.
 
    Bookmark Topic Watch Topic
  • New Topic