ClassNotFoundException org hibernate engine FilterDefinition

ClassNotFoundException org hibernate engine FilterDefinition

Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition

Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.FilterDefinition
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 25 more

Solution: If you are using below into your XML file:

<bean id="sessionFactory" 
     class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> 

change to hibernate4 same as below:

<bean id="sessionFactory" 
     class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> 
One thought on “ClassNotFoundException org hibernate engine FilterDefinition”

Leave a Reply

Your email address will not be published. Required fields are marked *