File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory (initializa

 
Mark Kafe
Ranch Hand
Posts: 60
Hibernate Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I faced this problem from last some days, unable to resolved this issue, please help me guys.............

[Servlet Error]-[]: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'offerController' defined in ServletContext resource : Cannot resolve reference to bean 'txProxyOnOfferManager' while setting bean property 'offerBusinessManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txProxyOnOfferManager' defined in ServletContext resource : Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.transaction.interceptor.TransactionProxyFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory (initialization failure)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txProxyOnOfferManager' defined in ServletContext resource : Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.transaction.interceptor.TransactionProxyFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory (initialization failure)
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.transaction.interceptor.TransactionProxyFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory (initialization failure)
java.lang.NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:130)
at org.springframework.aop.framework.ProxyConfig.<init>(ProxyConfig.java:72)
at org.springframework.transaction.interceptor.TransactionProxyFactoryBean.<init>(TransactionProxyFactoryBean.java:113)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:521)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:171)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all this is posted in the wrong forum this is a spring issue and should be posted in the Spring forum if you expect to get help.

The problem is you are unable to find org.springframework.aop.framework.DefaultAopProxyFactory at runtime. You did not post your POM, or tell us what version of Spring you are using. It also would be useful to know what application server you are trying to deploy this to.

Make sure that spring-aop is in your POM.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic