当前位置: 代码迷 >> J2EE >> 1: org.springframework.beans.TypeMismatchException: Failed to
  详细解决方案

1: org.springframework.beans.TypeMismatchException: Failed to

热度:323   发布时间:2016-04-22 03:40:31.0
启动Tomcat出错!!ssh
Java code
严重: action: nullorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TagBIZ' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException; nested PropertyAccessExceptions (1) are:PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.dao.impl.TagDAOImpl] to required type [com.dao.TagDAO] for property 'tDao'org.springframework.beans.PropertyAccessExceptionsException; nested PropertyAccessException details (1) are:PropertyAccessException 1:org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.dao.impl.TagDAOImpl] to required type [com.dao.TagDAO] for property 'tDao'    at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:949)    at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:690)    at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:570)    at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:735)    at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:762)    at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:751)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1065)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:863)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:382)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144)    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:321)    at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)    at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:353)    at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:296)    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)    at javax.servlet.GenericServlet.init(GenericServlet.java:212)    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)    at org.apache.catalina.core.StandardService.start(StandardService.java:516)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-4-27 14:17:40 org.apache.catalina.core.ApplicationContext log信息: Marking servlet action as unavailable2011-4-27 14:17:40 org.apache.catalina.core.StandardContext loadOnStartup严重: Servlet /RollCallMonochrome threw load() exceptionjavax.servlet.UnavailableException    at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)    at javax.servlet.GenericServlet.init(GenericServlet.java:212)    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)    at org.apache.catalina.core.StandardService.start(StandardService.java:516)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-4-27 14:17:40 org.apache.coyote.http11.Http11Protocol start
  相关解决方案