I have integrated Struts 2 with Spring 3 which is working fine. I have used my custom ObjectFactory to fetch Action instances from Spring context. Now I have implemented AOP like,
BaseAction is abstract class. I have some other pointcuts defined for Service layer as well. But while server startup I am getting an error like,Code:@Pointcut("target(com.motherframework.frontendplugin.struts2.action.BaseAction)")
Below is my strts.xmlCode:DEBUG JdkDynamicAopProxy:113 - Creating JDK dynamic proxy: target source is SingletonTargetSource for target object [com.motherframework.application.school.action.security.CustomAction@c11557] DEBUG DefaultListableBeanFactory:452 - Finished creating instance of bean 'customAction' Sep 30, 2012 4:20:11 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - action - file:<file-path>/EPMS/WEB-INF/classes/struts-security.xml:6:80 ... Caused by: Action class [customAction] does not have a public no-arg constructor
Please help!!Code:<action name="restrictUser" class="customAction" method="restrictUser" />


Reply With Quote
