<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
                      https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd"
  version="6.0"
  metadata-complete="true">

  <display-name>Tomcat Test Application</display-name>
  <description>
     Used as part of the Tomcat unit tests when a full web application is
     required.
  </description>

  <servlet>
    <servlet-name>jsp</servlet-name>
      <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
      <init-param>
        <param-name>fork</param-name>
        <param-value>false</param-value>
      </init-param>
      <init-param>
        <param-name>xpoweredBy</param-name>
        <param-value>false</param-value>
      </init-param>
      <!-- Required by /jsp/tagFileInJar.jsp / TestJspCompilationContext  -->
      <init-param>
        <param-name>modificationTestInterval</param-name>
        <param-value>0</param-value>
      </init-param>
    <load-on-startup>3</load-on-startup>
  </servlet>

  <!--  Bug 49922 -->
  <filter>
    <filter-name>Bug49922</filter-name>
    <filter-class>
      org.apache.catalina.core.TestStandardContext$Bug49922Filter
    </filter-class>
  </filter>
  <filter-mapping>
    <filter-name>Bug49922</filter-name>
    <url-pattern>/bug49922/servlet/*</url-pattern>
    <url-pattern>*.do</url-pattern>
    <servlet-name>Bug49922</servlet-name>
  </filter-mapping>
  <filter-mapping>
    <filter-name>Bug49922</filter-name>
    <servlet-name>Bug49922Target</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
  </filter-mapping>
  <servlet>
    <servlet-name>bug49297NoSpace</servlet-name>
    <jsp-file>/bug49nnn/bug49297NoSpace.jsp</jsp-file>
      <init-param>
        <param-name>strictWhitespace</param-name>
        <param-value>false</param-value>
      </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>bug49297NoSpace</servlet-name>
    <url-pattern>/bug49nnn/bug49297NoSpace.jsp</url-pattern>
  </servlet-mapping>
  <servlet>
    <servlet-name>Bug49922Forward</servlet-name>
    <servlet-class>
      org.apache.catalina.core.TestStandardContext$Bug49922ForwardServlet
    </servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Bug49922Forward</servlet-name>
    <url-pattern>/bug49922/forward</url-pattern>
  </servlet-mapping>
  <servlet>
    <servlet-name>Bug49922Include</servlet-name>
    <servlet-class>
      org.apache.catalina.core.TestStandardContext$Bug49922IncludeServlet
    </servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Bug49922Include</servlet-name>
    <url-pattern>/bug49922/include</url-pattern>
  </servlet-mapping>
  <servlet>
    <servlet-name>Bug49922Target</servlet-name>
    <servlet-class>
      org.apache.catalina.core.TestStandardContext$Bug49922TargetServlet
    </servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Bug49922Target</servlet-name>
    <url-pattern>/bug49922/target</url-pattern>
  </servlet-mapping>
  <servlet>
    <servlet-name>Bug49922</servlet-name>
    <servlet-class>
      org.apache.catalina.core.TestStandardContext$Bug49922Servlet
    </servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>Bug49922</servlet-name>
    <url-pattern>/bug49922/servlet</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>Bug49922</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>Bug49922</servlet-name>
    <url-pattern>*.od</url-pattern>
  </servlet-mapping>

  <jsp-config>
    <jsp-property-group>
      <url-pattern>/bug49nnn/bug49726a.jsp</url-pattern>
      <url-pattern>/bug49nnn/bug49726b.jsp</url-pattern>
      <default-content-type>text/plain</default-content-type>
    </jsp-property-group>
    <jsp-property-group>
      <url-pattern>/bug5nnnn/bug55262.jsp</url-pattern>
      <include-prelude>/bug5nnnn/bug55262-prelude.jspf</include-prelude>
      <include-prelude>/bug5nnnn/bug55262-prelude.jspf</include-prelude>
      <include-coda>/bug5nnnn/bug55262-coda.jspf</include-coda>
      <include-coda>/bug5nnnn/bug55262-coda.jspf</include-coda>
      <default-content-type>text/plain</default-content-type>
    </jsp-property-group>
    <jsp-property-group>
      <url-pattern>/jsp/encoding/bug60769a.jspx</url-pattern>
      <page-encoding>UTF-8</page-encoding>
      <is-xml>true</is-xml>
    </jsp-property-group>
    <jsp-property-group>
      <url-pattern>/jsp/encoding/bug60769b.jspx</url-pattern>
      <page-encoding>ISO-8859-1</page-encoding>
      <is-xml>true</is-xml>
    </jsp-property-group>
    <jsp-property-group>
      <url-pattern>/jsp/errorOnELNotFound/web-xml-true.jsp</url-pattern>
      <error-on-el-not-found>true</error-on-el-not-found>
    </jsp-property-group>
    <jsp-property-group>
      <url-pattern>/jsp/errorOnELNotFound/web-xml-false.jsp</url-pattern>
      <error-on-el-not-found>false</error-on-el-not-found>
    </jsp-property-group>
  </jsp-config>

  <servlet>
    <servlet-name>DenyByAnnotation</servlet-name>
    <servlet-class>org.apache.catalina.core.TestStandardWrapper$DenyAllServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>DenyByAnnotation</servlet-name>
    <url-pattern>/testStandardWrapper/securityAnnotationsMetaDataPriority</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>Bug53574</servlet-name>
    <jsp-file>/WEB-INF/jsp/bug53574.jsp</jsp-file>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Bug53574</servlet-name>
    <url-pattern>/bug53574</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>JSP-x-powered-by</servlet-name>
    <jsp-file>/jsp/generator/x-powered-by.jsp</jsp-file>
    <init-param>
      <param-name>xpoweredBy</param-name>
      <param-value>true</param-value>
    </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>JSP-x-powered-by</servlet-name>
    <url-pattern>/jsp/generator/x-powered-by.jsp</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>JSP-usebean-04</servlet-name>
    <jsp-file>/jsp/generator/usebean-04.jsp</jsp-file>
    <init-param>
      <param-name>errorOnUseBeanInvalidClassAttribute</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>JSP-usebean-04</servlet-name>
    <url-pattern>/jsp/generator/usebean-04.jsp</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>JSP-usebean-07</servlet-name>
    <jsp-file>/jsp/generator/usebean-07.jsp</jsp-file>
    <init-param>
      <param-name>errorOnUseBeanInvalidClassAttribute</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>JSP-usebean-07</servlet-name>
    <url-pattern>/jsp/generator/usebean-07.jsp</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>JSP-templatetext-01</servlet-name>
    <jsp-file>/jsp/generator/templatetext-01.jsp</jsp-file>
    <init-param>
      <param-name>trimSpaces</param-name>
      <param-value>extended</param-value>
    </init-param>
    <init-param>
      <param-name>genStringAsCharArray</param-name>
      <param-value>true</param-value>
    </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>JSP-templatetext-01</servlet-name>
    <url-pattern>/jsp/generator/templatetext-01.jsp</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>JSP-templatetext-02</servlet-name>
    <jsp-file>/jsp/generator/templatetext-02.jsp</jsp-file>
    <init-param>
      <param-name>mappedfile</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>JSP-templatetext-02</servlet-name>
    <url-pattern>/jsp/generator/templatetext-02.jsp</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>JSP-jsp-id</servlet-name>
    <jsp-file>/jsp/generator/jsp-id.jsp</jsp-file>
    <init-param>
      <param-name>enablePooling</param-name>
      <param-value>false</param-value>
    </init-param>
    <init-param>
      <param-name>useInstanceManagerForTags</param-name>
      <param-value>true</param-value>
    </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>JSP-jsp-id</servlet-name>
    <url-pattern>/jsp/generator/jsp-id.jsp</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>bug48701-no-strict</servlet-name>
    <jsp-file>/bug48nnn/bug48701-VI.jsp</jsp-file>
    <init-param>
      <param-name>strictGetProperty</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>bug48701-no-strict</servlet-name>
    <url-pattern>/bug48nnn/bug48701-VI.jsp</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>bug58445b</servlet-name>
    <jsp-file>/bug5nnnn/bug58444b.jsp</jsp-file>
    <init-param>
      <param-name>poolTagsWithExtends</param-name>
      <param-value>true</param-value>
    </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>bug58445b</servlet-name>
    <url-pattern>/bug5nnnn/bug58444b.jsp</url-pattern>
  </servlet-mapping>

  <servlet>
    <servlet-name>deferred-method-02</servlet-name>
    <jsp-file>/jsp/generator/deferred-method-02.jsp</jsp-file>
    <init-param>
      <param-name>enablePooling</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>-2</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>deferred-method-02</servlet-name>
    <url-pattern>/jsp/generator/deferred-method-02.jsp</url-pattern>
  </servlet-mapping>

  <login-config>
    <auth-method>BASIC</auth-method>
  </login-config>

  <env-entry>
    <description>Resource for testing bug 53465</description>
    <env-entry-name>bug53465</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>10</env-entry-value>
    <mapped-name>Bug53465MappedName</mapped-name>
  </env-entry>

  <session-config>
    <cookie-config>
      <attribute>
        <attribute-name>aaa</attribute-name>
        <attribute-value>bbb</attribute-value>
      </attribute>
    </cookie-config>
  </session-config>
</web-app>