tomcat 5.0.27 xml schema or DTD for server.xml
Hi, I am running tomcat 5.0.27. I'm looking for a copy of the xml schema for the server.xml file. I've looked on the jakarta website and in the 2.4 servlet spec, but can't find it, Maybe there's only a DTD at this stage, Anyone know where to find it? TIA, Luke -- Luke (Terry) Vanderfluit Mobile: 0421 276 282 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.27 xml schema or DTD for server.xml
You wouldn't find it in the servlet spec, because it's specific to Tomcat. Check the archives, but as I recall, there's no published grammar for the server.xml: It's parsed in non-validating mode by the Digester. A DTD wouldn't work because the attributes for an element are arbitrary (to accomodate user implementations of the Catalina interfaces). I appreciate the idea: I wrote a schema for the 4.1.x server.xml when I wanted one to validate against, but it was kind of a bear. What are you trying to do? -- Benjamin Armintor -Original Message- From: Luke (Terry) Vanderfluit [mailto:[EMAIL PROTECTED] Sent: Sun 8/29/2004 10:53 PM To: [EMAIL PROTECTED] Subject: tomcat 5.0.27 xml schema or DTD for server.xml Hi, I am running tomcat 5.0.27. I'm looking for a copy of the xml schema for the server.xml file. I've looked on the jakarta website and in the 2.4 servlet spec, but can't find it, Maybe there's only a DTD at this stage, Anyone know where to find it? TIA, Luke -- Luke (Terry) Vanderfluit Mobile: 0421 276 282 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5.0.27 xml schema or DTD for server.xml
This should point you in the right direction.. lt;web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 gt; Luke (Terry) Vanderfluit wrote: Hi, I am running tomcat 5.0.27. I'm looking for a copy of the xml schema for the server.xml file. I've looked on the jakarta website and in the 2.4 servlet spec, but can't find it, Maybe there's only a DTD at this stage, Anyone know where to find it? TIA, Luke -- (¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯) The early bird gets the worm, but the second mouse gets the cheese... ICQ 1202948 (¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 5.0.27 xml schema or DTD for server.xml
Hi, Actually my intentions are modest. I want to validate whether the tags in server.xml are properly nested. I've had difficulty with this in web.xml before (when setting url-mappings). That's besides the general goal of improving my understanding of tomcat's configuration terminlogy. L. On Mon, 2004-08-30 at 13:39, Benjamin Armintor wrote: You wouldn't find it in the servlet spec, because it's specific to Tomcat. Check the archives, but as I recall, there's no published grammar for the server.xml: It's parsed in non-validating mode by the Digester. A DTD wouldn't work because the attributes for an element are arbitrary (to accomodate user implementations of the Catalina interfaces). I appreciate the idea: I wrote a schema for the 4.1.x server.xml when I wanted one to validate against, but it was kind of a bear. What are you trying to do? -- Benjamin Armintor -Original Message- From: Luke (Terry) Vanderfluit [mailto:[EMAIL PROTECTED] Sent: Sun 8/29/2004 10:53 PM To: [EMAIL PROTECTED] Subject: tomcat 5.0.27 xml schema or DTD for server.xml Hi, I am running tomcat 5.0.27. I'm looking for a copy of the xml schema for the server.xml file. I've looked on the jakarta website and in the 2.4 servlet spec, but can't find it, Maybe there's only a DTD at this stage, Anyone know where to find it? TIA, Luke -- Luke (Terry) Vanderfluit Mobile: 0421 276 282 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DTD for server.xml??
Craig R. McClanahan wrote: On Wed, 8 Jan 2003, Turner, John wrote: Date: Wed, 8 Jan 2003 11:31:16 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: DTD for server.xml?? Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? There is no DTD for server.xml because there cannot be. The problem is that server.xml is extensible -- for example, the set of attributes recognized by a Valve or Context element depends on the implementation class of the internal component that corresponds to it. The startup process uses Java reflection to match them up to property setters on the corresponding beans. There is no way to express this kind of thing in a DTD. Your server.xml is (and must be) well formed XML. It just cannot be validated. There may be other good reasons, but this isn't one of them :-) Here is an extract from my server.xml... Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true / This could be equally well expressed as Logger className=org.apache.catalina.logger.FileLogger property property-nameprefix/property-name property-valuecatalina_log./property-value /property property property-namesuffix/property-name property-value.txt/property-value /property property property-nametimestamp/property-name property-valuetrue/property-value /property /Logger or, more concisely as Logger className=org.apache.catalina.logger.FileLogger property name=prefix value=catalina_log./ property name=suffix value=.txt/ property name=timestamp value=true/ /Logger In both cases, the abstraction of property names allows a DTD to be defined that is inherently extensible, and thus would allow an XML parser to validate server.xml even if extended by an admin. Or am I missing something? Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DTD for server.xml??
On Thu, 9 Jan 2003, Martin Jacobson wrote: Date: Thu, 09 Jan 2003 16:06:27 +0100 From: Martin Jacobson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: DTD for server.xml?? Craig R. McClanahan wrote: On Wed, 8 Jan 2003, Turner, John wrote: Date: Wed, 8 Jan 2003 11:31:16 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: DTD for server.xml?? Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? There is no DTD for server.xml because there cannot be. The problem is that server.xml is extensible -- for example, the set of attributes recognized by a Valve or Context element depends on the implementation class of the internal component that corresponds to it. The startup process uses Java reflection to match them up to property setters on the corresponding beans. There is no way to express this kind of thing in a DTD. Your server.xml is (and must be) well formed XML. It just cannot be validated. There may be other good reasons, but this isn't one of them :-) Here is an extract from my server.xml... Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true / This could be equally well expressed as Logger className=org.apache.catalina.logger.FileLogger property property-nameprefix/property-name property-valuecatalina_log./property-value /property property property-namesuffix/property-name property-value.txt/property-value /property property property-nametimestamp/property-name property-valuetrue/property-value /property /Logger or, more concisely as Logger className=org.apache.catalina.logger.FileLogger property name=prefix value=catalina_log./ property name=suffix value=.txt/ property name=timestamp value=true/ /Logger In both cases, the abstraction of property names allows a DTD to be defined that is inherently extensible, and thus would allow an XML parser to validate server.xml even if extended by an admin. Or am I missing something? Well, most people edit server.xml by hand, and even your more concise version is a lot of extra typing :-). It also doesn't cover the case where a Listener element that you might have dynamically creates some new digester rules (commons-digester is what Tomcat uses to read server.xml and web.xml files) to recognize additional elements on the fly. The right answer to editing server.xml files is to not do it -- let a tool do it for you. That way, the syntax is irrelevant to the user. Martin Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DTD for server.xml??
Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DTD for server.xml??
It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DTD for server.xml??
That makes sense. OK, next question, in a thread started yesterday, it was mentioned (correctly, I assume) that you could use XML entities to include external XML files into server.xml. So, this link came up on Google: http://tech.irt.org/articles/js212/#example_2 Which leads a person to believe that something like !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml Then towards the bottom: vhost1 would work in server.xml, but it doesn't. Error: Catalina.start: org.xml.sax.SAXParseException: The content beginning ! is not legal markup. Is this a futile path, or is it possible to include external XML into server.xml when server.xml is parsed? If so, how? Thanks! John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:37 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DTD for server.xml??
Sorry, that should be !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml Typo in vhost. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:42 AM To: 'Tomcat Users List' Subject: RE: DTD for server.xml?? That makes sense. OK, next question, in a thread started yesterday, it was mentioned (correctly, I assume) that you could use XML entities to include external XML files into server.xml. So, this link came up on Google: http://tech.irt.org/articles/js212/#example_2 Which leads a person to believe that something like !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml Then towards the bottom: vhost1 would work in server.xml, but it doesn't. Error: Catalina.start: org.xml.sax.SAXParseException: The content beginning ! is not legal markup. Is this a futile path, or is it possible to include external XML into server.xml when server.xml is parsed? If so, how? Thanks! John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:37 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DTD for server.xml??
I thin it should be defined like this: !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] I did not try it but that the way ENTITY works usually. -- Jeanfrancois Turner, John wrote: Sorry, that should be !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml Typo in vhost. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:42 AM To: 'Tomcat Users List' Subject: RE: DTD for server.xml?? That makes sense. OK, next question, in a thread started yesterday, it was mentioned (correctly, I assume) that you could use XML entities to include external XML files into server.xml. So, this link came up on Google: http://tech.irt.org/articles/js212/#example_2 Which leads a person to believe that something like !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml Then towards the bottom: vhost1 would work in server.xml, but it doesn't. Error: Catalina.start: org.xml.sax.SAXParseException: The content beginning ! is not legal markup. Is this a futile path, or is it possible to include external XML into server.xml when server.xml is parsed? If so, how? Thanks! John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:37 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DTD for server.xml??
Oups (remove the quote) !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] -- Jeanfrancois Jeanfrancois Arcand wrote: I thin it should be defined like this: !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] I did not try it but that the way ENTITY works usually. -- Jeanfrancois Turner, John wrote: Sorry, that should be !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml Typo in vhost. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:42 AM To: 'Tomcat Users List' Subject: RE: DTD for server.xml?? That makes sense. OK, next question, in a thread started yesterday, it was mentioned (correctly, I assume) that you could use XML entities to include external XML files into server.xml. So, this link came up on Google: http://tech.irt.org/articles/js212/#example_2 Which leads a person to believe that something like !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml Then towards the bottom: vhost1 would work in server.xml, but it doesn't. Error: Catalina.start: org.xml.sax.SAXParseException: The content beginning ! is not legal markup. Is this a futile path, or is it possible to include external XML into server.xml when server.xml is parsed? If so, how? Thanks! John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:37 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DTD for server.xml??
I'm doing it in my server.xml file this way: !DOCTYPE Server [ !ENTITY inc_vhosts SYSTEM /etc/tomcat4/vhosts.xml ] and somewhere in the Engine: inc_vhosts; Turner, John wrote: That makes sense. OK, next question, in a thread started yesterday, it was mentioned (correctly, I assume) that you could use XML entities to include external XML files into server.xml. So, this link came up on Google: http://tech.irt.org/articles/js212/#example_2 Which leads a person to believe that something like !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml Then towards the bottom: vhost1 would work in server.xml, but it doesn't. Error: Catalina.start: org.xml.sax.SAXParseException: The content beginning ! is not legal markup. Is this a futile path, or is it possible to include external XML into server.xml when server.xml is parsed? If so, how? Thanks! John -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DTD for server.xml??
Just so there is a confirmation from someone who did it, This works! From my server.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app[ !ENTITY vhost SYSTEM /usr/local/jakarta-tomcat-4.1.12-LE-jdk14/conf/vhost.xml ] Server ... *snip* /Host %vhost; /Engine /Service FWIW, vhost.xml is a full Host subset. Thanks! -Matthew Jeanfrancois Arcand wrote: Oups (remove the quote) !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] -- Jeanfrancois Jeanfrancois Arcand wrote: I thin it should be defined like this: !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] I did not try it but that the way ENTITY works usually. -- Jeanfrancois Turner, John wrote: Sorry, that should be !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml Typo in vhost. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:42 AM To: 'Tomcat Users List' Subject: RE: DTD for server.xml?? That makes sense. OK, next question, in a thread started yesterday, it was mentioned (correctly, I assume) that you could use XML entities to include external XML files into server.xml. So, this link came up on Google: http://tech.irt.org/articles/js212/#example_2 Which leads a person to believe that something like !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml Then towards the bottom: vhost1 would work in server.xml, but it doesn't. Error: Catalina.start: org.xml.sax.SAXParseException: The content beginning ! is not legal markup. Is this a futile path, or is it possible to include external XML into server.xml when server.xml is parsed? If so, how? Thanks! John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:37 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Matthew Boeckman (816) 777-2160 Manager - Systems Integration Saepio Technologies -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DTD for server.xml??
Awesome! Thanks! ;) John -Original Message- From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:59 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? Just so there is a confirmation from someone who did it, This works! From my server.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app[ !ENTITY vhost SYSTEM /usr/local/jakarta-tomcat-4.1.12-LE-jdk14/conf/vhost.xml ] Server ... *snip* /Host %vhost; /Engine /Service FWIW, vhost.xml is a full Host subset. Thanks! -Matthew Jeanfrancois Arcand wrote: Oups (remove the quote) !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] -- Jeanfrancois Jeanfrancois Arcand wrote: I thin it should be defined like this: !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] I did not try it but that the way ENTITY works usually. -- Jeanfrancois Turner, John wrote: Sorry, that should be !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml Typo in vhost. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:42 AM To: 'Tomcat Users List' Subject: RE: DTD for server.xml?? That makes sense. OK, next question, in a thread started yesterday, it was mentioned (correctly, I assume) that you could use XML entities to include external XML files into server.xml. So, this link came up on Google: http://tech.irt.org/articles/js212/#example_2 Which leads a person to believe that something like !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml Then towards the bottom: vhost1 would work in server.xml, but it doesn't. Error: Catalina.start: org.xml.sax.SAXParseException: The content beginning ! is not legal markup. Is this a futile path, or is it possible to include external XML into server.xml when server.xml is parsed? If so, how? Thanks! John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:37 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Matthew Boeckman (816) 777-2160 Manager - Systems Integration Saepio Technologies -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DTD for server.xml??
It might be useful to have a reference DTD for server.xml included in the documentation for tomcat as delivered by apache. But not actually reference it in the DOCTYPE declaration in server.xml This would give users a single place to reference for constructing a valid server.xml file while not constraining an admin from extending the system. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:37 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DTD for server.xml??
any one uses Tomcat and AXIS. I run the happyaxis.jsp and receive this warning: The core axis libraries are present. 1 optional axis library is missing Note: On Tomcat 4.x and Java1.4, you may need to put libraries that contain java.* or javax.* packages into CATALINA_HOME/common/lib jaxrpc.jar and saaj.jar are two such libraries. I tried that but it still gave me that warning. Thanks, Eric -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:54 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? Oups (remove the quote) !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] -- Jeanfrancois Jeanfrancois Arcand wrote: I thin it should be defined like this: !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] I did not try it but that the way ENTITY works usually. -- Jeanfrancois Turner, John wrote: Sorry, that should be !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml Typo in vhost. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:42 AM To: 'Tomcat Users List' Subject: RE: DTD for server.xml?? That makes sense. OK, next question, in a thread started yesterday, it was mentioned (correctly, I assume) that you could use XML entities to include external XML files into server.xml. So, this link came up on Google: http://tech.irt.org/articles/js212/#example_2 Which leads a person to believe that something like !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml Then towards the bottom: vhost1 would work in server.xml, but it doesn't. Error: Catalina.start: org.xml.sax.SAXParseException: The content beginning ! is not legal markup. Is this a futile path, or is it possible to include external XML into server.xml when server.xml is parsed? If so, how? Thanks! John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:37 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DTD for server.xml??
We are using tomcat 4.1.12 and 4.1.18 with jdk 1.4.1 and we place the axis.jar in the {context_home}/WEB-INF/lib directory and we place xerces.jar and the xml-apis.jar in the CATALINA_HOME/common/lib directory (like the error message says) -Original Message- From: Ghershony, Arie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 12:22 PM To: 'Tomcat Users List' Subject: RE: DTD for server.xml?? any one uses Tomcat and AXIS. I run the happyaxis.jsp and receive this warning: The core axis libraries are present. 1 optional axis library is missing Note: On Tomcat 4.x and Java1.4, you may need to put libraries that contain java.* or javax.* packages into CATALINA_HOME/common/lib jaxrpc.jar and saaj.jar are two such libraries. I tried that but it still gave me that warning. Thanks, Eric -Original Message- From: Jeanfrancois Arcand [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:54 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? Oups (remove the quote) !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] -- Jeanfrancois Jeanfrancois Arcand wrote: I thin it should be defined like this: !DOCTYPE web-app[ !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml ] I did not try it but that the way ENTITY works usually. -- Jeanfrancois Turner, John wrote: Sorry, that should be !ENTITY vhost1 SYSTEM /path/to/tomcat/conf/vhost1.xml Typo in vhost. John -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:42 AM To: 'Tomcat Users List' Subject: RE: DTD for server.xml?? That makes sense. OK, next question, in a thread started yesterday, it was mentioned (correctly, I assume) that you could use XML entities to include external XML files into server.xml. So, this link came up on Google: http://tech.irt.org/articles/js212/#example_2 Which leads a person to believe that something like !ENTITY vhost SYSTEM /path/to/tomcat/conf/vhost1.xml Then towards the bottom: vhost1 would work in server.xml, but it doesn't. Error: Catalina.start: org.xml.sax.SAXParseException: The content beginning ! is not legal markup. Is this a futile path, or is it possible to include external XML into server.xml when server.xml is parsed? If so, how? Thanks! John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 11:37 AM To: Tomcat Users List Subject: Re: DTD for server.xml?? It would be almost impossible to write a DTD for server.xml since an admin may inject custom classes (Listeners/Loggers). To have a dtd, we would need to know every property which can be set for every class (which may be made known in server.xml) since tomcat uses reflection from Diegester. -Tim Turner, John wrote: Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? - John John Turner [EMAIL PROTECTED] | 248-488-3466 Advertising Audit Service http://www.aas.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: DTD for server.xml??
On Wed, 8 Jan 2003, Turner, John wrote: Date: Wed, 8 Jan 2003 11:31:16 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: DTD for server.xml?? Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? There is no DTD for server.xml because there cannot be. The problem is that server.xml is extensible -- for example, the set of attributes recognized by a Valve or Context element depends on the implementation class of the internal component that corresponds to it. The startup process uses Java reflection to match them up to property setters on the corresponding beans. There is no way to express this kind of thing in a DTD. Your server.xml is (and must be) well formed XML. It just cannot be validated. - John Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DTD for server.xml??
On Wed, 8 Jan 2003, Geiglein, Gary wrote: Date: Wed, 8 Jan 2003 12:18:53 -0500 From: Geiglein, Gary [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: DTD for server.xml?? It might be useful to have a reference DTD for server.xml included in the documentation for tomcat as delivered by apache. But not actually reference it in the DOCTYPE declaration in server.xml This would give users a single place to reference for constructing a valid server.xml file while not constraining an admin from extending the system. There is no such thing and cannot be -- DTDs cannot express the reality of what works and what doesn't. However, there *is* reference documentation for what is valid in each element, and what can be nested where. It's even included with Tomcat for you! http://localhost:8080/tomcat-docs/config/ or available online: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/ Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DTD for server.xml??
Got it. Thanks. John -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 3:11 PM To: Tomcat Users List Subject: Re: DTD for server.xml?? On Wed, 8 Jan 2003, Turner, John wrote: Date: Wed, 8 Jan 2003 11:31:16 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: DTD for server.xml?? Hello - I notice that the top of web.xml has: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; yet the top of server.xml has nothing. I'm very new to XML, so forgive me if this is a lame or FA question, but is there a DTD for server.xml? If so, why isn't it specified in server.xml, and what is the URL? Is server.xml real, official XML or just convenience XML? There is no DTD for server.xml because there cannot be. The problem is that server.xml is extensible -- for example, the set of attributes recognized by a Valve or Context element depends on the implementation class of the internal component that corresponds to it. The startup process uses Java reflection to match them up to property setters on the corresponding beans. There is no way to express this kind of thing in a DTD. Your server.xml is (and must be) well formed XML. It just cannot be validated. - John Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: DTD for server.xml
For server.xml info for Tomcat 3.3, see: http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#configuring_server Cheers, Larry -Original Message- From: Craig R. McClanahan [mailto:craigmcc;apache.org] Sent: Sunday, October 27, 2002 8:17 PM To: Tomcat Users List Subject: Re: DTD for server.xml On 27 Oct 2002, Johann Uhrmann wrote: Date: 27 Oct 2002 16:57:01 +0100 From: Johann Uhrmann [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: DTD for server.xml Hi, after searching for quite a while now and having some trouble with the server.xml file. I would like to ask where I can get a DTD for the server.xml. Is there something like the well documented specification for the web.xml file (can be found in the servlet specification)? It is not technically feasible to write a complete DTD for the server.xml file, because (by their very nature) the set of attributes for many of the elements is dynamically extensible, and DTD syntax does not support this. If you're using Tomcat 4.0.x or 4.1.x, the valid options are pretty thoroughly described in the documentation that ships with Tomcat: http://localhost:8080/tomcat-docs/config/ or available online: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/ For 3.x (which it sounds like you're using), I don't know if there is corresponding reference manterial. Thank You, Hans Criag -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
DTD for server.xml
Hi, after searching for quite a while now and having some trouble with the server.xml file. I would like to ask where I can get a DTD for the server.xml. Is there something like the well documented specification for the web.xml file (can be found in the servlet specification)? Thank You, Hans P.S.: I have no idea where to put the ApacheConfig ... tag in my server.xml as there is neither a ContextManger tag nor a AutoWebApp tag in my server.xml. Unfortunately ContextManger and AutoWebApp are the only hints that can be found at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/doc/mod_jk-howto.html#s81 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: DTD for server.xml
Hi Johann, I had this problem last week so I might be able to help you out with the ApacheConfig stuff. The tomcat docs are either out of date or just misleading as there isn't an ApacheConfig tag nor an 'AutoWebapp'. Take a look at this howto, it should help in how to set up server.xml to get mod_jk running. http://www.johnturner.com/howto/apache2-tomcat404-howto.html As for the DTD.. I've seen one out there but I can't locate it just now. I'll keep looking. Cheers Tref -- Tref Gare Development Consultant Areeba Level 19/114 William St, Melbourne VIC 3000 email: [EMAIL PROTECTED] phone: +61 3 9642 5553 fax: +61 3 9642 1335 website: http://www.areeba.com.au -- This email is intended only for the use of the individual or entity named above and contains information that is confidential. No confidentiality is waived or lost by any mis-transmission. If you received this correspondence in error, please notify the sender and immediately delete it from your system. You must not disclose, copy or rely on any part of this correspondence if you are not the intended recipient. Any communication directed to clients via this message is subject to our Agreement and relevant Project Schedule. Any information that is transmitted via email which may offend may have been sent without knowledge or the consent of Areeba. -- -Original Message- From: Johann Uhrmann [mailto:johann.uhrmann;xpecto.com] Sent: Monday, 28 October 2002 2:57 AM To: Tomcat Users List Subject: DTD for server.xml Hi, after searching for quite a while now and having some trouble with the server.xml file. I would like to ask where I can get a DTD for the server.xml. Is there something like the well documented specification for the web.xml file (can be found in the servlet specification)? Thank You, Hans P.S.: I have no idea where to put the ApacheConfig ... tag in my server.xml as there is neither a ContextManger tag nor a AutoWebApp tag in my server.xml. Unfortunately ContextManger and AutoWebApp are the only hints that can be found at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/doc/mod_jk -howto.html#s81 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: DTD for server.xml
On 27 Oct 2002, Johann Uhrmann wrote: Date: 27 Oct 2002 16:57:01 +0100 From: Johann Uhrmann [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: DTD for server.xml Hi, after searching for quite a while now and having some trouble with the server.xml file. I would like to ask where I can get a DTD for the server.xml. Is there something like the well documented specification for the web.xml file (can be found in the servlet specification)? It is not technically feasible to write a complete DTD for the server.xml file, because (by their very nature) the set of attributes for many of the elements is dynamically extensible, and DTD syntax does not support this. If you're using Tomcat 4.0.x or 4.1.x, the valid options are pretty thoroughly described in the documentation that ships with Tomcat: http://localhost:8080/tomcat-docs/config/ or available online: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/ For 3.x (which it sounds like you're using), I don't know if there is corresponding reference manterial. Thank You, Hans Criag -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
[OT] DTD Validation -- Server.xml
For container/realm based definitions in the server.xml, I notice that the Attributes are really fly-by-wire as to the implementing object [MemoryRealm vs. JDBCRealm]. If I were to use the Struts Digester and include a DTD for validation, would any extra Attribute not specified in the DTD be ignored by: A: The DTD Validation B: The Digester itself during parsing Best Regards, Jacob Hookom Comprehensive Computer Science University of Wisconsin, Eau Claire --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] DTD Validation -- Server.xml
On Fri, 30 Aug 2002, Jacob Hookom wrote: Date: Fri, 30 Aug 2002 14:20:40 -0500 From: Jacob Hookom [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: [OT] DTD Validation -- Server.xml For container/realm based definitions in the server.xml, I notice that the Attributes are really fly-by-wire as to the implementing object [MemoryRealm vs. JDBCRealm]. If I were to use the Struts Digester and include a DTD for validation, would any extra Attribute not specified in the DTD be ignored by: A:The DTD Validation No. Any violation of the list of attributes defined for a particular element in a DTD causes the validator to throw an exception on your document. (This, of course, is why there is no such thing as a complete DTD for server.xml files). B:The Digester itself during parsing Yes. This happens already -- if you have extra attributes on your elements that do not match properties on the underlying object, they are silently ignored. Note that it's really commons-digester now, and in fact Tomcat 4.1 uses this for parsing server.xml files. Best Regards, Jacob Hookom Comprehensive Computer Science University of Wisconsin, Eau Claire Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: [OT] DTD Validation -- Server.xml
Thanks. From you comments, I believe I will have to opt out of DTD validation and just rely on Digester to map any attributes thrown in to the bean's properties. | -Original Message- | From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] | Sent: Friday, August 30, 2002 3:41 PM | To: Tomcat Users List | Subject: Re: [OT] DTD Validation -- Server.xml | | | | On Fri, 30 Aug 2002, Jacob Hookom wrote: | | Date: Fri, 30 Aug 2002 14:20:40 -0500 | From: Jacob Hookom [EMAIL PROTECTED] | Reply-To: Tomcat Users List [EMAIL PROTECTED] | To: Tomcat Users List [EMAIL PROTECTED] | Subject: [OT] DTD Validation -- Server.xml | | For container/realm based definitions in the server.xml, I notice that | the Attributes are really fly-by-wire as to the implementing object | [MemoryRealm vs. JDBCRealm]. | | If I were to use the Struts Digester and include a DTD for validation, | would any extra Attribute not specified in the DTD be ignored by: | | A: The DTD Validation | | No. Any violation of the list of attributes defined for a particular | element in a DTD causes the validator to throw an exception on your | document. (This, of course, is why there is no such thing as a complete | DTD for server.xml files). | | B: The Digester itself during parsing | | Yes. This happens already -- if you have extra attributes on your | elements that do not match properties on the underlying object, they are | silently ignored. | | Note that it's really commons-digester now, and in fact Tomcat 4.1 uses | this for parsing server.xml files. | | | Best Regards, | Jacob Hookom | Comprehensive Computer Science | University of Wisconsin, Eau Claire | | | Craig | | | -- | To unsubscribe, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | For additional commands, e-mail: mailto:tomcat-user- | [EMAIL PROTECTED] | | --- | Incoming mail is certified Virus Free. | Checked by AVG anti-virus system (http://www.grisoft.com). | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 | --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DTD of server.xml
Hi Does anybody know how can I get the DTD for the Tomcat 4.X server.xml configuration file? The default server.xml doesn't have any reference to a DTD. Thanks in advance Enrique _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: DTD of server.xml
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 [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]