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 2004/12/09 11:45:43 UTC

DO NOT REPLY [Bug 32603] New: - Tomcat documentation wrong

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=32603>.
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=32603

           Summary: Tomcat documentation wrong
           Product: Tomcat 5
           Version: 5.0.27
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: nicola.flucke@kippdata.de


I found out that the appBase-attribute (server.xml) is not relative to
$CATALINA_HOME. It's relative to $CATALINA_BASE unless it's specified an
absolute pathname.
In the documentation
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html you write for
the appBase-attribute: "...You may specify an absolute pathname for this
directory, or a pathname that is relative to the $CATALINA_HOME directory..."
But in the sourcecode of HostConfig.java I found this:    
  protected File appBase() {
        if (appBase != null) {
            return appBase;
        }
        File file = new File(host.getAppBase());
        if (!file.isAbsolute())
            file = new File(System.getProperty("catalina.base"),
                            host.getAppBase());
        try {
            appBase = file.getCanonicalFile();
        } catch (IOException e) {
            appBase = file;
        }
        return (appBase);
    }

It should be correct in the documentation, because it's bit confusing.
I tested it with Tomcat 5.0.27 but I check the actual code in CVS, it's the same.

-- 
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org