tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38131] - WatchedResource does not work if app is outside "webapps"
Date Mon, 25 Dec 2006 01:48:52 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38131>.
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


Mime
View raw message