web.xml revision ada1678a4262b208a7b87391f520a7767d25287c
0N/A<?xml version="1.0" encoding="UTF-8"?>
0N/A<!--
0N/A
0N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0N/A
0N/A Copyright (c) 2010-2011 Oracle and/or its affiliates. All rights reserved.
0N/A
0N/A The contents of this file are subject to the terms of either the GNU
0N/A General Public License Version 2 only ("GPL") or the Common Development
0N/A and Distribution License("CDDL") (collectively, the "License"). You
0N/A may not use this file except in compliance with the License. You can
0N/A obtain a copy of the License at
0N/A https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
0N/A or packager/legal/LICENSE.txt. See the License for the specific
0N/A language governing permissions and limitations under the License.
0N/A
0N/A When distributing the software, include this License Header Notice in each
0N/A file and include the License file at packager/legal/LICENSE.txt.
0N/A
0N/A GPL Classpath Exception:
0N/A Oracle designates this particular file as subject to the "Classpath"
0N/A exception as provided by Oracle in the GPL Version 2 section of the License
0N/A file that accompanied this code.
0N/A
0N/A Modifications:
0N/A If applicable, add the following below the License Header, with the fields
0N/A enclosed by brackets [] replaced by your own identifying information:
0N/A "Portions Copyright [year] [name of copyright owner]"
0N/A
0N/A Contributor(s):
0N/A If you wish your version of this file to be governed by only the CDDL or
0N/A only the GPL Version 2, indicate your decision by adding "[Contributor]
0N/A elects to include this software in this distribution under the [CDDL or GPL
0N/A Version 2] license." If you don't indicate a single choice of license, a
0N/A recipient has the option to distribute your version of this file under
0N/A either the CDDL, the GPL Version 2 or to extend the choice of license to
0N/A its licensees as provided above. However, if you add GPL Version 2 code
0N/A and therefore, elected the GPL Version 2 license, then the option applies
0N/A only if the new code is made subject to such option by the copyright
0N/A holder.
0N/A
0N/A-->
0N/A
0N/A<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">
0N/A <context-param>
0N/A <param-name>com.sun.jsftemplating.DEBUG</param-name>
0N/A <param-value>false</param-value>
0N/A </context-param>
0N/A <context-param>
0N/A <param-name>com.sun.faces.enableMultiThreadedStartup</param-name>
0N/A <param-value>true</param-value>
0N/A </context-param>
0N/A <context-param>
0N/A <param-name>com.sun.jsftemplating.FS_DENY_PATHS</param-name>
0N/A <param-value>META-INF/:WEB-INF/:*.jsf:*.inc:*.xhtml:*.xml</param-value>
0N/A </context-param>
0N/A <context-param>
0N/A <param-name>com.sun.jsftemplating.CLASSLOADER</param-name>
0N/A <param-value>org.glassfish.admingui.common.plugin.ConsoleClassLoader</param-value>
0N/A </context-param>
0N/A <context-param>
0N/A <param-name>com.sun.jsftemplating.RESOURCE_PREFIX</param-name>
0N/A <param-value>/html</param-value>
0N/A </context-param>
0N/A <context-param>
0N/A <param-name>com.sun.faces.enableRestoreView11Compatibility</param-name>
0N/A <param-value>true</param-value>
0N/A </context-param>
0N/A <context-param>
0N/A <param-name>javax.faces.VALIDATE_EMPTY_FIELDS</param-name>
0N/A <param-value>false</param-value>
0N/A </context-param>
0N/A <context-param>
0N/A <param-name>javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR</param-name>
0N/A <param-value>true</param-value>
0N/A </context-param>
0N/A
0N/A <filter>
0N/A <filter-name>UploadFilter</filter-name>
0N/A <filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
0N/A <init-param>
0N/A <param-name>maxSize</param-name>
0N/A <param-value>-1</param-value>
0N/A </init-param>
0N/A </filter>
0N/A <filter-mapping>
0N/A <filter-name>UploadFilter</filter-name>
0N/A <servlet-name>FacesServlet</servlet-name>
0N/A </filter-mapping>
0N/A <servlet>
0N/A <servlet-name>FacesServlet</servlet-name>
0N/A <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
0N/A <load-on-startup>1</load-on-startup>
0N/A </servlet>
0N/A <servlet>
0N/A <servlet-name>ThemeServlet</servlet-name>
0N/A <servlet-class>com.sun.webui.theme.ThemeServlet</servlet-class>
0N/A <load-on-startup>2</load-on-startup>
0N/A </servlet>
0N/A <servlet>
0N/A <servlet-name>DownloadServlet</servlet-name>
0N/A <servlet-class>org.glassfish.admingui.common.servlet.DownloadServlet</servlet-class>
0N/A <init-param>
0N/A <param-name>ContentSources</param-name>
0N/A <param-value>
0N/A org.glassfish.admingui.common.servlet.LBConfigContentSource,
0N/A org.glassfish.admingui.common.servlet.ClientStubsContentSource,
0N/A org.glassfish.admingui.common.servlet.LogFilesContentSource
0N/A </param-value>
0N/A </init-param>
0N/A <init-param>
0N/A <param-name>contentSourceId</param-name>
0N/A <param-value>LBConfig</param-value>
0N/A </init-param>
0N/A </servlet>
0N/A <servlet-mapping>
0N/A <servlet-name>DownloadServlet</servlet-name>
0N/A <url-pattern>/download/*</url-pattern>
0N/A </servlet-mapping>
0N/A <servlet-mapping>
0N/A <servlet-name>FacesServlet</servlet-name>
0N/A <url-pattern>/resource/*</url-pattern>
0N/A </servlet-mapping>
0N/A <servlet-mapping>
0N/A <servlet-name>FacesServlet</servlet-name>
0N/A <url-pattern>/html/*</url-pattern>
0N/A </servlet-mapping>
0N/A <servlet-mapping>
0N/A <servlet-name>FacesServlet</servlet-name>
0N/A <url-pattern>/faces/*</url-pattern>
0N/A </servlet-mapping>
0N/A <servlet-mapping>
0N/A <servlet-name>FacesServlet</servlet-name>
0N/A <url-pattern>*.jsf</url-pattern>
0N/A </servlet-mapping>
<servlet-mapping>
<servlet-name>ThemeServlet</servlet-name>
<url-pattern>/theme/*</url-pattern>
</servlet-mapping>
<session-config>
<cookie-config>
<http-only>true</http-only>
</cookie-config>
</session-config>
<welcome-file-list>
<welcome-file>/index.jsf</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/</location>
</error-page>
<!--
<error-page>
<error-code>403</error-code>
<location>/</location>
</error-page>
-->
<security-constraint>
<web-resource-collection>
<web-resource-name>protected</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>public</web-resource-name>
<url-pattern>/theme/com/*</url-pattern>
<url-pattern>/theme/org/*</url-pattern>
<url-pattern>/resource/*</url-pattern>
<url-pattern>/theme/META-INF/*</url-pattern>
<http-method>GET</http-method>
</web-resource-collection>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>admin-realm</realm-name>
<form-login-config>
<form-login-page>/login.jsf</form-login-page>
<form-error-page>/loginError.jsf</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>admin</role-name>
</security-role>
</web-app>