---
title: "tomcat6配置中的一个错误,警告: [SetPropertiesRule],Context"
author: "leaderbird"
date: "2011-07-15T14:58:55Z"
tags: []
categories: ["行业应用"]
slug: "tomcat6-setpropertiesrule-context"
draft: false
lastmod: "2011-07-15T14:58:55Z"
id: 1125282
url: "https://leaderbird.iteye.com/blog/1125282"
---

tomcat6配置中的一个错误,警告: \[SetPropertiesRule],Context XMLTomcatServlet.在tomcat6启动的时候发现一个错误：

警告: \[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property '  
debug' to '0' did not find a matching property.

跟踪后发现是连接池的配置问题：

conf/server.xml中

Xml代码   
1.&lt;Context path="/n" docBase="E:\\aWorkingCopy\\ndaoti\\war" debug="0" reloadable="true" crossContext="false"&gt;     
&lt;Context path="/n" docBase="E:\\aWorkingCopy\\ndaoti\\war" debug="0" reloadable="true" crossContext="false"&gt; 

 把debug="0"去除即可。

分析：tomcat的6.0.16这个版本中可能用别的属性替代了debug功能。