Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 30100 invoked from network); 25 Dec 2006 01:49:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Dec 2006 01:49:16 -0000 Received: (qmail 13978 invoked by uid 500); 25 Dec 2006 01:49:20 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 13926 invoked by uid 500); 25 Dec 2006 01:49:20 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 13915 invoked by uid 500); 25 Dec 2006 01:49:20 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 13912 invoked by uid 99); 25 Dec 2006 01:49:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Dec 2006 17:49:20 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Dec 2006 17:49:13 -0800 Received: by brutus.apache.org (Postfix, from userid 33) id CD089714295; Sun, 24 Dec 2006 17:48:52 -0800 (PST) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 38131] - WatchedResource does not work if app is outside "webapps" In-Reply-To: X-Bugzilla-Reason: AssignedTo Message-Id: <20061225014852.CD089714295@brutus.apache.org> Date: Sun, 24 Dec 2006 17:48:52 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG� RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND� INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=38131 yoavs@computer.org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|NEW |NEEDINFO ------- Additional Comments From yoavs@computer.org 2006-12-24 17:48 ------- First, I'm changing this to an enhancement, as the current code is clearly designed for absolute paths so what you're reporting is not a bug. Second, the relevant code you want to look at is in org.apache.catalina.startup.HostConfig, the addWatchedResourced method. That method will loop over the declared WatchedResources for the Context and try to create a java.io.File corresponding to each WatchedResource for monitoring. As you can see from the code, it either wants an absolute path to the WatchedResource, or a docBase relative to which the WatchedResource can be found. I'm guessing in your case the docBase is relative, not absolute, so the method uses appBase as the context for docBase, and since your webapp is outside appBase this doesn't work. Is my guess right? Does it work if you make your docBase absolute? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org