Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
  3. <display-name>revista1</display-name>
  4.  
  5. <context-param>
  6. <param-name>contextConfigLocation</param-name>
  7. <param-value>/WEB-INF/springconfig.xml</param-value>
  8. </context-param>
  9.  
  10. <context-param>
  11. <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
  12. <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  13. <param-value>client</param-value>
  14. </context-param>
  15.  
  16. <context-param>
  17. <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
  18. <param-value>resources.application</param-value>
  19. </context-param>
  20.  
  21. <context-param>
  22. <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name>
  23. <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
  24. </context-param>
  25.  
  26. <context-param>
  27. <param-name>com.sun.faces.expressionFactory</param-name>
  28. <param-value>com.sun.el.ExpressionFactoryImpl</param-value>
  29. </context-param>
  30.  
  31. <context-param>
  32. <param-name>primefaces.UPLOADER</param-name>
  33. <param-value>commons</param-value>
  34. </context-param>
  35.  
  36. <listener>
  37. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  38. </listener>
  39.  
  40.  
  41. <welcome-file-list>
  42. <welcome-file>index.xhtml</welcome-file>
  43. </welcome-file-list>
  44.  
  45. <filter>
  46. <filter-name>PrimeFaces FileUpload Filter</filter-name>
  47. <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class>
  48. <init-param>
  49. <param-name>thresholdSize</param-name>
  50. <param-value>2097152</param-value>
  51. </init-param>
  52. </filter>
  53.  
  54. <filter-mapping>
  55. <filter-name>PrimeFaces FileUpload Filter</filter-name>
  56. <servlet-name>Faces Servlet</servlet-name>
  57. </filter-mapping>
  58.  
  59. <filter>
  60. <filter-name>CORS</filter-name>
  61. <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
  62. <init-param>
  63. <param-name>cors.allowGenericHttpRequests</param-name>
  64. <param-value>true</param-value>
  65. </init-param>
  66. <init-param>
  67. <param-name>cors.allowOrigin</param-name>
  68. <param-value>*</param-value>
  69. </init-param>
  70. <init-param>
  71. <param-name>cors.allowSubdomains</param-name>
  72. <param-value>true</param-value>
  73. </init-param>
  74. <init-param>
  75. <param-name>cors.supportedMethods</param-name>
  76. <param-value>GET, HEAD, POST, OPTIONS, PUT</param-value>
  77. </init-param>
  78. <init-param>
  79. <param-name>cors.supportedHeaders</param-name>
  80. <param-value>Content-Type, X-Requested-With</param-value>
  81. </init-param>
  82. <init-param>
  83. <param-name>cors.exposedHeaders</param-name>
  84. <param-value>X-Test-1, X-Test-2</param-value>
  85. </init-param>
  86. <init-param>
  87. <param-name>cors.supportsCredentials</param-name>
  88. <param-value>true</param-value>
  89. </init-param>
  90. <init-param>
  91. <param-name>cors.maxAge</param-name>
  92. <param-value>-1</param-value>
  93. </init-param>
  94. </filter>
  95.  
  96. <filter-mapping>
  97. <filter-name>CORS</filter-name>
  98. <url-pattern>/*</url-pattern>
  99. </filter-mapping>
  100.  
  101. <filter>
  102. <filter-name>springSecurityFilterChain</filter-name>
  103. <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  104. </filter>
  105.  
  106. <filter-mapping>
  107. <filter-name>springSecurityFilterChain</filter-name>
  108. <url-pattern>/*</url-pattern>
  109. </filter-mapping>
  110.  
  111. <servlet>
  112. <servlet-name>Faces Servlet</servlet-name>
  113. <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  114. <load-on-startup>1</load-on-startup>
  115. </servlet>
  116.  
  117. <servlet-mapping>
  118. <servlet-name>Faces Servlet</servlet-name>
  119. <url-pattern>*.xhtml</url-pattern>
  120. </servlet-mapping>
  121.  
  122. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement