TOMCAT加载多应用webAppRootKey配置
2016-10-20 11:58
316 查看
TOMCAT7 启动报错,应用启动失败
严重: The web application [/gzgicn] registered the JDBC driver [com.ibm.db2.jcc.DB2Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2016-10-19 14:23:38 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
由于TOMCAT7加载了多个应用,经过排查,终于找到原因是
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>gzgicn.webapp.root</param-value>
</context-param>
不同的应用的\WEB-INF\web.xml 配置的webAppRootKey值不能相同
"gzgicn.webapp.root"这个字符串可以随便写任何字符串。如果不配置默认值是"webapp.root"。
严重: The web application [/gzgicn] registered the JDBC driver [com.ibm.db2.jcc.DB2Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2016-10-19 14:23:38 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
由于TOMCAT7加载了多个应用,经过排查,终于找到原因是
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>gzgicn.webapp.root</param-value>
</context-param>
不同的应用的\WEB-INF\web.xml 配置的webAppRootKey值不能相同
"gzgicn.webapp.root"这个字符串可以随便写任何字符串。如果不配置默认值是"webapp.root"。
相关文章推荐
- tomcat中的开发应用系统常见的配置[转]
- tomcat中的开发应用系统常见的配置
- 配置Apache+Tomcat支持多个应用,即多个二级域名
- tomcat多应用的配置
- Eclipse-jee-galileo的简单应用配置(包含Tomcat)
- 在Tomcat中配置应用Context的一些差异与注意事项。
- 【转】解压缩版tomcat配置及使用(环境变量设置及测试,一个简单的web应用实例)
- 配置Tomcat下的web应用服务的安全权限
- Tomcat下JSP、Servlet和JavaBean环境的配置和应用建立
- tomcat配置及使用(环境变量设置及测试,一个简单的web应用实例)
- tomcat中的开发应用系统常见的配置
- 为tomcat下的应用配置SSL
- 在TOMCAT中部署WEB应用,包括数据库连接池的配置
- 配置Apache+Tomcat支持多个应用,即多个二级域名
- Tomcat 6多应用的Context配置
- tomcat中的开发应用系统常见的配置
- TOMCAT5.0.28配置单应用数据源
- Tomcat同时发布多个应用的配置
- Tomcat下基于HTTPS协议应用的负载均衡配置问题
- MyEclipse配置加载库类JDK、编译JDK和Tomcat远行JDK详细方法