tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher K. St. John" <>
Subject Re: DTD of server.xml
Date Thu, 11 Apr 2002 15:10:50 GMT
Enrique Riesgo wrote:
> Does anybody know how can I get the DTD for the Tomcat 4.X server.xml
> configuration file?

 There's no proper DTD for server.xml. The startup code figures
out the legal attributes for the elements at runtime, by using
introspection. For example, it's legal to do:

  <Realm className="com.distributopia.mtc.MinimalRealm"
         users="scott/tomcat/role1" />

 Note that the "users" attribute is specific to MinimalRealm,
but you can put it in server.xml because Tomcat 4 looks at
the bean methods on MinimalReal at runtime, finds setUsers(),
and calls it for you automatically.

 You can see how it would be hard to write a DTD for that
sort of thing.

Christopher St. John

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message