tomcat部署多工程Singleton bean creation not allowed while the singletons of this factory are in destructi
来源:互联网 发布:怎样属于数组下标越界 编辑:程序博客网 时间:2024/06/10 12:41
场景:同一个tomcat下部署多个java工程。
问题现象: 启动tomcat时报异常Singleton bean creation not allowed while the singletons of this factory are in destruction
问题原因:不同的工程分别创建了同一个单例。
处理方案:1、在应用的web.xml文件中,配置不同的webAppRootKey,<param-value>值可以自定义,只要相同tomcat下的各个工程保持不同即可。
- <context-param>
- <param-name>webAppRootKey</param-name>
- <param-value>web.sample.root</param-value>
- </context-param>
阅读全文
0 0
- tomcat部署多工程Singleton bean creation not allowed while the singletons of this factory are in destructi
- Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not
- Spring出现Error creating bean with name and Singleton bean creation not allowed
- Subqueries are not allowed in this context. Only scalar expressions are allowed.
- cvc-complex-type.3.2.2: Attribute 'singleton' is not allowed to appear in element 'bean'
- cvc-complex-type.3.2.2: Attribute 'singleton' is not allowed to appear in element 'bean
- Asp.Net异常Asynchronous operations are not allowed in this context的解决方案
- SharePoint 2013 排错之"Code blocks are not allowed in this file"
- in-source builds are not allowed
- Write operations are not allowed in read-only tomcat报错
- Singletons in Cocoa, are they evil?
- Singletons in Cocoa, are they evil?
- Singletons in Cocoa, are they evil?
- Singletons in Cocoa, are they evil?
- yii-You are not allowed to access this page
- yii-You are not allowed to access this page
- yii-You are not allowed to access this page
- yii gii You are not allowed to access this page.
- C++入门:继承全解
- web开发时在浏览器上下载文件中文名字乱码问题
- 20171108
- js通过URL快速获取图片宽高的方法
- 机器学习从0到1入门实录
- tomcat部署多工程Singleton bean creation not allowed while the singletons of this factory are in destructi
- Python 列表list详解
- SparkStreaming整合Flume(二)Pull方式的整合
- 习题6.10
- Shortest Word Distance---LeetCode243
- 2017.11.09离线赛总结
- 冒泡排序
- 重载
- ajax 获取进度