tomcat部署多工程Singleton bean creation not allowed while the singletons of this factory are in destructi
2017-11-09 20:16
701 查看
场景:同一个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>
问题现象: 启动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>
相关文章推荐
- Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not
- "Your computer could not be joined to the domain. You have exceeded the maximum number of computer accounts you are allowed to create in this domain. Contact your system administrator to have this limit reset or increased."
- UISearchController Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior
- web程序部署到Tomcat服务器报错Deployment is out ofdate due to changes in the underlying project contents...
- 部署程序问题, The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java
- Jenkins部署:The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- SharePoint中异步调用邮件发送Asynchronous operations are not allowed in this context. Page starting an asynchronous operation
- eclipse部署Tomcat6 : The server does not support version 3.0 of the JEE Web module specification
- SharePoint 2013 排错之"Code blocks are not allowed in this file"
- Spring出现Error creating bean with name and Singleton bean creation not allowed
- You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.
- SQL SERVER – Fix: Error Msg 128 The name is not permitted in this context. Only constants, expressions, or variables allowed her
- 转:Code-blocks are not allowed in this file: Using Server-Side Code with SharePoint
- 解决Tomcat部署Maven异常:Deployment is out of date due to changes in the underlying project contents
- xxxx.accessor: The reference to 'xxxx' was not found in the list of this projects references
- Failure to find xxx in xxx was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced @ xxx
- 异常-----Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.\u003Cformat> or ?string(format) built-
- Attempting to load the view of a view controller while it is deallocating is not allowed and may res
- myeclipse remove掉后项目,tomcat重新部署出现现异常:Deployment is out of date due to changes in the