tomcat启动失败

来源:9-6 使用maven-tomcat7插件运行web工程

梦无涯1978

2019-10-28

2019-10-28 15:59:43,380 [localhost-startStop-1] [org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:304)] - [INFO] Root WebApplicationContext: initialization started
2019-10-28 15:59:43,478 [localhost-startStop-1] [org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:583)] - [INFO] Refreshing Root WebApplicationContext: startup date [Mon Oct 28 15:59:43 CST 2019]; root of context hierarchy
2019-10-28 15:59:43,586 [localhost-startStop-1] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)] - [INFO] Loading XML bean definitions from file [E:\workspace-sts-3.9.10.RELEASE\bysj-gld-admin\bysj-gld-admin-web\target\classes\spring\applicationContext-dao.xml]
2019-10-28 15:59:44,022 [localhost-startStop-1] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)] - [INFO] Loading XML bean definitions from file [E:\workspace-sts-3.9.10.RELEASE\bysj-gld-admin\bysj-gld-admin-web\target\classes\spring\applicationContext-service.xml]
2019-10-28 15:59:44,154 [localhost-startStop-1] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:317)] - [INFO] Loading XML bean definitions from file [E:\workspace-sts-3.9.10.RELEASE\bysj-gld-admin\bysj-gld-admin-web\target\classes\spring\applicationContext-transaction.xml]
2019-10-28 15:59:44,612 [localhost-startStop-1] [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.(AutowiredAnnotationBeanPostProcessor.java:155)] - [INFO] JSR-330 ‘javax.inject.Inject’ annotation found and supported for autowiring
2019-10-28 15:59:45,621 [localhost-startStop-1] [com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:847)] - [INFO] {dataSource-1} inited
2019-10-28 15:59:49,256 [localhost-startStop-1] [org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)] - [WARN] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in file [E:\workspace-sts-3.9.10.RELEASE\bysj-gld-admin\bysj-gld-admin-web\target\classes\spring\applicationContext-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/SqlMapConfig.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.ClassCastException: com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor
2019-10-28 15:59:49,258 [localhost-startStop-1] [com.alibaba.druid.pool.DruidDataSource.close(DruidDataSource.java:1608)] - [INFO] {dataSource-1} closed
2019-10-28 15:59:49,331 [localhost-startStop-1] [org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:350)] - [ERROR] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in file [E:\workspace-sts-3.9.10.RELEASE\bysj-gld-admin\bysj-gld-admin-web\target\classes\spring\applicationContext-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/SqlMapConfig.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.ClassCastException: com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)图片描述
十月 28, 2019 3:59:49 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in file [E:\workspace-sts-3.9.10.RELEASE\bysj-gld-admin\bysj-gld-admin-web\target\classes\spring\applicationContext-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis/SqlMapConfig.xml]; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.lang.ClassCastException: com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)图片描述

写回答

2回答

weixin_慕前端3384348

2021-01-30

Ide 中的tomcat

0
0

风间影月

2019-10-28

Sqlmapconfig??这个项目里貌似没有吧。没印象啊。现在是数据层有问题

0
9
风间影月
回复
梦无涯1978
那你打消息啊
2019-10-28
共9条回复

Spring Boot短视频小程序开发 全栈式实战项目

一门课程带你搞定短视频小程序全栈开发,毕业设计之利器!

2613 学习 · 1951 问题

查看课程