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