hi,
I have integrated Struts with Spring by using DelegatingRequestProcessor. It works fine. Now I want to intercept Struts actions method call. I have tried this configuration:
but I get this error:Code:(in struts-config.xml) <action path="/of_add" parameter="reqCode" name="proposalForm" input="/projects/editProposal.jsp" scope="request" validate="true"> <forward name="Success" path="/projects/confirm.jsp" /> </action> ... (in spring configuration) <bean name="/of_add" class="it.palma.action.ProposalActions"> <property name="projectService"> <ref bean="projectService" /> </property> </bean> ... <bean id="securityAdvice" class="it.palma.aop.SecurityAdvice"> </bean> <bean id="securityAutoProxy" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"> <property name="beanNames"> <list> <value>/of_add</value> <value>/of_search</value> </list> </property> <property name="interceptorNames"> <list> <value>securityAdvice</value> </list> </property> </bean>
Does anybody have any suggestion?Code:Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/of_add' defined in ServletContext resource [/WEB-INF/job-struts-servlet.xml]: Initialization of bean failed; nested exception is org.aopalliance.aop.AspectException: null java.lang.IllegalStateException: Callback Lnet/sf/cglib/proxy/MethodInterceptor; is not assignable to Lnet/sf/cglib/proxy/MethodInterceptor;
Thanks
stefano


Reply With Quote