I am now facing a problem instantiating an instance of the ProxyFactoryBean. This is my sample XML :-
Code:
<bean id="businesslogicbean"
class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="proxyInterfaces">
<value>SendMail</value>
</property>
<property name="proxyTargetClass" value="true" />
<property name="target">
<ref local="reportsQueue"/>
</property>
<property name="interceptorNames">
<list>
<value>theTracingAfterAdvisor</value>
</list>
</property>
</bean>
<!-- Advisor pointcut definition for after advice -->
<bean id="theTracingAfterAdvisor"
class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
<property name="advice">
<ref local="theTracingAfterAdvice"/>
</property>
<property name="pattern">
<value>.*Mail</value>
</property>
</bean>
<bean id="theTracingAfterAdvice" class="ReportsQueue" />
And this is starting stack trace for the error that is being thrown when I start up the server :-
Code:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'businesslogicbean' defined in ServletContext resource [/WEB-INF/smart-reports.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.framework.ProxyFactoryBean]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.framework.ProxyFactoryBean]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.<init>(I)V
Beacue of the metion of the org.objectweb.asm.ClassWriter I got asm-2005-01-27.jar in my lib folder and it does have ClassWriter.class
Any suggestions?
Cheers,
Raj.