RE: xsd version used for web.xml etc

2021-10-21 Thread S Abirami
Thanks a lot Mark.

-Original Message-
From: Mark Thomas  
Sent: Thursday, October 21, 2021 4:23 PM
To: users@tomcat.apache.org
Subject: Re: xsd version used for web.xml etc

On 21/10/2021 10:37, S Abirami wrote:
> Hi Thomas,
> 
> How I can identify whether the schema validation enabled or not.
> I checked startup logs and other configuration.
> 
> I am unable to find it.

The quick test is to add an unknown element to web.xml and see what happens. If 
you get an error, validation is enabled. If it is ignored, validation is not 
enabled.

It is typically configured in $CATALINA_BASE/conf/context.xml

See https://tomcat.apache.org/tomcat-9.0-doc/config/context.html
Of particular interest:
xmlNamespaceAware
xmlValidation

Mark


> 
> Regards,
> Abirami.S
> 
> -Original Message-
> From: Mark Thomas 
> Sent: Thursday, October 21, 2021 2:40 PM
> To: users@tomcat.apache.org
> Subject: Re: xsd version used for web.xml etc
> 
> On 21/10/2021 09:45, S Abirami wrote:
>> Hi All,
>>
>> In web.xml, if we didn't define any xsd schema or dtd schema which version 
>> of xsd will be loaded for Tomcat 9.0.45.
> 
> By default none - whether a schema is defined or not. Schemas are only loaded 
> if validation is enabled.
> 
> With validation disabled, Tomcat will treat the content of a web.xml file as 
> if it is using the schema associated with the Servlet 4.0 specification.
> 
> Mark
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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


Re: xsd version used for web.xml etc

2021-10-21 Thread Mark Thomas

On 21/10/2021 10:37, S Abirami wrote:

Hi Thomas,

How I can identify whether the schema validation enabled or not.
I checked startup logs and other configuration.

I am unable to find it.


The quick test is to add an unknown element to web.xml and see what 
happens. If you get an error, validation is enabled. If it is ignored, 
validation is not enabled.


It is typically configured in $CATALINA_BASE/conf/context.xml

See https://tomcat.apache.org/tomcat-9.0-doc/config/context.html
Of particular interest:
xmlNamespaceAware
xmlValidation

Mark




Regards,
Abirami.S

-Original Message-
From: Mark Thomas 
Sent: Thursday, October 21, 2021 2:40 PM
To: users@tomcat.apache.org
Subject: Re: xsd version used for web.xml etc

On 21/10/2021 09:45, S Abirami wrote:

Hi All,

In web.xml, if we didn't define any xsd schema or dtd schema which version of 
xsd will be loaded for Tomcat 9.0.45.


By default none - whether a schema is defined or not. Schemas are only loaded 
if validation is enabled.

With validation disabled, Tomcat will treat the content of a web.xml file as if 
it is using the schema associated with the Servlet 4.0 specification.

Mark

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

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




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



RE: xsd version used for web.xml etc

2021-10-21 Thread S Abirami
Hi Thomas,

How I can identify whether the schema validation enabled or not.
I checked startup logs and other configuration.

I am unable to find it.

Regards,
Abirami.S

-Original Message-
From: Mark Thomas  
Sent: Thursday, October 21, 2021 2:40 PM
To: users@tomcat.apache.org
Subject: Re: xsd version used for web.xml etc

On 21/10/2021 09:45, S Abirami wrote:
> Hi All,
> 
> In web.xml, if we didn't define any xsd schema or dtd schema which version of 
> xsd will be loaded for Tomcat 9.0.45.

By default none - whether a schema is defined or not. Schemas are only loaded 
if validation is enabled.

With validation disabled, Tomcat will treat the content of a web.xml file as if 
it is using the schema associated with the Servlet 4.0 specification.

Mark

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

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



RE: xsd version used for web.xml etc

2021-10-21 Thread S Abirami
Thanks Thomas.

-Original Message-
From: Mark Thomas  
Sent: Thursday, October 21, 2021 2:40 PM
To: users@tomcat.apache.org
Subject: Re: xsd version used for web.xml etc

On 21/10/2021 09:45, S Abirami wrote:
> Hi All,
> 
> In web.xml, if we didn't define any xsd schema or dtd schema which version of 
> xsd will be loaded for Tomcat 9.0.45.

By default none - whether a schema is defined or not. Schemas are only loaded 
if validation is enabled.

With validation disabled, Tomcat will treat the content of a web.xml file as if 
it is using the schema associated with the Servlet 4.0 specification.

Mark

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

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



Re: xsd version used for web.xml etc

2021-10-21 Thread Mark Thomas

On 21/10/2021 09:45, S Abirami wrote:

Hi All,

In web.xml, if we didn't define any xsd schema or dtd schema which version of 
xsd will be loaded for Tomcat 9.0.45.


By default none - whether a schema is defined or not. Schemas are only 
loaded if validation is enabled.


With validation disabled, Tomcat will treat the content of a web.xml 
file as if it is using the schema associated with the Servlet 4.0 
specification.


Mark

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



RE: xsd version used for web.xml etc

2021-10-21 Thread S Abirami
Hi All,

TOMCAT_BASE/conf/web.xml will be constructed by us during installation.

So that web.xml also will not have xsd definition.

Regards,
Abirami.S

-Original Message-
From: Jean-Pierre Urkens  
Sent: Thursday, October 21, 2021 2:25 PM
To: Tomcat Users List 
Subject: RE: xsd version used for web.xml etc

My guess, the one that is specified in TOMCAT_BASE/conf/web.xml

-Original Message-
From: S Abirami 
Sent: donderdag 21 oktober 2021 10:46
To: Tomcat Users List 
Subject: xsd version used for web.xml etc

Hi All,

In web.xml, if we didn't define any xsd schema or dtd schema which version of 
xsd will be loaded for Tomcat 9.0.45.

Regards,
Abirami.S

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

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



RE: xsd version used for web.xml etc

2021-10-21 Thread Jean-Pierre Urkens
My guess, the one that is specified in TOMCAT_BASE/conf/web.xml

-Original Message-
From: S Abirami 
Sent: donderdag 21 oktober 2021 10:46
To: Tomcat Users List 
Subject: xsd version used for web.xml etc

Hi All,

In web.xml, if we didn't define any xsd schema or dtd schema which version
of xsd will be loaded for Tomcat 9.0.45.

Regards,
Abirami.S

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



xsd version used for web.xml etc

2021-10-21 Thread S Abirami
Hi All,

In web.xml, if we didn't define any xsd schema or dtd schema which version of 
xsd will be loaded for Tomcat 9.0.45.

Regards,
Abirami.S