Yes. server.xml is case sensitive. All XML documents are case sensitive.
Tomcat may not have reported parsing errors because it isn't an XML
validator and your server.xml is well-formed. Tomcat constructed its XML
DOM and simply looked for the nodes "name" and "value" under parameter.
That there were "Name" and "Value" nodes may be in violation of the DTD, but
it is still a well-formed document...
You could run an XML validator against to server.xml yourself to detect
errors.
----- Original Message -----
From: "Lukasz Szelag" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 11:57
Subject: Is server.xml DTD case-sensitive?
Hello,
I have noticed that resource parameters are ignored when declared as
follows:
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<Parameter>
<Name>mail.smtp.host</Name>
<Value>smtp.dsl.net</Value>
</Parameter>
</ResourceParams>
As opposed to:
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
<ResourceParams name="mail/Session">
<parameter>
<name>mail.smtp.host</name>
<value>smtp.dsl.net</value>
</parameter>
</ResourceParams>
(The effect of the first example is that "mail.smtp.host" is not set and
still holds its initial value of "localhost").
Although the "parameter" element in Tomcat docs is written in lowercase I
thougth that it didn't matter. Does anyone know if
this behavior is intentional or it is a bug? Looks like it is a bug since
there were no parsing errors reported by Tomcat.
Lukasz Szelag
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]