title: Spring aop java.lang.NoClassDefFoundError
body: <p>I have a problem with aop config. Here is part of my spring xml config:</p>
  
  <pre><code>&lt;bean id="conLogger" class="com.pomkine.pXMPP.connection_service.ConnectionLogger"/&gt;
  
  &lt;aop:config&gt;
      &lt;aop:aspect ref="conLogger"&gt;
          &lt;aop:pointcut id="connect"
                        expression= "execution(* com.pomkine.pXMPP.connection_service.connectionManager.connect(..))" /&gt;
          &lt;aop:after pointcut-ref="connect"
                     method="connected"/&gt;
      &lt;/aop:aspect&gt;
  &lt;/aop:config&gt;
  </code></pre>
  
  <p>Here is my main method: </p>
  
  <pre><code>public static void main (String [] args) {
      ApplicationContext ac = new ClassPathXmlApplicationContext("com/pomkine/pXMPP/connection_service/connection-manager.xml");
      connectionManager cm=(connectionManager)ac.getBean("connectionManager");
      try {
          cm.connect();
          cm.disconnect();
        } catch (XMPPException e) {
          e.printStackTrace();
      }
  
  }
  </code></pre>
  
  <p>When I'm runnig it I'm getting NoClassDefFoundError exception.</p>
  
  <pre><code>Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connect': Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
  </code></pre>
  
  <p>Can't figure out what the problem is. Would appreciate any help.</p>