forked from Coded/SIPRP
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							176 lines
						
					
					
						
							5.5 KiB
						
					
					
				
			
		
		
	
	
							176 lines
						
					
					
						
							5.5 KiB
						
					
					
				| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
 | |
| 
 | |
| 	<!-- richfaces -->
 | |
| 	<filter>
 | |
| 	   <display-name>RichFaces Filter</display-name>
 | |
| 	   <filter-name>richfaces</filter-name>
 | |
| 	   <filter-class>org.ajax4jsf.Filter</filter-class>
 | |
| 	</filter>
 | |
| 	<filter-mapping>
 | |
| 	   <filter-name>richfaces</filter-name>
 | |
| 	   <servlet-name>Faces Servlet</servlet-name>
 | |
| 	</filter-mapping>
 | |
| 	<!-- richfaces -->
 | |
| 
 | |
| 
 | |
| 	<!-- tomahawk -->
 | |
| 	<filter>
 | |
| 		<filter-name>MyFacesExtensionsFilter</filter-name>
 | |
| 		<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
 | |
| 		<init-param>
 | |
| 			<param-name>uploadMaxFileSize</param-name>
 | |
| 			<param-value>20m</param-value>
 | |
| 		</init-param>
 | |
| 	</filter>
 | |
| 	<filter-mapping>
 | |
| 		<filter-name>MyFacesExtensionsFilter</filter-name>
 | |
| 		<servlet-name>FacesServlet</servlet-name>
 | |
| 	</filter-mapping>
 | |
| 	<!-- este mapping causa problemas nos acentos - só é necessario para as resources (images, por ex.) do tomahawk ... -->
 | |
| 	<!-- url-pattern faz com que seja o primeiro filter aplicado ... se descomentar, dá WARNING porque MyFaces tem de correr depois do RichFaces -->
 | |
| 	<!--<filter-mapping>
 | |
| 		<filter-name>MyFacesExtensionsFilter</filter-name>
 | |
| 		<url-pattern>/faces/*</url-pattern>
 | |
| 	</filter-mapping>-->
 | |
| 	<!-- tomahawk -->
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 	<filter>
 | |
| 		<filter-name>UploadFilter</filter-name>
 | |
| 		<filter-class>com.sun.webui.jsf.util.UploadFilter</filter-class>
 | |
| 		<init-param>
 | |
| 			<description>The maximum allowed upload size in bytes.  If this is set to a negative value, there is no maximum.  The default value is 1000000.</description>
 | |
| 			<param-name>maxSize</param-name>
 | |
| 			<param-value>1000000</param-value>
 | |
| 		</init-param>
 | |
| 		<init-param>
 | |
| 			<description>The size (in bytes) of an uploaded file which, if it is exceeded, will cause the file to be written directly to disk instead of stored in memory.  Files smaller than or equal to this size will be stored in memory.  The default value is 4096.</description>
 | |
| 			<param-name>sizeThreshold</param-name>
 | |
| 			<param-value>4096</param-value>
 | |
| 		</init-param>
 | |
| 	</filter>
 | |
| 	<filter-mapping>
 | |
| 		<filter-name>UploadFilter</filter-name>
 | |
| 		<servlet-name>Faces Servlet</servlet-name>
 | |
| 	</filter-mapping>
 | |
| 
 | |
| 
 | |
| 
 | |
| 	<!-- richfaces -->
 | |
| 	<context-param>
 | |
| 	   <param-name>org.richfaces.SKIN</param-name>
 | |
| 	   <param-value>blueSky</param-value>
 | |
| 	</context-param>
 | |
| 
 | |
| 	<context-param>
 | |
| 		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
 | |
| 		<param-value>client</param-value>
 | |
| 	</context-param>
 | |
| 	<context-param>
 | |
| 		<param-name>com.sun.faces.validateXml</param-name>
 | |
| 		<param-value>true</param-value>
 | |
| 	</context-param>
 | |
| 	<context-param>
 | |
| 		<param-name>com.sun.faces.verifyObjects</param-name>
 | |
| 		<param-value>false</param-value>
 | |
| 	</context-param>
 | |
| 
 | |
| 
 | |
| 
 | |
| 	<servlet>
 | |
| 		<servlet-name>Faces Servlet</servlet-name>
 | |
| 		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
 | |
| 		<init-param>
 | |
| 			<param-name>javax.faces.LIFECYCLE_ID</param-name>
 | |
| 			<param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
 | |
| 		</init-param>
 | |
| 		<load-on-startup>1</load-on-startup>
 | |
| 	</servlet>
 | |
| 	<servlet>
 | |
| 		<servlet-name>ExceptionHandlerServlet</servlet-name>
 | |
| 		<servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
 | |
| 		<init-param>
 | |
| 			<param-name>errorHost</param-name>
 | |
| 			<param-value>localhost</param-value>
 | |
| 		</init-param>
 | |
| 		<init-param>
 | |
| 			<param-name>errorPort</param-name>
 | |
| 			<param-value>24444</param-value>
 | |
| 		</init-param>
 | |
| 	</servlet>
 | |
| 	<servlet>
 | |
| 		<servlet-name>ThemeServlet</servlet-name>
 | |
| 		<servlet-class>com.sun.webui.theme.ThemeServlet</servlet-class>
 | |
| 	</servlet>
 | |
| 	<servlet-mapping>
 | |
| 		<servlet-name>Faces Servlet</servlet-name>
 | |
| 		<url-pattern>/faces/*</url-pattern>
 | |
| 	</servlet-mapping>
 | |
| 	<servlet-mapping>
 | |
| 		<servlet-name>ExceptionHandlerServlet</servlet-name>
 | |
| 		<url-pattern>/error/ExceptionHandler</url-pattern>
 | |
| 	</servlet-mapping>
 | |
| 	<servlet-mapping>
 | |
| 		<servlet-name>ThemeServlet</servlet-name>
 | |
| 		<url-pattern>/theme/*</url-pattern>
 | |
| 	</servlet-mapping>
 | |
| 
 | |
| 	<session-config>
 | |
| 		<session-timeout>30</session-timeout>
 | |
| 	</session-config>
 | |
| 
 | |
| 	<welcome-file-list>
 | |
| 		<welcome-file>faces/Dummy.jsp</welcome-file>
 | |
| 	</welcome-file-list>
 | |
| 
 | |
| 	<error-page>
 | |
| 		<exception-type>javax.servlet.ServletException</exception-type>
 | |
| 		<location>/error/ExceptionHandler</location>
 | |
| 	</error-page>
 | |
| 	<error-page>
 | |
| 		<exception-type>java.io.IOException</exception-type>
 | |
| 		<location>/error/ExceptionHandler</location>
 | |
| 	</error-page>
 | |
| 	<error-page>
 | |
| 		<exception-type>javax.faces.FacesException</exception-type>
 | |
| 		<location>/error/ExceptionHandler</location>
 | |
| 	</error-page>
 | |
| 	<error-page>
 | |
| 		<exception-type>com.sun.rave.web.ui.appbase.ApplicationException</exception-type>
 | |
| 		<location>/error/ExceptionHandler</location>
 | |
| 	</error-page>
 | |
| 
 | |
| 	<jsp-config>
 | |
| 		<jsp-property-group>
 | |
| 			<url-pattern>*.jspf</url-pattern>
 | |
| 			<is-xml>true</is-xml>
 | |
| 		</jsp-property-group>
 | |
| 	</jsp-config>
 | |
| 
 | |
| 	<listener>
 | |
| 		<listener-class>phaselistener.PAContextListener</listener-class>
 | |
| 	</listener>
 | |
| 	<listener>
 | |
| 		<listener-class>phaselistener.PASessionListener</listener-class>
 | |
| 	</listener>
 | |
| 
 | |
| <!--	<security-constraint>
 | |
| 		<web-resource-collection>
 | |
| 			<web-resource-name>PlanosActuacao</web-resource-name>
 | |
| 			<url-pattern>/*</url-pattern>
 | |
| 		</web-resource-collection>
 | |
| 	</security-constraint>
 | |
| 	<login-config>
 | |
| 		<auth-method>FORM</auth-method>
 | |
| 		<realm-name>AnaliseAcidentesTrabalho Application</realm-name>
 | |
| 		<form-login-config>
 | |
| 			<form-login-page>/AnaliseAcidentesTrabalho/Login.jsp</form-login-page>
 | |
| 			<form-error-page>/AnaliseAcidentesTrabalho/Erro.jsp</form-error-page>
 | |
| 		</form-login-config>
 | |
| 	</login-config>-->
 | |
| 
 | |
| </web-app>
 |