博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Tomcat SEVERE: Error listenerStart ... ConflictingBeanDefinitionException
阅读量:6652 次
发布时间:2019-06-25

本文共 938 字,大约阅读时间需要 3 分钟。

tomcat启动时只报错: Tomcat SEVERE: Error listenerStart。没有详细的报错信息。
查询
logs/localhost.XXXX.log文件找到报错信息如下:
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.
BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is org.springframework.context.annotation
.ConflictingBeanDefinitionException: Annotation-specified bean name 'alipayAccountDetailDao' for bean class [com.xxx.audit.ca.dao.AccountDetailDao] conflicts with existing, non-compatible bean definition of same name and class [com.xxx.audit.dao.AccountDetailDao]
 
原因:
1. 两个bean的名称相同,引起冲突
2. 包冲突:检查servlet-api.jar包是否冲突。tomcat中自带了,然后工程中是否又加入了这个包,把工程的servlet-api.jar放在jdk中应该能解决
3.
target下有缓存,有多个同名的class文件。可通过查找类AccountDetailDao,看一下有几个

转载于:https://www.cnblogs.com/angryorange/p/4812570.html

你可能感兴趣的文章
MongoDB 下载 安装 启动
查看>>
sharepoint server 2007 可以使用域名访问网站,但无法使用服务器名访问
查看>>
高效会议管理技巧
查看>>
Java 线程状态之 BLOCKED
查看>>
The method of type must override a superclass method解决方式
查看>>
正则表达式——分支条件
查看>>
我的友情链接
查看>>
【小松教你手游开发】【unity实用技能】unity ios快捷打包
查看>>
golang 使用时间通过md5生成token
查看>>
caffe编译的问题解决:“cublas_v2.h: No such file or directory”
查看>>
40岁后才明白的道理:人一生奋斗余地很有限
查看>>
redis进阶
查看>>
Vue相关UI框架整理
查看>>
Eclipse安装SVN
查看>>
正则符号整理
查看>>
Asp.net core 二级域名的设置
查看>>
es 字段 replace
查看>>
Oracle Study之案例--延迟块清除(deferred block cleanout)
查看>>
Spring常用注解
查看>>
MySQL的KILL命令
查看>>