1. 程式人生 > >spring mybatis整合錯誤

spring mybatis整合錯誤

四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Server version: Apache Tomcat/7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Server built: Mar 28 2017 16:01:48 UTC
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Server number: 7.0.77.0
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: OS Name: Windows 10
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: OS Version: 10.0
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Architecture: amd64
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Java Home: E:\command_tool\jdk\jdk1.8\jre
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: JVM Version: 1.8.0_131-b11
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: JVM Vendor: Oracle Corporation
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: CATALINA_BASE: E:\command_tool\tomcat7\apache-tomcat-7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: CATALINA_HOME: E:\command_tool\tomcat7\apache-tomcat-7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Command line argument: -Dcatalina.base=E:\command_tool\tomcat7\apache-tomcat-7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Command line argument: -Dcatalina.home=E:\command_tool\tomcat7\apache-tomcat-7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Command line argument: -Dwtp.deploy=E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Command line argument: -Djava.endorsed.dirs=E:\command_tool\tomcat7\apache-tomcat-7.0.77\endorsed
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.VersionLoggerListener log
資訊: Command line argument: -Dfile.encoding=GBK
四月 06, 2018 10:44:50 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
資訊: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\command_tool\jdk\jdk1.8\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;F:/computer_Software/eclipse/jre/bin/client;F:/computer_Software/eclipse/jre/bin;F:/computer_Software/eclipse/jre/lib/i386;G:\oracle\product\10.2.0\db_1\bin;E:\command_tool\apache-maven-3.3.9\bin;E:\command_tool\jdk\jdk1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Users\admin.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;H:\software tool\uml建模軟體\common;C:\Program Files (x86)\GtkSharp\2.12\bin;F:\computer_Software\ultraedit;C:\Program Files\IDM Computer Solutions\UltraCompare;F:\resource\platform-tools;;F:\resource\platform-tools;F:\computer_Software\mysql\bin;;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;E:\modulesim\win64;F:\resource\platform-tools\adb.exe;C:\Users\admin\AppData\Local\GitHubDesktop\bin;F:\computer_Software\eclipse;;.
四月 06, 2018 10:44:50 下午 org.apache.coyote.AbstractProtocol init
資訊: Initializing ProtocolHandler [“http-bio-8080”]
四月 06, 2018 10:44:50 下午 org.apache.coyote.AbstractProtocol init
資訊: Initializing ProtocolHandler [“ajp-bio-8009”]
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.Catalina load
資訊: Initialization processed in 1407 ms
四月 06, 2018 10:44:50 下午 org.apache.catalina.core.StandardService startInternal
資訊: Starting service Catalina
四月 06, 2018 10:44:50 下午 org.apache.catalina.core.StandardEngine startInternal
資訊: Starting Servlet Engine: Apache Tomcat/7.0.77
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.HostConfig deployDescriptor
資訊: Deploying configuration descriptor E:\command_tool\tomcat7\apache-tomcat-7.0.77\conf\Catalina\localhost\spring_mybatis_mvc.xml
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.HostConfig deployDescriptor
警告: A docBase E:\command_tool\tomcat7\apache-tomcat-7.0.77\webapps\spring_mybatis_mvc inside the host appBase has been specified, and will be ignored
四月 06, 2018 10:44:50 下午 org.apache.catalina.startup.SetContextPropertiesRule begin
警告: [SetContextPropertiesRule]{Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:spring_mybatis_mvc’ did not find a matching property.
四月 06, 2018 10:44:54 下午 org.apache.catalina.startup.TldConfig execute
資訊: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
四月 06, 2018 10:44:54 下午 org.apache.catalina.core.ApplicationContext log
資訊: No Spring WebApplicationInitializer types detected on classpath
四月 06, 2018 10:44:54 下午 org.apache.catalina.core.ApplicationContext log
資訊: Initializing Spring root WebApplicationContext
四月 06, 2018 10:44:54 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
資訊: Root WebApplicationContext: initialization started
四月 06, 2018 10:44:54 下午 org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
資訊: Refreshing Root WebApplicationContext: startup date [Fri Apr 06 22:44:54 CST 2018]; root of context hierarchy
四月 06, 2018 10:44:54 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
資訊: Loading XML bean definitions from ServletContext resource [/WEB-INF/SpringConf.xml]
四月 06, 2018 10:44:55 下午 org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
資訊: Loaded JDBC driver: com.mysql.jdbc.Driver
四月 06, 2018 10:44:56 下午 org.springframework.web.context.support.XmlWebApplicationContext refresh
警告: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userMapper’ defined in ServletContext resource [/WEB-INF/SpringConf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’; nested exception is java.lang.IllegalStateException: Cannot convert value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’: no matching editors or conversion strategy found
四月 06, 2018 10:44:56 下午 org.springframework.beans.factory.support.DefaultListableBeanFactory destroyBean
嚴重: Destroy method on bean with name ‘sqlSessionFactory’ threw an exception
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call ‘refresh’ before multicasting events via the context: Root WebApplicationContext: startup date [Fri Apr 06 22:44:54 CST 2018]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404)
at org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97)
at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:959)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:966)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1033)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:555)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679)
at org.apache.catalina.startup.HostConfig

DeployDescriptor.run(HostConfig.java:1966)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

四月 06, 2018 10:44:56 下午 org.springframework.web.context.ContextLoader initWebApplicationContext
嚴重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘userMapper’ defined in ServletContext resource [/WEB-INF/SpringConf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’; nested exception is java.lang.IllegalStateException: Cannot convert value of type ‘org.apache.ibatis.session.defaults.DefaultSqlSessionFactory’ to required type ‘java.lang.String’ for property ‘sqlSessionFactoryBeanName’: no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:563)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory