• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting Error from hibernates.

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi This is the Error i am getting from hibernates but i checked there was no exception in catch block but still the error is coming..

java.lang.NoClassDefFoundError: org/hibernate/proxy/CGLIBLazyInitializer : net/sf/cglib/proxy/MethodInterceptor
at java.lang.ClassLoader.defineClass(Ljava.lang.String;[BIILjava.security.ProtectionDomain Ljava.lang.Class;(Unknown Source)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:367)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:182)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:61)
at java.lang.ClassLoader.loadClass(Ljava.lang.String;Z)Ljava.lang.Class;(Unknown Source)
at java.lang.ClassLoader.loadClass(Ljava.lang.String Ljava.lang.Class;(Unknown Source)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:41)
at java.lang.ClassLoader.loadClassFromNative(Ljava.lang.String Ljava.lang.Class;(Unknown Source)
at org.hibernate.proxy.SerializableProxy.readResolve(SerializableProxy.java:55)
at java.lang.LangAccessImpl.readResolve(Ljava.lang.Class;Ljava.lang.Object Ljava.lang.Object;(Unknown Source)
at java.io.ObjectStreamClass.invokeReadResolve(Ljava.lang.Object Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass V(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass V(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
at java.util.ArrayList.readObject(ArrayList.java:554)
at java.lang.LangAccessImpl.readObject(Ljava.lang.Class;Ljava.lang.Object;Ljava.io.ObjectInputStream V(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Ljava.lang.Object;Ljava.io.ObjectInputStream V(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass V(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
at weblogic.rmi.internal.CBVInputStream.readObjectInternal(CBVInputStream.java:67)
at weblogic.rmi.internal.CBVInputStream.readObject(CBVInputStream.java:61)
at weblogic.rmi.internal.ServerRequest.unmarshalReturn(ServerRequest.java:97)


Please suggest me...
Thanks in Advance.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

just check whether you added the cglib-jar in classpath.


regards
 
Amith Bhavikatti
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes i have added cgilib.jar file .
but still showing that error ..
please suggest me......
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The exception says it is not. You apparendly made a mistake or misinterpretation.

All you need to do is to put the JAR file in a path which is already covered by the classpath, or to add its path to the classpath.

I see that you're using Weblogic, which is a Java EE Application Server. So I assume that you're using a JSP/Servlet web application. In this case, the /WEB-INF/lib is by default covered by the classpath. Put the JAR file in there.
 
reply
    Bookmark Topic Watch Topic
  • New Topic