This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 1632
    
    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
Where is org. springframework. orm.jpa.vendor. TopLinkJpaVendorAdapter?
java lang NoClassDefFoundError
Struts 2 + Spring 2 + JPA + AJAX
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFac
Deployment error NoClassDefFoundError: org.hibernate.cfg.Configuration on Oracle 11g App Server