File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2 on weblogic server stop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2 on weblogic server stop" Watch "java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2 on weblogic server stop" New topic
Author

java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2 on weblogic server stop

thinkpavan pavan
Greenhorn

Joined: Apr 06, 2011
Posts: 6
i get the following execption while stoping the weblogic 10.3.2 server.

<Apr 6, 2011 5:46:53 PM IST> <Error> <Deployer> <BEA-149250> <Unable to unprepare application sam_test.ear'.
java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:296)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:269)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
Truncated. see log file for complete stacktrace
>

Ravish Mody
Greenhorn

Joined: Mar 30, 2011
Posts: 7

Hi pavan,

It seems that you are missing "hibernate-core-x.x.x.jar" in your classpath which has the required class which is needed "org.hibernate.event.EventListeners$2 ". As you dont have this jar thats the reason you are getting this error.

Caused By: java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2

You can put that jar in your domain lib and restart you server that would solve your issue.


Regards,

Ravish Mody
http://middlewaremagic.com/weblogic
Come, Join Us and Experience The Magic…
thinkpavan pavan
Greenhorn

Joined: Apr 06, 2011
Posts: 6
Hi Ravish,
Thnks for the reply. I have the hibernate.xxxx.jar in my lib directory. And use hibernate extensively in my application. how ever i see this only on server stop.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2 on weblogic server stop