日期:2014-05-20  浏览次数:20952 次

启动tomcat的时候出现的错误)
启动tomcat的时候出现以下的错误,不知道怎么解决 (为什么 我每次部署tamcat的时候都要重新配置 jdk tomcat 以前不是的啊 ,是tomcat出现错误了吗)


严重: action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tuserBiz' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.accp.y2_0401_6.hrms.dao.hibimpl.UsersDAOImpl] to required type [com.accp.y2_0401_6.hrms.dao.userDAO] for property 'userDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.accp.y2_0401_6.hrms.dao.hibimpl.UsersDAOImpl] to required type [com.accp.y2_0401_6.hrms.dao.userDAO] for property 'userDao': no matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.accp.y2_0401_6.hrms.dao.hibimpl.UsersDAOImpl] to required type [com.accp.y2_0401_6.hrms.dao.userDAO] for property 'userDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.accp.y2_0401_6.hrms.dao.hibimpl.UsersDAOImpl] to required type [com.accp.y2_0401_6.hrms.dao.userDAO] for property 'userDao': no matching editors or conversion strategy found
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [com.accp.y2_0401_6.hrms.dao.hibimpl.UsersDAOImpl] to required type [com.accp.y2_0401_6.hrms.dao.userDAO] for property 'userDao': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:815)
at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:645)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)
at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1122)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)
at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)
at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)