You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/11/13 10:36:28 UTC
DO NOT REPLY [Bug 4826] New: -
Can't configure AutoWebApp dir to absolute value on Windows
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4826>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4826
Can't configure AutoWebApp dir to absolute value on Windows
Summary: Can't configure AutoWebApp dir to absolute value on
Windows
Product: Tomcat 3
Version: 3.3 Final
Platform: All
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Config
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: quarendont@uk.tigplc.com
Tried to set the AutoWebApp dir to an absolute value e.g.
<AutoWebApp dir="d:\webapps" host="DEFAULT" />
My tomcat.home is set to (e.g) d:\tomcat.
However tomcat produces an error saying
AutoWebApp: No autoconf directory d:\tomcat\d:\webapps
Looking at the code AutoWebApp.java line 188 seems to be the culprit.
Suggested fix. Replace the code :
if( appsD.startsWith( "/" ) )
webappD=new File(appsD);
else
webappD=new File(home + "/" + appsD);
with code such as:
File appsDFile = new File(appsD);
if (appsDFile.isAbsolute()) {
webappsD = appsDFile;
}
else {
webappsD = new File(home, appsD);
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>