alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Glassfish example source code file (default-web.xml)

This example Glassfish source code file (default-web.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Glassfish tags/keywords

cgi, gpl, if, jsp, jsp, license, should, should, ssi, ssi, the, the, this, version

The Glassfish default-web.xml source code

<?xml version="1.0" encoding="ISO-8859-1"?>
<!--

    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

    Copyright (c) 2006-2011 Oracle and/or its affiliates. All rights reserved.

    The contents of this file are subject to the terms of either the GNU
    General Public License Version 2 only ("GPL") or the Common Development
    and Distribution License("CDDL") (collectively, the "License").  You
    may not use this file except in compliance with the License.  You can
    obtain a copy of the License at
    https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
    or packager/legal/LICENSE.txt.  See the License for the specific
    language governing permissions and limitations under the License.

    When distributing the software, include this License Header Notice in each
    file and include the License file at packager/legal/LICENSE.txt.

    GPL Classpath Exception:
    Oracle designates this particular file as subject to the "Classpath"
    exception as provided by Oracle in the GPL Version 2 section of the License
    file that accompanied this code.

    Modifications:
    If applicable, add the following below the License Header, with the fields
    enclosed by brackets [] replaced by your own identifying information:
    "Portions Copyright [year] [name of copyright owner]"

    Contributor(s):
    If you wish your version of this file to be governed by only the CDDL or
    only the GPL Version 2, indicate your decision by adding "[Contributor]
    elects to include this software in this distribution under the [CDDL or GPL
    Version 2] license."  If you don't indicate a single choice of license, a
    recipient has the option to distribute your version of this file under
    either the CDDL, the GPL Version 2 or to extend the choice of license to
    its licensees as provided above.  However, if you add GPL Version 2 code
    and therefore, elected the GPL Version 2 license, then the option applies
    only if the new code is made subject to such option by the copyright
    holder.

-->

<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

  <!-- ======================== Introduction ============================== -->


  <!-- The default deployment descriptor.                                   -->
  <!--                                                                      -->
  <!-- The default deployment descriptor specifies default deployment       -->
  <!-- descriptor values inherited by any web applications deployed to      -->
  <!-- the application server.                                              -->


  <!-- ============ Built In Context Init Parameter Definitions =========== -->


  <!-- Init parameter to force the XML validation of JSF configuration  --> 
  <!-- ressources.                                                      -->

  <context-param>
      <param-name>com.sun.faces.validateXml
      <param-value>true
  </context-param>

  <!-- Init parameter will cause the JSF implementation to bypass      -->
  <!-- processing the web.xml to determine if we should continue       --> 
  <!-- bootstrapping JSF for the web application.                      -->

  <context-param>
      <param-name>com.sun.faces.forceLoadConfiguration
      <param-value>true
  </context-param> 
      

  <!-- ================== Built In Servlet Definitions ==================== -->


  <!-- The DefaultDervlet, which is responsible for serving static          -->
  <!-- resources.                                                           -->
  <!-- This servlet processes any requests that are not mapped to other     -->
  <!-- servlets with servlet mappings (defined either here or in your own   -->
  <!-- web.xml file.  This servlet supports the following initialization    -->
  <!-- parameters (default values have been placed in square brackets):     -->
  <!--                                                                      -->
  <!--   debug               Debugging detail level for messages logged     -->
  <!--                       by this servlet.  [0]                          -->
  <!--                                                                      -->
  <!--   fileEncoding        Encoding to be used to read static resources   -->
  <!--                       [platform default]                             -->
  <!--                                                                      -->
  <!--   input               Input buffer size (in bytes) when reading      -->
  <!--                       resources to be served.  [2048]                -->
  <!--                                                                      -->
  <!--   listings            Should directory listings be produced if there -->
  <!--                       is no welcome file in this directory?  [false] -->
  <!--                       WARNING: Listings for directories with many    -->
  <!--                       entries can be slow and may consume            -->
  <!--                       significant proportions of server resources.   -->
  <!--                                                                      -->
  <!--   sortedBy            Specifies the criteria that will be used for   -->
  <!--                       sorting directory entries. Legal values are    -->
  <!--                       NAME, SIZE, and LAST_MODIFIED.  [NAME]         -->
  <!--                                                                      -->
  <!--   output              Output buffer size (in bytes) when writing     -->
  <!--                       resources to be served.  [2048]                -->
  <!--                                                                      -->
  <!--   readonly            Is this context "read only", so HTTP           -->
  <!--                       commands like PUT and DELETE are               -->
  <!--                       rejected?  [true]                              -->
  <!--                                                                      -->
  <!--   readmeFile          File name to display with the directory        -->
  <!--                       contents. [null]                               -->
  <!--                                                                      -->
  <!--   sendfileSize        If the connector used supports sendfile, this  -->
  <!--                       represents the minimal file size in KB for     -->
  <!--                       which sendfile will be used. Use a negative    -->
  <!--                       value to always disable sendfile.  [48]        -->
  <!--                                                                      -->
  <!--   useAcceptRanges     Should the Accept-Ranges header be included    -->
  <!--                       in responses where appropriate? [true]         -->
  <!--                                                                      -->
  <!--  For directory listing customization. Checks localXsltFile, then     -->
  <!--  globalXsltFile, then defaults to original behavior.                 -->
  <!--                                                                      -->
  <!--   localXsltFile       Make directory listings an XML doc and         -->
  <!--                       pass the result to this style sheet residing   -->
  <!--                       in that directory. This overrides              -->
  <!--                        globalXsltFile[null]                          -->
  <!--                                                                      -->
  <!--   globalXsltFile      Site wide configuration version of             -->
  <!--                       localXsltFile This argument is expected        -->
  <!--                       to be a physical file. [null]                  -->

  <servlet>
    <servlet-name>default
    <servlet-class>org.apache.catalina.servlets.DefaultServlet
    <init-param>
      <param-name>debug
      <param-value>0
    </init-param>
    <init-param>
      <param-name>listings
      <param-value>false
    </init-param>
    <load-on-startup>1
  </servlet>


  <!-- The JSP page compiler and execution servlet, which is the mechanism  -->
  <!-- used by the application server to support JSP pages.  Traditionally, -->
  <!-- this servlet is mapped to the URL pattern "*.jsp".                   -->
  <!-- This servlet supports the following initialization parameters        -->
  <!-- (default values have been placed in square brackets):                -->
  <!--                                                                      -->
  <!--   checkInterval       If development is false and checkInterval is   -->
  <!--                       greater than zero, background compilations are -->
  <!--                       enabled. checkInterval is the time in seconds  -->
  <!--                       between checks to see if a JSP page needs to   -->
  <!--                       be recompiled. [0]                             -->
  <!--                                                                      -->
  <!--   modificationTestInterval                                           -->
  <!--                       Causes a JSP (and its dependent files) to not  -->
  <!--                       be checked for modification during the         -->
  <!--                       specified time interval (in seconds) from the  -->
  <!--                       last time the JSP was checked for              -->
  <!--                       modification. A value of 0 will cause the JSP  -->
  <!--                       to be checked on every access.                 -->
  <!--                       Used in development mode only. [0]             -->
  <!--                                                                      -->
  <!--   compiler            Which compiler Ant should use to compile JSP   -->
  <!--                       pages.  See the Ant documentation for more     -->
  <!--                       information. [javac]                           -->
  <!--                                                                      -->
  <!--   classdebuginfo      Should the class file be compiled with         -->
  <!--                       debugging information?  [true]                 -->
  <!--                                                                      -->
  <!--   classpath           What class path should I use while compiling   -->
  <!--                       generated servlets?  [Created dynamically      -->
  <!--                       based on the current web application]          -->
  <!--                                                                      -->
  <!--   development         Is Jasper used in development mode? If true,   -->
  <!--                       the frequency at which JSPs are checked for    -->
  <!--                       modification may be specified via the          -->
  <!--                       modificationTestInterval parameter. [true]     -->
  <!--                                                                      -->
  <!--   enablePooling       Determines whether tag handler pooling is      -->
  <!--                       enabled  [true]                                -->
  <!--                                                                      -->
  <!--   fork                Tell Ant to fork compiles of JSP pages so that -->
  <!--                       JSP pages are compiled in their own JVM        -->
  <!--                       (separate from the JVM that the application    -->
  <!--                       server is running in). [true]                  -->
  <!--                                                                      -->
  <!--   ieClassId           The class-id value to be sent to Internet      -->
  <!--                       Explorer when using 
  <!--                       [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93]   -->
  <!--                                                                      -->
  <!--   javaEncoding        Java file encoding to use for generating java  -->
  <!--                       source files. [UTF8]                           -->
  <!--                                                                      -->
  <!--   keepgenerated       Should we keep the generated Java source code  -->
  <!--                       for each page instead of deleting it?          -->
  <!--                       [true with JDK 5 and before, or for jspc]      -->
  <!--                       [false otherwise]                              -->
  <!--                                                                      -->
  <!--   saveBytecode        Should the generated byte code be saved to     -->
  <!--                       .class files?  This option is meaningful only  -->
  <!--                       when Java compiler API, JSR199 (available with -->
  <!--                       JDK 6) is used for javac compilations.         -->
  <!--                       [false] [true for jspc]                        -->
  <!--                                                                      -->
  <!--   mappedfile          Should we generate static content with one     -->
  <!--                       print statement per input line, to ease        -->
  <!--                       debugging?  [true]                             -->
  <!--                                                                      -->
  <!--   trimSpaces          Should white spaces in template text between   -->
  <!--                       actions or directives be trimmed?  [false]     -->
  <!--                                                                      -->
  <!--   suppressSmap        Should the generation of SMAP info for JSR45   -->
  <!--                       debugging be suppressed?  [false]              -->
  <!--                                                                      -->
  <!--   dumpSmap            Should the SMAP info for JSR45 debugging be    -->
  <!--                       dumped to a file? [false]                      -->
  <!--                       False if suppressSmap is true                  -->
  <!--                                                                      -->
  <!--   genStrAsCharArray   Should text strings be generated as char       -->
  <!--                       arrays, to improve performance in some cases?  -->
  <!--                       [false]                                        -->
  <!--                                                                      -->
  <!--   genStrAsByteArray   Should text strings be generated as bytes      -->
  <!--                       (encoded with the page encoding), if the page  -->
  <!--                       is not buffered?                               -->
  <!--                       [true]                                         -->
  <!--                                                                      -->
  <!--   defaultBufferNone   Should the default for the buffer attribute of -->
  <!--                       the page directive be "none"?  [false]         -->
  <!--                                                                      -->
  <!--   errorOnUseBeanInvalidClassAttribute                                -->
  <!--                       Should Jasper issue an error when the value of -->
  <!--                       the class attribute in an useBean action is    -->
  <!--                       not a valid bean class?  [false]               -->
  <!--                                                                      -->
  <!--   scratchdir          What scratch directory should we use when      -->
  <!--                       compiling JSP pages?  [default work directory  -->
  <!--                       for the current web application]               -->
  <!--                                                                      -->
  <!--   xpoweredBy          Determines whether X-Powered-By response       -->
  <!--                       header is added by generated servlet  [true]   -->
  <!--                                                                      -->
  <!--   usePrecompiled      If true, it is assumed that JSPs have been     -->
  <!--                       precompiled, and their corresponding servlet   -->
  <!--                       classes have been bundled in the web           -->
  <!--                       application's WEB-INF/lib or WEB-INF/classes,  -->
  <!--                       so that when a JSP is accessed, it is not      -->
  <!--                       compiled, and instead, its precompiled servlet -->
  <!--                       class is used. [false]                         -->
  <!--                                                                      -->
  <!--   use-precompiled     Same as usePrecompiled. If both are specified, -->
  <!--                       usePrecompiled takes precedence                -->
  <!--                                                                      -->
  <!--   initialCapacity     Initial capacity of HashMap mapping JSPs to    -->
  <!--                       their corresponding servlets [32]              -->
  <!--                                                                      -->
  <!--   initial-capacity    Same as initialCapacity. If both are specified,-->
  <!--                       initialCapacity takes precedence               -->
  <!--                                                                      -->
  <!--   httpMethods         Comma separated list of HTTP methods supported -->
  <!--                       by the JspServlet. Wildcard ("*") denotes      -->
  <!--                       "ALL METHODS". [ALL METHODS]                   -->
  <!--                                                                      -->
  <!--   reload-interval     Specifies the frequency (in seconds) at which  -->
  <!--                       JSP files are checked for modifications.       -->
  <!--                       Setting this value to 0 checks JSPs for        -->
  <!--                       modifications on every request. Setting this   -->
  <!--                       value to -1 disables checks for JSP            -->
  <!--                       modifications and JSP recompilation.           -->
  <!--                                                                      -->
  <!--   compilerSourceVM    Provides source compatibility with the         -->
  <!--                       specified JDK release (same as -source         -->
  <!--                       javac command-line switch)                     -->
  <!--                                                                      -->
  <!--   compilerTargetVM    Generates class files for specified VM version -->
  <!--                       (same as -target javac command-line switch)    -->
  <!--                                                                      -->
  <!-- If you wish to use Jikes to compile JSP pages:                       -->
  <!-- * Set the "classpath" initialization parameter appropriately         -->
  <!--   for this web application.                                          -->
  <!-- * Set the "jspCompilerPlugin" initialization parameter to            -->
  <!--   "org.apache.jasper.compiler.JikesJavaCompiler".                    -->

  <servlet>
    <servlet-name>jsp
    <servlet-class>org.apache.jasper.servlet.JspServlet
    <init-param>
      <param-name>xpoweredBy
      <param-value>true
    </init-param>
    <init-param>
      <param-name>httpMethods
      <param-value>GET,POST,HEAD
    </init-param>
    <load-on-startup>3
  </servlet>
  

  <!-- NOTE: An SSI Filter is also available as an alternative SSI          -->
  <!-- implementation. Use either the Servlet or the Filter but NOT both.   -->
  <!--                                                                      -->
  <!-- Server Side Includes processing servlet, which processes SSI         -->
  <!-- directives in HTML pages consistent with similar support in web      -->
  <!-- servers like Apache.  Traditionally, this servlet is mapped to the   -->
  <!-- URL pattern "*.shtml".  This servlet supports the following          -->
  <!-- initialization parameters (default values are in square brackets):   -->
  <!--                                                                      -->
  <!--   buffered            Should output from this servlet be buffered?   -->
  <!--                       (0=false, 1=true)  [0]                         -->
  <!--                                                                      -->
  <!--   debug               Debugging detail level for messages logged     -->
  <!--                       by this servlet.  [0]                          -->
  <!--                                                                      -->
  <!--   expires             The number of seconds before a page with SSI   -->
  <!--                       directives will expire.  [No default]          -->
  <!--                                                                      -->
  <!--   isVirtualWebappRelative                                            -->
  <!--                       Should "virtual" paths be interpreted as       -->
  <!--                       relative to the context root, instead of       -->
  <!--                       the server root?  (0=false, 1=true) [0]        -->
  <!--                                                                      -->
  <!--   inputEncoding       The encoding to assume for SSI resources if    -->
  <!--                       one is not available from the resource.        -->
  <!--                       [Platform default]                             -->
  <!--                                                                      -->
  <!--   outputEncoding      The encoding to use for the page that results  -->
  <!--                       from the SSI processing. [UTF-8]               -->

<!--
  <servlet>
    <servlet-name>ssi
    <servlet-class>org.apache.catalina.ssi.SSIServlet
    <init-param>
      <param-name>buffered
      <param-value>1
    </init-param>
    <init-param>
      <param-name>debug
      <param-value>0
    </init-param>
    <init-param>
      <param-name>expires
      <param-value>666
    </init-param>
    <init-param>
      <param-name>isVirtualWebappRelative
      <param-value>0
    </init-param>
    <load-on-startup>4
  </servlet>
-->


  <!-- Common Gateway Includes (CGI) processing servlet, which supports     -->
  <!-- execution of external applications that conform to the CGI spec      -->
  <!-- requirements.  Typically, this servlet is mapped to the URL pattern  -->
  <!-- "/cgi-bin/*", which means that any CGI applications that are         -->
  <!-- executed must be present within the web application.  This servlet   -->
  <!-- supports the following initialization parameters (default values     -->
  <!-- are in square brackets):                                             -->
  <!--                                                                      -->
  <!--   cgiPathPrefix        The CGI search path will start at             -->
  <!--                        webAppRootDir + File.separator + this prefix. -->
  <!--                        [WEB-INF/cgi]                                 -->
  <!--                                                                      -->
  <!--   debug                Debugging detail level for messages logged    -->
  <!--                        by this servlet.  [0]                         -->
  <!--                                                                      -->
  <!--   executable           Name of the exectuable used to run the        -->
  <!--                        script. [perl]                                -->
  <!--                                                                      -->
  <!--   parameterEncoding    Name of parameter encoding to be used with    -->
  <!--                        CGI servlet.                                  -->
  <!--                        [System.getProperty("file.encoding","UTF-8")] -->
  <!--                                                                      -->
  <!--   passShellEnvironment Should the shell environment variables (if    -->
  <!--                        any) be passed to the CGI script? [false]     -->

<!--
  <servlet>
    <servlet-name>cgi
    <servlet-class>org.apache.catalina.servlets.CGIServlet
    <init-param>
      <param-name>debug
      <param-value>0
    </init-param>
    <init-param>
      <param-name>cgiPathPrefix
      <param-value>WEB-INF/cgi
    </init-param>
    <load-on-startup>5
  </servlet>
-->


  <!-- ================ Built In Servlet Mappings ========================= -->

  <!-- The mapping for the default servlet -->
  <servlet-mapping>
    <servlet-name>default
    <url-pattern>/
  </servlet-mapping>

  <!-- The mapping for the JSP servlet -->
  <servlet-mapping>
    <servlet-name>jsp
    <url-pattern>*.jsp
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>jsp
    <url-pattern>*.jspx
  </servlet-mapping>

  <!-- The mapping for the SSI servlet -->
<!--
  <servlet-mapping>
    <servlet-name>ssi
    <url-pattern>*.shtml
  </servlet-mapping>
-->

  <!-- The mapping for the CGI Gateway servlet -->
<!--
  <servlet-mapping>
    <servlet-name>cgi
    <url-pattern>/cgi-bin/*
  </servlet-mapping>
-->


  <!-- ================== Built In Filter Definitions ===================== -->

  <!-- NOTE: An SSI Servlet is also available as an alternative SSI         -->
  <!-- implementation. Use either the Servlet or the Filter but NOT both.   -->
  <!--                                                                      -->
  <!-- Server Side Includes processing filter, which processes SSI          -->
  <!-- directives in HTML pages consistent with similar support in web      -->
  <!-- servers like Apache.  Traditionally, this filter is mapped to the    -->
  <!-- URL pattern "*.shtml", though it can be mapped to "*" as it will     -->
  <!-- selectively enable/disable SSI processing based on mime types. For   -->
  <!-- this to work you will need to uncomment the .shtml mime type         -->
  <!-- definition towards the bottom of this file.                          -->
  <!-- The contentType init param allows you to apply SSI processing to JSP -->
  <!-- pages, javascript, or any other content you wish.  This filter       -->
  <!-- supports the following initialization parameters (default values are -->
  <!-- in square brackets):                                                 -->
  <!--                                                                      -->
  <!--   contentType         A regex pattern that must be matched before    -->
  <!--                       SSI processing is applied.                     -->
  <!--                       [text/x-server-parsed-html(;.*)?]              -->
  <!--                                                                      -->
  <!--   debug               Debugging detail level for messages logged     -->
  <!--                       by this servlet.  [0]                          -->
  <!--                                                                      -->
  <!--   expires             The number of seconds before a page with SSI   -->
  <!--                       directives will expire.  [No default]          -->
  <!--                                                                      -->
  <!--   isVirtualWebappRelative                                            -->
  <!--                       Should "virtual" paths be interpreted as       -->
  <!--                       relative to the context root, instead of       -->
  <!--                       the server root?  (0=false, 1=true) [0]        -->

<!--
  <filter>
    <filter-name>ssi
    <filter-class>
      org.apache.catalina.ssi.SSIFilter
    </filter-class>
    <init-param>
      <param-name>contentType
      <param-value>text/x-server-parsed-html(;.*)?
    </init-param>
    <init-param>
      <param-name>debug
      <param-value>0
    </init-param>
    <init-param>
      <param-name>expires
      <param-value>666
    </init-param>
    <init-param>
      <param-name>isVirtualWebappRelative
      <param-value>0
    </init-param>
  </filter>
-->


  <!-- ==================== Built In Filter Mappings ====================== -->

  <!-- The mapping for the SSI Filter -->
<!--
  <filter-mapping>
    <filter-name>ssi
    <url-pattern>*.shtml
  </filter-mapping>
-->


  <!-- ==================== Default Session Configuration ================= -->

  <!-- You can set the default session timeout (in minutes) for all newly   -->
  <!-- created sessions by modifying the value below.                       -->

  <session-config>
    <session-timeout>30
  </session-config>


  <!-- ===================== Default MIME Type Mappings =================== -->

  <!-- When serving static resources, the application server will           -->
  <!-- automatically generate a "Content-Type" response header from the     -->
  <!-- filename extension of the resource, based on these mappings.         -->
  <!-- Additional mappings may be specified here (to be shared by all       -->
  <!-- web applications) or in a web application's web.xml deployment       -->
  <!-- descriptor (for that web application's individual use).              -->

  <mime-mapping>
    <extension>abs
    <mime-type>audio/x-mpeg
  </mime-mapping>
  <mime-mapping>
    <extension>ai
    <mime-type>application/postscript
  </mime-mapping>
  <mime-mapping>
    <extension>aif
    <mime-type>audio/x-aiff
  </mime-mapping>
  <mime-mapping>
    <extension>aifc
    <mime-type>audio/x-aiff
  </mime-mapping>
  <mime-mapping>
    <extension>aiff
    <mime-type>audio/x-aiff
  </mime-mapping>
  <mime-mapping>
    <extension>aim
    <mime-type>application/x-aim
  </mime-mapping>
  <mime-mapping>
    <extension>art
    <mime-type>image/x-jg
  </mime-mapping>
  <mime-mapping>
    <extension>asf
    <mime-type>video/x-ms-asf
  </mime-mapping>
  <mime-mapping>
    <extension>asx
    <mime-type>video/x-ms-asf
  </mime-mapping>
  <mime-mapping>
    <extension>au
    <mime-type>audio/basic
  </mime-mapping>
  <mime-mapping>
    <extension>avi
    <mime-type>video/x-msvideo
  </mime-mapping>
  <mime-mapping>
    <extension>avx
    <mime-type>video/x-rad-screenplay
  </mime-mapping>
  <mime-mapping>
    <extension>bcpio
    <mime-type>application/x-bcpio
  </mime-mapping>
  <mime-mapping>
    <extension>bin
    <mime-type>application/octet-stream
  </mime-mapping>
  <mime-mapping>
    <extension>bmp
    <mime-type>image/bmp
  </mime-mapping>
  <mime-mapping>
    <extension>body
    <mime-type>text/html
  </mime-mapping>
  <mime-mapping>
    <extension>cdf
    <mime-type>application/x-cdf
  </mime-mapping>
  <mime-mapping>
    <extension>cer
    <mime-type>application/x-x509-ca-cert
  </mime-mapping>
  <mime-mapping>
    <extension>class
    <mime-type>application/java
  </mime-mapping>
  <mime-mapping>
    <extension>cpio
    <mime-type>application/x-cpio
  </mime-mapping>
  <mime-mapping>
    <extension>csh
    <mime-type>application/x-csh
  </mime-mapping>
   <mime-mapping>
    <extension>css
    <mime-type>text/css
  </mime-mapping>
  <mime-mapping>
    <extension>dib
    <mime-type>image/bmp
  </mime-mapping>
  <mime-mapping>
    <extension>doc
    <mime-type>application/msword
  </mime-mapping>
  <mime-mapping>
    <extension>dtd
    <mime-type>application/xml-dtd
  </mime-mapping>
  <mime-mapping>
    <extension>dv
    <mime-type>video/x-dv
  </mime-mapping>
  <mime-mapping>
    <extension>dvi
    <mime-type>application/x-dvi
  </mime-mapping>
  <mime-mapping>
    <extension>eps
    <mime-type>application/postscript
  </mime-mapping>
  <mime-mapping>
    <extension>etx
    <mime-type>text/x-setext
  </mime-mapping>
  <mime-mapping>
    <extension>exe
    <mime-type>application/octet-stream
  </mime-mapping>
  <mime-mapping>
    <extension>gif
    <mime-type>image/gif
  </mime-mapping>
  <mime-mapping>
    <extension>gk
    <mime-type>application/octet-stream
  </mime-mapping>
  <mime-mapping>
    <extension>gtar
    <mime-type>application/x-gtar
  </mime-mapping>
  <mime-mapping>
    <extension>gz
    <mime-type>application/x-gzip
  </mime-mapping>
  <mime-mapping>
    <extension>hdf
    <mime-type>application/x-hdf
  </mime-mapping>
  <mime-mapping>
    <extension>hqx
    <mime-type>application/mac-binhex40
  </mime-mapping>
  <mime-mapping>
    <extension>htc
    <mime-type>text/x-component
  </mime-mapping>
  <mime-mapping>
    <extension>htm
    <mime-type>text/html
  </mime-mapping>
  <mime-mapping>
    <extension>html
    <mime-type>text/html
  </mime-mapping>
  <mime-mapping>
    <extension>hqx
    <mime-type>application/mac-binhex40
  </mime-mapping>
  <mime-mapping>
    <extension>ico
    <mime-type>image/x-icon
  </mime-mapping>
  <mime-mapping>
    <extension>ief
    <mime-type>image/ief
  </mime-mapping>
  <mime-mapping>
    <extension>jad
    <mime-type>text/vnd.sun.j2me.app-descriptor
  </mime-mapping>
  <mime-mapping>
    <extension>jar
    <mime-type>application/java-archive
  </mime-mapping>
  <mime-mapping>
    <extension>java
    <mime-type>text/plain
  </mime-mapping>
  <mime-mapping>
    <extension>jnlp
    <mime-type>application/x-java-jnlp-file
  </mime-mapping>
  <mime-mapping>
    <extension>jpe
    <mime-type>image/jpeg
  </mime-mapping>
  <mime-mapping>
    <extension>jpeg
    <mime-type>image/jpeg
  </mime-mapping>
  <mime-mapping>
    <extension>jpg
    <mime-type>image/jpeg
  </mime-mapping>
  <mime-mapping>
    <extension>js
    <mime-type>text/javascript
  </mime-mapping>
  <mime-mapping>
    <extension>kar
    <mime-type>audio/x-midi
  </mime-mapping>
  <mime-mapping>
    <extension>latex
    <mime-type>application/x-latex
  </mime-mapping>
  <mime-mapping>
    <extension>m3u
    <mime-type>audio/x-mpegurl
  </mime-mapping>
  <mime-mapping>
    <extension>mac
    <mime-type>image/x-macpaint
  </mime-mapping>
  <mime-mapping>
    <extension>man
    <mime-type>application/x-troff-man
  </mime-mapping>
  <mime-mapping>
    <extension>mathml
    <mime-type>application/mathml+xml 
  </mime-mapping>
  <mime-mapping>
    <extension>me
    <mime-type>application/x-troff-me
  </mime-mapping>
  <mime-mapping>
    <extension>mid
    <mime-type>audio/x-midi
  </mime-mapping>
  <mime-mapping>
    <extension>midi
    <mime-type>audio/x-midi
  </mime-mapping>
  <mime-mapping>
    <extension>mif
    <mime-type>application/x-mif
  </mime-mapping>
  <mime-mapping>
    <extension>mov
    <mime-type>video/quicktime
  </mime-mapping>
  <mime-mapping>
    <extension>movie
    <mime-type>video/x-sgi-movie
  </mime-mapping>
  <mime-mapping>
    <extension>mp1
    <mime-type>audio/x-mpeg
  </mime-mapping>
  <mime-mapping>
    <extension>mp2
    <mime-type>audio/x-mpeg
  </mime-mapping>
  <mime-mapping>
    <extension>mp3
    <mime-type>audio/x-mpeg
  </mime-mapping>
  <mime-mapping>
    <extension>mpa
    <mime-type>audio/x-mpeg
  </mime-mapping>
  <mime-mapping>
    <extension>mpe
    <mime-type>video/mpeg
  </mime-mapping>
  <mime-mapping>
    <extension>mpeg
    <mime-type>video/mpeg
  </mime-mapping>
  <mime-mapping>
    <extension>mpega
    <mime-type>audio/x-mpeg
  </mime-mapping>
  <mime-mapping>
    <extension>mpg
    <mime-type>video/mpeg
  </mime-mapping>
  <mime-mapping>
    <extension>mpv2
    <mime-type>video/mpeg2
  </mime-mapping>
  <mime-mapping>
    <extension>ms
    <mime-type>application/x-wais-source
  </mime-mapping>
  <mime-mapping>
    <extension>nc
    <mime-type>application/x-netcdf
  </mime-mapping>
  <mime-mapping>
    <extension>oda
    <mime-type>application/oda
  </mime-mapping>
  <mime-mapping>
    <extension>ogg
    <mime-type>application/ogg
  </mime-mapping>
  <mime-mapping>
    <extension>pbm
    <mime-type>image/x-portable-bitmap
  </mime-mapping>
  <mime-mapping>
    <extension>pct
    <mime-type>image/pict
  </mime-mapping>
  <mime-mapping>
    <extension>pdf
    <mime-type>application/pdf
  </mime-mapping>
  <mime-mapping>
    <extension>pgm
    <mime-type>image/x-portable-graymap
  </mime-mapping>
  <mime-mapping>
    <extension>pic
    <mime-type>image/pict
  </mime-mapping>
  <mime-mapping>
    <extension>pict
    <mime-type>image/pict
  </mime-mapping>
  <mime-mapping>
    <extension>pls
    <mime-type>audio/x-scpls
  </mime-mapping>
  <mime-mapping>
    <extension>png
    <mime-type>image/png
  </mime-mapping>
  <mime-mapping>
    <extension>pnm
    <mime-type>image/x-portable-anymap
  </mime-mapping>
  <mime-mapping>
    <extension>pnt
    <mime-type>image/x-macpaint
  </mime-mapping>
  <mime-mapping>
    <extension>ppm
    <mime-type>image/x-portable-pixmap
  </mime-mapping>
  <mime-mapping>
    <extension>ppt
    <mime-type>application/powerpoint
  </mime-mapping>
  <mime-mapping>
    <extension>ps
    <mime-type>application/postscript
  </mime-mapping>
  <mime-mapping>
    <extension>psd
    <mime-type>image/x-photoshop
  </mime-mapping>
  <mime-mapping>
    <extension>qt
    <mime-type>video/quicktime
  </mime-mapping>
  <mime-mapping>
    <extension>qti
    <mime-type>image/x-quicktime
  </mime-mapping>
  <mime-mapping>
    <extension>qtif
    <mime-type>image/x-quicktime
  </mime-mapping>
  <mime-mapping>
    <extension>ras
    <mime-type>image/x-cmu-raster
  </mime-mapping>
  <mime-mapping>
    <extension>rdf
    <mime-type>application/rdf+xml
  </mime-mapping>
  <mime-mapping>
    <extension>rgb
    <mime-type>image/x-rgb
  </mime-mapping>
  <mime-mapping>
    <extension>rm
    <mime-type>application/vnd.rn-realmedia
  </mime-mapping>
  <mime-mapping>
    <extension>roff
    <mime-type>application/x-troff
  </mime-mapping>
  <mime-mapping>
    <extension>rtf
    <mime-type>application/rtf
  </mime-mapping>
  <mime-mapping>
    <extension>rtx
    <mime-type>text/richtext
  </mime-mapping>
  <mime-mapping>
    <extension>sh
    <mime-type>application/x-sh
  </mime-mapping>
  <mime-mapping>
    <extension>shar
    <mime-type>application/x-shar
  </mime-mapping>
<!--
  <mime-mapping>
    <extension>shtml
    <mime-type>text/x-server-parsed-html
  </mime-mapping>
-->
  <mime-mapping>
    <extension>sit
    <mime-type>application/x-stuffit
  </mime-mapping>
  <mime-mapping>
    <extension>smf
    <mime-type>audio/x-midi
  </mime-mapping>
  <mime-mapping>
    <extension>snd
    <mime-type>audio/basic
  </mime-mapping>
  <mime-mapping>
    <extension>src
    <mime-type>application/x-wais-source
  </mime-mapping>
  <mime-mapping>
    <extension>sv4cpio
    <mime-type>application/x-sv4cpio
  </mime-mapping>
  <mime-mapping>
    <extension>sv4crc
    <mime-type>application/x-sv4crc
  </mime-mapping>
  <mime-mapping>
    <extension>svg
    <mime-type>image/svg+xml
  </mime-mapping>
  <mime-mapping>
    <extension>svgz
    <mime-type>image/svg+xml
  </mime-mapping>
  <mime-mapping>
    <extension>swf
    <mime-type>application/x-shockwave-flash
  </mime-mapping>
  <mime-mapping>
    <extension>t
    <mime-type>application/x-troff
  </mime-mapping>
  <mime-mapping>
    <extension>tar
    <mime-type>application/x-tar
  </mime-mapping>
  <mime-mapping>
    <extension>tcl
    <mime-type>application/x-tcl
  </mime-mapping>
  <mime-mapping>
    <extension>tex
    <mime-type>application/x-tex
  </mime-mapping>
  <mime-mapping>
    <extension>texi
    <mime-type>application/x-texinfo
  </mime-mapping>
  <mime-mapping>
    <extension>texinfo
    <mime-type>application/x-texinfo
  </mime-mapping>
  <mime-mapping>
    <extension>tif
    <mime-type>image/tiff
  </mime-mapping>
  <mime-mapping>
    <extension>tiff
    <mime-type>image/tiff
  </mime-mapping>
  <mime-mapping>
    <extension>tr
    <mime-type>application/x-troff
  </mime-mapping>
  <mime-mapping>
    <extension>tsv
    <mime-type>text/tab-separated-values
  </mime-mapping>
  <mime-mapping>
    <extension>txt
    <mime-type>text/plain
  </mime-mapping>
  <mime-mapping>
    <extension>ulw
    <mime-type>audio/basic
  </mime-mapping>
  <mime-mapping>
    <extension>ustar
    <mime-type>application/x-ustar
  </mime-mapping>
  <mime-mapping>
    <extension>xbm
    <mime-type>image/x-xbitmap
  </mime-mapping>
  <mime-mapping>
    <extension>xml
    <mime-type>application/xml
  </mime-mapping>
  <mime-mapping>
    <extension>xpm
    <mime-type>image/x-xpixmap
  </mime-mapping>
  <mime-mapping>
    <extension>xsl
    <mime-type>application/xml
  </mime-mapping>
  <mime-mapping>
    <extension>xslt
    <mime-type>application/xslt+xml
  </mime-mapping>
  <mime-mapping>
    <extension>xwd
    <mime-type>image/x-xwindowdump
  </mime-mapping>
  <mime-mapping>
    <extension>vsd
    <mime-type>application/x-visio
  </mime-mapping>
  <mime-mapping>
    <extension>vxml
    <mime-type>application/voicexml+xml
  </mime-mapping>
  <mime-mapping>
    <extension>wav
    <mime-type>audio/x-wav
  </mime-mapping>
  <mime-mapping> 
    <extension>wbmp
    <mime-type>image/vnd.wap.wbmp
  </mime-mapping>
  <mime-mapping> 
    <extension>wml
    <mime-type>text/vnd.wap.wml
  </mime-mapping>
  <mime-mapping> 
    <extension>wmlc
    <mime-type>application/vnd.wap.wmlc
  </mime-mapping>
  <mime-mapping> 
    <extension>wmls
    <mime-type>text/vnd.wap.wmls
  </mime-mapping>
  <mime-mapping> 
    <extension>wmlscriptc
    <mime-type>application/vnd.wap.wmlscriptc
  </mime-mapping>
  <mime-mapping>
    <extension>wrl
    <mime-type>x-world/x-vrml
  </mime-mapping>
  <mime-mapping>
    <extension>xht
    <mime-type>application/xhtml+xml
  </mime-mapping>
  <mime-mapping>
    <extension>xhtml
    <mime-type>application/xhtml+xml
  </mime-mapping>
  <mime-mapping>
    <extension>xls
    <mime-type>application/vnd.ms-excel
  </mime-mapping>
  <mime-mapping>
    <extension>xul
    <mime-type>application/vnd.mozilla.xul+xml
  </mime-mapping>
  <mime-mapping>
    <extension>Z
    <mime-type>application/x-compress
  </mime-mapping>
  <mime-mapping>
    <extension>z
    <mime-type>application/x-compress
  </mime-mapping>
  <mime-mapping>
    <extension>zip
    <mime-type>application/zip
  </mime-mapping>
  <mime-mapping>
    <extension>odp
    <mime-type>application/x-vnd.oasis.opendocument.presentation
  </mime-mapping>
  <mime-mapping>
    <extension>odt
    <mime-type>application/x-vnd.oasis.opendocument.text
  </mime-mapping>
  <mime-mapping>
    <extension>ods
    <mime-type>application/x-vnd.oasis.opendocument.spreadsheet
  </mime-mapping>
  <mime-mapping>
    <extension>odg
    <mime-type>application/x-vnd.oasis.opendocument.graphics
  </mime-mapping>


  <!-- ==================== Default Welcome File List ===================== -->

  <!-- When a request URI refers to a directory, the default servlet looks  -->
  <!-- for a "welcome file" within that directory and, if present,          -->
  <!-- to the corresponding resource URI for display.  If no welcome file   -->
  <!-- is present, the default servlet either serves a directory listing,   -->
  <!-- or returns a 404 status, depending on how it is configured.          -->
  <!--                                                                      -->
  <!-- If you define welcome files in your own application's web.xml        -->
  <!-- deployment descriptor, that list *replaces* the list configured      -->
  <!-- here, so be sure that you include any of the default values that     -->
  <!-- you wish to include.                                                 -->


  <welcome-file-list>
    <welcome-file>index.html
    <welcome-file>index.htm
    <welcome-file>index.jsp
  </welcome-file-list>

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

</web-app>

Other Glassfish examples (source code examples)

Here is a short list of links related to this Glassfish default-web.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.