Why/How am I getting the error: NoClassDefFoundError: org/springframework/aop/framework/ProxyFactory

北城以北 提交于 2019-12-05 11:54:45

Please double-check that you have the following dependencies as well:

  • aopalliance.jar
  • spring-core.jar

NoClassDefFoundError does not say that it can't find ProxyFactory class - indeed, it has been found, but some of its dependencies are missing.

This turned out to be an eclipse environment issue.
I use the SysDeo Tomcat Plugin.
Under Window > Preferences > Tomcat > Source Path I had to uncheck all the projects except the client and server projects.

please add the spring-aop-X.X.X.jar to your project libraries which related to spring version jars you are using. Then the problem will be resolved.
If you don't use the appropriate version of the jars, you keep on getting this errors.

The functionality may not work if you add different version of jars in spring. Kindly make sure the same version for best developers practices.

Thanks!.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!