permaculture playing cards*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassNotFoundException: org.hibernate.event.EventListeners$2 on weblogic server stop
 
Similar Threads
SingleFileServlet
java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
When I unzip my war,I could find xercesImpl-2.7.1.jar.When I search for XMLGregorianCalendarImpl.Thi
XSD - CONVERTING XSD DATETIME TO JAVA.UTIL.DATE - java.lang.NoClassDefFoundError: org/apache/xerces/
JPA Application Deployment Error