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!
顾名思义:
IllegalStateException:环境没有处于请求操作所要求的适当状态下。不能初始化环境,因为已经有一个application-context存在。
解决法案:
检查你的web.xml文件看是否定义了多个ContextLoader。
<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。
相关文章推荐
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- android.content.ActivityNotFoundException: Unable to find explicit activity class {...}; have you declared this activity in your AndroidManifest.xml?
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- have you declared this activity in your AndroidManifest.xml?
- 创建存储过程错误(已解决):Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server ver
- java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for
- In the web.xml of your war, have the following entry:
- SQL Error: 1064, SQLState: 42000 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server ve
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
- You have an error in your SQL syntax; check the manual that corresponds
- mysql sqlserver hibernate 有数据库关键字 You have an error in your SQL syntax; check the manual that corres
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual...
- SQL Error: 1064, SQLState: 42000 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- ssh开发中插入数据时遇到 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- 利用Mysql进行update时,出现You have an error in your SQL syntax check the manual that corresponds to your My