您的位置:首页 > 其它

check whether you have multiple ContextLoader* definitions in your web.xml

2014-11-17 11:20 1506 查看
check whether you have multiple ContextLoader* definitions in your web.xml!

<span style="font-size:18px;">java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml!
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:186)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)</span>

顾名思义:

IllegalStateException:环境没有处于请求操作所要求的适当状态下。不能初始化环境,因为已经有一个application-context存在。



解决法案:

检查你的web.xml文件看是否定义了多个ContextLoader。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐