Strut2和Spring整合出错 高手帮忙看看!

wiscom1232010 2011-02-20 08:28:25
出错信息:
Unable to instantiate Action, handleMessageAction, defined for 'handleMessageAction_queryMethod' in namespace '/'Error creating bean with name 'handleMessageAction' defined in file [D:\Tomcat 6.0\webapps\com.items.cn\WEB-INF\classes\applicationContext-beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.items.services.UsersHandleServiceImpl] to required type [com.items.services.UsersHandleService] for property 'usersHandleService'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.items.services.UsersHandleServiceImpl] to required type [com.items.services.UsersHandleService] for property 'usersHandleService': no matching editors or conversion strategy found
com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:307)
com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:388)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:187)
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:478)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

...全文
70 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wiscom1232010 2011-02-20
  • 打赏
  • 举报
回复
楼上的答对了,是我自己粗心所导致的低级失误!立即给分结贴 谢谢!
magong 2011-02-20
  • 打赏
  • 举报
回复
[Quote=引用楼主 wiscom1232010 的回复:]
java.lang.IllegalArgumentException: Cannot convert value of type [com.items.services.UsersHandleServiceImpl] to required type [com.items.services.UsersHandleService] for property 'usersHandleService': no matching editors or conversion strategy found
[/Quote]
UsersHandleServiceImpl类没有实现UsersHandleService接口吗?
或者UsersHandleServiceImpl类不是UsersHandleService类的子类?

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧