Exception occurred during processing request:
Unable to instantiate Action, com.wx.action.peisong.peisongAction,
defined for 'peisongAction' in namespace ''Error creating bean with name 'com.wx.action.peisong.peisongAction'
defined in null: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException:
PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException:
Failed to convert property value of type [com.wx.action.peisong.peisongAction] to required type [com.wx.dao.persisten.SelectPeiSongJinDuDao] for property 'peisongDao']
Unable to instantiate Action, com.wx.action.peisong.peisongAction, defined for 'peisongAction' in namespace ''Error creating bean with name 'com.wx.action.peisong.peisongAction' defined in null: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.wx.action.peisong.peisongAction] to required type [com.wx.dao.persisten.SelectPeiSongJinDuDao] for property 'peisongDao']
具体 我什么地方错了
------解决方案--------------------
无法实例化action,你看一下你的配置,还有action的命名空间路径是否写对了。
------解决方案--------------------
检查一下配置,struts要设置常量objectFactory="spring" 还有spring依赖注入的action设置成prototype。