my dog learned polymorphism*
The moose likes Spring and the fly likes NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory" Watch "NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory" New topic
Author

NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory

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)
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 5018
    
    8

Hi Mark,

So what have you done so far to try to resolve it? Helps if you've already done some of the legwork. I would start from the simplest thing that could possibly go wrong: maybe the bean definition has a typo? Like the class name? Check to see if it's good. Next check if there are multiple configuration files that you are expecting to be read in by Spring. Did you miss telling Spring about one maybe? But you may have already checked these and if so, you just made me type all this in for nothin'... like we would know right?

So like I said before, what have you done lately?


Junilu - [How to Ask Questions] [How to Answer Questions]
Mark Kafe
Ranch Hand

Joined: Jun 23, 2008
Posts: 60

Hi Junilu,
Thanks for you reply, actually i upgrade WebsphareRAD6 to RAD7 and WebSphere Server6.0 to WebSphere Server 6.1, i not changed any lib, spring and all other libs are same i not change any lib, aopalliance.jar,cglib-full-2.0.2.jar,hibernate2.jar these libs i used. i not understand wht is the problem.
 
 
subject: NoClassDefFoundError: org.springframework.aop.framework.DefaultAopProxyFactory