ssh框架,访问struts的action错误,如何解决
2017-01-19 12:54
190 查看
Unable to instantiate Action, searchAction, defined for 'search' in namespace '/'Error creating bean with name 'searchAction' defined in file [E:\dhccworkPlace\EmergencyWeb\src\main\webapp\WEB-INF\classes\spring\applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy10 implementing com.dhcc.test.service.SearchImp,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.dhcc.test.service.impl.Search] for property 'service'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy10 implementing com.dhcc.test.service.SearchImp,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.dhcc.test.service.impl.Search] for property 'service': no matching editors or conversion strategy found
com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:318)
com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:399)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:198)
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:58)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:475)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
root cause
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchAction' defined in file [E:\dhccworkPlace\EmergencyWeb\src\main\webapp\WEB-INF\classes\spring\applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy10 implementing com.dhcc.test.service.SearchImp,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.dhcc.test.service.impl.Search] for property 'service'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy10 implementing com.dhcc.test.service.SearchImp,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.dhcc.test.service.impl.Search] for property 'service': no matching editors or conversion strategy found
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
java.security.AccessController.doPrivileged(Native Method)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:141)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:150)
com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:120)
com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:299)
com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:399)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:198)
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:58)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:475)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
root cause
com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:318)
com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:399)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:198)
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:58)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:475)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
root cause
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'searchAction' defined in file [E:\dhccworkPlace\EmergencyWeb\src\main\webapp\WEB-INF\classes\spring\applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [$Proxy10 implementing com.dhcc.test.service.SearchImp,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.dhcc.test.service.impl.Search] for property 'service'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy10 implementing com.dhcc.test.service.SearchImp,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.dhcc.test.service.impl.Search] for property 'service': no matching editors or conversion strategy found
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
java.security.AccessController.doPrivileged(Native Method)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:141)
com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:150)
com.opensymphony.xwork2.ObjectFactory.buildAction(ObjectFactory.java:120)
com.opensymphony.xwork2.DefaultActionInvocation.createAction(DefaultActionInvocation.java:299)
com.opensymphony.xwork2.DefaultActionInvocation.init(DefaultActionInvocation.java:399)
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:198)
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:58)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:475)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
root cause
相关文章推荐
- 如何解决LoadRunner监控Windows资源拒绝访问的错误
- 金蝶提示“访问加密服务器失败,错误号:-16”到底如何解决?
- 升级高版本的struts2.2.3.32 无法访问Action解决办法
- [JavaEE]Struts2路径问题(如何在jsp页面正确访问struts.xml中的action)
- 如何解决访问Windows Update网站时收到0X8024001D错误信息
- SSH框架中如何输出访问的Action路径和页面
- 解决无法访问struts action的解决方法
- tomcat下部署两个工程时,只有一个可以访问,另一个出现404错误,该如何解决
- 自学SSH框架之---struts(三):源码分析struts1如何实现Action单例模式
- 如何解决AJAX中跨域访问出现'没有权限'的错误
- 请教:我用的jbuilder,struts架构,在action中的session赋中文值以后,回到jsp中,从session中取出的值为乱码,如何解决?
- struts2.5配置时action无法访问错误
- 如何解决AJAX中跨域访问出现'没有权限'的错误
- 如何解决NET TIME出现系统错误5,拒绝访问
- Struts“No action config found for the specified url.”错误,解决
- 注解版struts中,@Result的location直接 跳转Action 错误解决方法及原因
- Messages:This method: edit for action XXX is not allowed!-Struts2.5动态方法调用错误解决方法
- Struts2.5动态方法调用 错误Messages:This method: edit for action product is not allowed!解决方法
- 如何解决在Ubuntu下GoAgent访问Youtube,Google相关站点SSL错误
- 如何解决NET TIME出现系统错误5,拒绝访问