Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" |
||
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
| 4 | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee |
||
| 5 | http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> |
||
| 6 | |||
| 7 | <display-name>rhd-web</display-name> |
||
| 8 | |||
| 9 | <context-param> |
||
| 10 | <param-name>contextConfigLocation</param-name> |
||
| 11 | <param-value>WEB-INF/*-context.xml</param-value> |
||
| 12 | </context-param> |
||
| 13 | |||
| 14 | <listener> |
||
| 15 | <listener-class>com.sun.faces.config.ConfigureListener</listener-class> |
||
| 16 | </listener> |
||
| 17 | |||
| 18 | <listener> |
||
| 19 | <listener-class>br.gov.al.saude.rhd.web.managebean.util.ConfigListener</listener-class> |
||
| 20 | </listener> |
||
| 21 | |||
| 22 | <!-- Listener do Log4j para controle de Log; COMENTAR PARA O GLASSFISH --> |
||
| 23 | <listener> |
||
| 24 | <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> |
||
| 25 | </listener> |
||
| 26 | |||
| 27 | <listener> |
||
| 28 | <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
||
| 29 | </listener> |
||
| 30 | |||
| 31 | <listener> |
||
| 32 | <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> |
||
| 33 | </listener> |
||
| 34 | |||
| 35 | <!-- JSF mapping --> |
||
| 36 | <servlet> |
||
| 37 | <servlet-name>Faces Servlet</servlet-name> |
||
| 38 | <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> |
||
| 39 | <load-on-startup>1</load-on-startup> |
||
| 40 | </servlet> |
||
| 41 | |||
| 42 | <!-- Map these files with JSF --> |
||
| 43 | <servlet-mapping> |
||
| 44 | <servlet-name>Faces Servlet</servlet-name> |
||
| 45 | <url-pattern>*.jsf</url-pattern> |
||
| 46 | </servlet-mapping> |
||
| 47 | <servlet-mapping> |
||
| 48 | <servlet-name>Faces Servlet</servlet-name> |
||
| 49 | <url-pattern>*.faces</url-pattern> |
||
| 50 | </servlet-mapping> |
||
| 51 | <servlet-mapping> |
||
| 52 | <servlet-name>Faces Servlet</servlet-name> |
||
| 53 | <url-pattern>*.xhtml</url-pattern> |
||
| 54 | </servlet-mapping> |
||
| 55 | |||
| 56 | <servlet> |
||
| 57 | <servlet-name>rhd</servlet-name> |
||
| 58 | <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
||
| 59 | <load-on-startup>1</load-on-startup> |
||
| 60 | </servlet> |
||
| 61 | |||
| 62 | <servlet-mapping> |
||
| 63 | <servlet-name>rhd</servlet-name> |
||
| 64 | <url-pattern>*.action</url-pattern> |
||
| 65 | </servlet-mapping> |
||
| 66 | |||
| 67 | <!-- Spring Security --> |
||
| 68 | <filter> |
||
| 69 | <filter-name>springSecurityFilterChain</filter-name> |
||
| 70 | <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
||
| 71 | </filter> |
||
| 72 | |||
| 73 | <filter-mapping> |
||
| 74 | <filter-name>springSecurityFilterChain</filter-name> |
||
| 75 | <url-pattern>/*</url-pattern> |
||
| 76 | </filter-mapping> |
||
| 77 | |||
| 78 | <!-- CAS Single Sign Out Filter --> |
||
| 79 | <filter> |
||
| 80 | <filter-name>CAS Single Sign Out Filter</filter-name> |
||
| 81 | <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> |
||
| 82 | </filter> |
||
| 83 | <filter-mapping> |
||
| 84 | <filter-name>CAS Single Sign Out Filter</filter-name> |
||
| 85 | <url-pattern>/*</url-pattern> |
||
| 86 | </filter-mapping> |
||
| 87 | |||
| 88 | <filter> |
||
| 89 | <filter-name>charsetFilter</filter-name> |
||
| 90 | <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> |
||
| 91 | <init-param> |
||
| 92 | <param-name>encoding</param-name> |
||
| 93 | <param-value>UTF-8</param-value> |
||
| 94 | </init-param> |
||
| 95 | </filter> |
||
| 96 | |||
| 97 | <filter-mapping> |
||
| 98 | <filter-name>charsetFilter</filter-name> |
||
| 99 | <url-pattern>/*</url-pattern> |
||
| 100 | </filter-mapping> |
||
| 101 | |||
| 102 | <listener> |
||
| 103 | <listener-class>org.jasig.cas.client.session.SingleSignOutHttpSessionListener</listener-class> |
||
| 104 | </listener> |
||
| 105 | |||
| 106 | <filter> |
||
| 107 | <filter-name>JPA Filter</filter-name> |
||
| 108 | <filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class> |
||
| 109 | </filter> |
||
| 110 | |||
| 111 | <context-param> |
||
| 112 | <param-name>javax.faces.PROJECT_STAGE</param-name> |
||
| 113 | <param-value>Production</param-value> |
||
| 114 | </context-param> |
||
| 115 | |||
| 116 | <context-param> |
||
| 117 | <param-name>javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL</param-name> |
||
| 118 | <param-value>true</param-value> |
||
| 119 | </context-param> |
||
| 120 | |||
| 121 | <context-param> |
||
| 122 | <param-name>javax.faces.STATE_SAVING_METHOD</param-name> |
||
| 123 | <param-value>server</param-value> |
||
| 124 | </context-param> |
||
| 125 | |||
| 126 | <welcome-file-list> |
||
| 127 | <welcome-file>index.jsp</welcome-file> |
||
| 128 | <welcome-file>index.html</welcome-file> |
||
| 129 | <welcome-file>index.xhtml</welcome-file> |
||
| 130 | </welcome-file-list> |
||
| 131 | |||
| 132 | <servlet> |
||
| 133 | <servlet-name>Resource Servlet</servlet-name> |
||
| 134 | <servlet-class>org.primefaces.resource.ResourceServlet</servlet-class> |
||
| 135 | </servlet> |
||
| 136 | <servlet-mapping> |
||
| 137 | <servlet-name>Resource Servlet</servlet-name> |
||
| 138 | <url-pattern>/rhd-web/*</url-pattern> |
||
| 139 | </servlet-mapping> |
||
| 140 | |||
| 141 | <!-- PRIME FACES --> |
||
| 142 | <context-param> |
||
| 143 | <param-name>primefaces.THEME</param-name> |
||
| 144 | <param-value>redmond</param-value> |
||
| 145 | </context-param> |
||
| 146 | |||
| 147 | <!-- FILTRO PARA UPLOAD --> |
||
| 148 | <filter> |
||
| 149 | <filter-name>PrimeFaces FileUpload Filter</filter-name> |
||
| 150 | <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class> |
||
| 151 | </filter> |
||
| 152 | <filter-mapping> |
||
| 153 | <filter-name>PrimeFaces FileUpload Filter</filter-name> |
||
| 154 | <servlet-name>Faces Servlet</servlet-name> |
||
| 155 | </filter-mapping> |
||
| 156 | |||
| 157 | <mime-mapping> |
||
| 158 | <extension>ecss</extension> |
||
| 159 | <mime-type>text/css</mime-type> |
||
| 160 | </mime-mapping> |
||
| 161 | |||
| 162 | <error-page> |
||
| 163 | <error-code>401</error-code> |
||
| 164 | <location>/paginas/template/tela_erro.xhtml</location> |
||
| 165 | </error-page> |
||
| 166 | |||
| 167 | <error-page> |
||
| 168 | <error-code>500</error-code> |
||
| 169 | <location>/paginas/template/tela_erro_500.xhtml</location> |
||
| 170 | </error-page> |
||
| 171 | |||
| 172 | <persistence-unit-ref> |
||
| 173 | <description>Persistence Unit do RHD</description> |
||
| 174 | <persistence-unit-ref-name>persistence/rhdPU</persistence-unit-ref-name> |
||
| 175 | <persistence-unit-name>rhdPU</persistence-unit-name> |
||
| 176 | </persistence-unit-ref> |
||
| 177 | |||
| 178 | </web-app> |