Hi everyone,
i'm trying to secure methods. somehow i only can use this feature on interfaces.
when i try to secure for example a struts 2 action by adding this on front of the method:
i get this exception:Code:@Secured({"ROLE_ADMIN"})
This are the configurations i'm using:Code:java.lang.NoSuchMethodException: $Proxy36.execute() at java.lang.Class.getMethod(Class.java:1605) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.getActionMethod(AnnotationValidationInterceptor.java:55) at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:41) .........
i hope someone can help me. thx in advance kukudas.Code:<bean id="securityInterceptor" class="org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor"> <property name="validateConfigAttributes"><value>false</value></property> <property name="authenticationManager"><ref bean="authenticationManager"/></property> <property name="accessDecisionManager"><ref bean="accessDecisionManager"/></property> <property name="objectDefinitionSource"><ref bean="objectDefinitionSource"/></property> </bean> <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/> <bean class="org.acegisecurity.intercept.method.aopalliance.MethodDefinitionSourceAdvisor"> <constructor-arg><ref bean="securityInterceptor" /></constructor-arg> </bean> <bean id="objectDefinitionSource" class="org.acegisecurity.intercept.method.MethodDefinitionAttributes"> <property name="attributes"> <bean class="org.acegisecurity.annotation.SecurityAnnotationAttributes" /> </property> </bean>




