Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change 
notification.

The "FAQ/Password" page has been changed by KonstantinKolinko:
https://wiki.apache.org/tomcat/FAQ/Password?action=diff&rev1=11&rev2=12

Comment:
Correct DOCTYPE declaration example - it has to match the root element. See 
"Validity constraint: Root Element Type" in XML 1.0 spec (REC-xml-20081126). I 
am using this syntax in my server.xml files.

  
   * Use properties replacement so that in the xml config you have 
${db.password} and in conf/catalina.properties you put the password there. 
   * Since server.xml is an XML file — you can use XML entities. For example: 
"woot" becomes "woot" which is a way to 
obscure the password. You may even go through an extra layer of indirection by 
converting ${db.password} into XML entities so that the property replacement 
above is also performed. (But remember, while "clever, not more secure)
-  * XML entities can be read from an external file. That is, add the following 
lines at the top of server.xml just above the {{{<Server>}}} element:
+  * XML entities can be read from an external file. That is, add the following 
text at the top of server.xml just after the XML declaration (`<?xml ...?>`) 
and before the {{{<Server>}}} element (line wraps can be removed):
  
  {{{
- <!DOCTYPE server-xml [
+ <!DOCTYPE Server [
    <!ENTITY resources SYSTEM "resources.txt">
  ]>
  }}}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to