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
00 -
风间影月
2019-10-28
Sqlmapconfig??这个项目里貌似没有吧。没印象啊。现在是数据层有问题
092019-10-28
相似问题