title: Error creating bean, NoClassDefFoundError
body: <p>I have bean definition in my xml file</p>
  
  <pre><code>&lt;bean id="userDao" class="xyz.UserDAOImpl"&gt;
  &lt;property name="sessionFactory" ref="sessionFactory" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>and when I start my server I get this error :
  Error creating bean with name 'userDao' defined in class
  path resource [xyz/configuration.xml]:
  Initialization of bean failed;
  nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.sun.proxy.$Proxy178</p>
  
  <p>This is a multi-module application and I don't have access to all parts of this project.
  I tried adding cglib, but it still doesn't work</p>