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

Variable substiturion not working for server.xml

           Summary: Variable substiturion not working for server.xml
           Product: Tomcat 4
           Version: 4.1.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


First off, is this feature deprecated? I can find NO REFERENCE for the life of 
me in the 4.1 docs for variable substitution, so there is a chance this was 
changed and not documented anywhere.

According to the 3.3 manual, variable substitution SHOULD work:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html

There is no correspnding page in the 4.1 manual (oversight?) so I can not tell 
if that data is accurate. In order to pass in an environment variable (in my 
case the bind IP for a developer instance), it would appear one should do:

tomcat.sh start -bind.ip=1.2.3.4

However, since 3.3:

tomcat.sh is now catalina.sh?
there is no support for options past the start argument
it appears JAVA_OPTS is now preferred.

So I set JAVA_OPTS="-Dbind.ip=1.2.3.4", and verified that declaration was 
passed to the JVM. No problem there. However, catalina does not respect my 
server.xml reference to the property:

    <!-- HTTP 1.1 Listener on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               address="${bind.ip}"
               port="8080"

And reports the following in the error log:

VM Started:
> IntrospectionUtils: Unable to resolve host name:${bind.ip}
Aug 7, 2003 8:35:26 AM org.apache.coyote.http11.Http11Protocol init

This is at the very least a break in documentation since there is no general 
server.xml reference documnent, and appears to be a bug in the app as well.

This is a major pain since now I need to customize each server.xml for each 
developer and then all are out of sync with CVS. Please Fix!!!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to