permaculture playing cards*
The moose likes Spring and the fly likes java.lang.NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory (initializa Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "java.lang.NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory (initializa" Watch "java.lang.NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory (initializa" New topic
Author

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

Mark Kafe
Ranch Hand

Joined: Jun 23, 2008
Posts: 60

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

Joined: Mar 07, 2010
Posts: 1648
    
    7

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


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory (initializa
 
Similar Threads
java lang NoClassDefFoundError
Deployment error NoClassDefFoundError: org.hibernate.cfg.Configuration on Oracle 11g App Server
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFac
Where is org. springframework. orm.jpa.vendor. TopLinkJpaVendorAdapter?
Struts 2 + Spring 2 + JPA + AJAX