web.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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"
  4. xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  5. id="WebApp_ID" version="2.5">
  6. <display-name>nwyj</display-name>
  7. <context-param>
  8. <param-name>contextConfigLocation</param-name>
  9. <param-value>WEB-INF/NWYJBeans.xml</param-value>
  10. </context-param>
  11. <context-param>
  12. <param-name>ssoServerUrl</param-name>
  13. <!-- 将以下地址替换为实际的4A平台统一认证服务地址,样例:http://192.168.1.8/isc_sso -->
  14. <param-value>http://10.121.181.132:80/isc_sso</param-value>
  15. </context-param>
  16. <context-param>
  17. <param-name>appid</param-name>
  18. <!--业务系统的APPID,4A平台为业务系统分配的唯一标识,样例:8a16828b547f527a0154bd59ffd31cf0<-->
  19. <param-value>8af9350154b7984f01580907aeea48d8</param-value>
  20. </context-param>
  21. <listener>
  22. <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  23. </listener>
  24. <!--4A统一认证配置开始-->
  25. <!--1、用户会话监听器:IscSingleSignOutFilter-->
  26. <listener>
  27. <listener-class>com.sgcc.isc.ualogin.client.listener.IscSingleSignOutHttpSessionListener
  28. </listener-class>
  29. </listener>
  30. <filter>
  31. <filter-name>IscSingleSignOutFilter</filter-name>
  32. <filter-class>com.sgcc.isc.ualogin.client.filter.IscSingleSignOutFilter
  33. </filter-class>
  34. </filter>
  35. <filter-mapping>
  36. <filter-name>IscSingleSignOutFilter</filter-name>
  37. <url-pattern>/index.html</url-pattern>
  38. </filter-mapping>
  39. <filter-mapping>
  40. <filter-name>IscSingleSignOutFilter</filter-name>
  41. <url-pattern>/index.jsp</url-pattern>
  42. </filter-mapping>
  43. <!-- 2、用户登陆状态检测过滤器:AuthenticationFilter -->
  44. <filter>
  45. <filter-name>AuthenticationFilter</filter-name>
  46. <filter-class>com.sgcc.isc.ualogin.client.filter.IscSSOAuthenticationFilter
  47. </filter-class>
  48. <init-param>
  49. <param-name>serverLoginUrl</param-name>
  50. <!-- 将以下地址替换为实际的4A平台统一认证服务地址,样例:http://192.168.1.8/isc_sso/login -->
  51. <param-value>http://10.121.181.132:80/isc_sso/login</param-value>
  52. </init-param>
  53. <init-param>
  54. <param-name>serverName</param-name>
  55. <!-- 正式环境:10.121.180.53:8080 -->
  56. <!-- 测试环境:10.121.180.53:8080 -->
  57. <param-value>http://10.121.180.53:8080</param-value>
  58. </init-param>
  59. </filter>
  60. <filter-mapping>
  61. <filter-name>AuthenticationFilter</filter-name>
  62. <url-pattern>/index.html</url-pattern>
  63. </filter-mapping>
  64. <filter-mapping>
  65. <filter-name>AuthenticationFilter</filter-name>
  66. <url-pattern>/index.jsp</url-pattern>
  67. </filter-mapping>
  68. <!-- 3、用户登陆票有效性检测过滤器:Validation Filter-->
  69. <filter>
  70. <filter-name>Validation Filter</filter-name>
  71. <filter-class>com.sgcc.isc.ualogin.client.filter.IscSSO20ProxyReceivingTicketValidationFilter
  72. </filter-class>
  73. <init-param>
  74. <param-name>serverUrlPrefix</param-name>
  75. <!-- 将以下地址替换为实际的4A平台统一认证服务地址,样例:http://192.168.1.8/isc_sso/ -->
  76. <param-value>http://10.121.181.132:80/isc_sso/</param-value>
  77. </init-param>
  78. <init-param>
  79. <param-name>serverName</param-name>
  80. <!--业务系统应用地址与端口,样例:http://192.168.1.8:8080-->
  81. <param-value>http://10.121.180.53:8080</param-value>
  82. </init-param>
  83. <init-param>
  84. <param-name>encoding</param-name>
  85. <param-value>utf-8</param-value>
  86. </init-param>
  87. </filter>
  88. <filter-mapping>
  89. <filter-name>Validation Filter</filter-name>
  90. <url-pattern>/index.jsp</url-pattern>
  91. </filter-mapping>
  92. <filter-mapping>
  93. <filter-name>Validation Filter</filter-name>
  94. <url-pattern>/index.html</url-pattern>
  95. </filter-mapping>
  96. <!-- 4、HttpServletRequest Wrapper Filter-->
  97. <filter>
  98. <filter-name>HttpServletRequestWrapperFilter</filter-name>
  99. <filter-class>com.sgcc.isc.ualogin.client.filter.IscSSOHttpServletRequestWrapperFilter
  100. </filter-class>
  101. </filter>
  102. <filter-mapping>
  103. <filter-name>HttpServletRequestWrapperFilter</filter-name>
  104. <url-pattern>/index.jsp</url-pattern>
  105. </filter-mapping>
  106. <filter-mapping>
  107. <filter-name>HttpServletRequestWrapperFilter</filter-name>
  108. <url-pattern>/index.html</url-pattern>
  109. </filter-mapping>
  110. <!-- 5、Assertion Thread Local Filter-->
  111. <filter>
  112. <filter-name>Assertion Thread Local Filter</filter-name>
  113. <filter-class>com.sgcc.isc.ualogin.client.filter.IsoSSOAssertionThreadLocalFilter
  114. </filter-class>
  115. </filter>
  116. <filter-mapping>
  117. <filter-name>Assertion Thread Local Filter</filter-name>
  118. <url-pattern>/index.jsp</url-pattern>
  119. </filter-mapping>
  120. <filter-mapping>
  121. <filter-name>Assertion Thread Local Filter</filter-name>
  122. <url-pattern>/index.html</url-pattern>
  123. </filter-mapping>
  124. <!-- 4A end -->
  125. <filter>
  126. <filter-name>encodingFilter</filter-name>
  127. <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  128. <init-param>
  129. <param-name>encoding</param-name>
  130. <param-value>UTF-8</param-value>
  131. </init-param>
  132. <init-param>
  133. <param-name>forceEncoding</param-name>
  134. <param-value>true</param-value>
  135. </init-param>
  136. </filter>
  137. <filter-mapping>
  138. <filter-name>encodingFilter</filter-name>
  139. <url-pattern>*.jsp</url-pattern>
  140. </filter-mapping>
  141. <filter-mapping>
  142. <filter-name>encodingFilter</filter-name>
  143. <url-pattern>*.html</url-pattern>
  144. </filter-mapping>
  145. <!-- <filter>
  146. <filter-name>loggerfilter</filter-name>
  147. <filter-class>com.system.filter.LoginFilter</filter-class>
  148. </filter>
  149. <filter-mapping>
  150. <filter-name>loggerfilter</filter-name>
  151. <url-pattern>/ws/*</url-pattern>
  152. </filter-mapping> -->
  153. <!-- 6、单点登出Servlet配置:IscSingleSignOutServlet-->
  154. <servlet>
  155. <servlet-name>IscSingleSignOutServlet</servlet-name>
  156. <servlet-class>com.sgcc.isc.ualogin.client.servlet.IscSingleSignOutServlet
  157. </servlet-class>
  158. <init-param>
  159. <param-name>serverLogoutUrl</param-name>
  160. <!-- 将以下地址替换为实际的4A平台统一认证登出地址,样例:http://192.168.1.8/isc_sso/logout -->
  161. <param-value>http://10.121.181.132:80/isc_sso/logout</param-value>
  162. </init-param>
  163. <init-param>
  164. <param-name>serverName</param-name>
  165. <!-- 登出后跳转的地址,一般填业务系统访问地址,样例:http://192.168.1.8:8080/web -->
  166. <param-value>http://10.121.180.53:8080/nwyj</param-value>
  167. </init-param>
  168. </servlet>
  169. <servlet-mapping>
  170. <servlet-name>IscSingleSignOutServlet</servlet-name>
  171. <url-pattern>/signout</url-pattern>
  172. </servlet-mapping>
  173. <servlet>
  174. <description>模型初始化</description>
  175. <servlet-name>InitConfig</servlet-name>
  176. <servlet-class>com.sysmodel.InitConfigServlet</servlet-class>
  177. <init-param>
  178. <param-name>Model</param-name>
  179. <param-value>/WEB-INF/DataModel.xml</param-value>
  180. </init-param>
  181. <init-param>
  182. <param-name>defaultCollection</param-name>
  183. <param-value>/WEB-INF/PageCollection.xml</param-value>
  184. </init-param>
  185. <init-param>
  186. <param-name>defaultList</param-name>
  187. <param-value>/WEB-INF/PageList.xml</param-value>
  188. </init-param>
  189. <init-param>
  190. <param-name>defaultPageResouce</param-name>
  191. <param-value>/WEB-INF/PageResouce.xml</param-value>
  192. </init-param>
  193. <init-param>
  194. <param-name>defaultCSS</param-name>
  195. <param-value>css.css</param-value>
  196. </init-param>
  197. <load-on-startup>1</load-on-startup>
  198. </servlet>
  199. <servlet>
  200. <servlet-name>CXFServlet</servlet-name>
  201. <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
  202. <load-on-startup>3</load-on-startup>
  203. </servlet>
  204. <servlet-mapping>
  205. <servlet-name>CXFServlet</servlet-name>
  206. <url-pattern>/ws/*</url-pattern>
  207. </servlet-mapping>
  208. <servlet>
  209. <servlet-name>dwr-invoker</servlet-name>
  210. <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
  211. <init-param>
  212. <param-name>debug</param-name>
  213. <param-value>false</param-value>
  214. </init-param>
  215. <init-param>
  216. <param-name>logLevel</param-name>
  217. <param-value>ERROR</param-value>
  218. </init-param>
  219. <init-param>
  220. <param-name>crossDomainSessionSecurity</param-name>
  221. <param-value>false</param-value>
  222. </init-param>
  223. <init-param>
  224. <param-name>allowScriptTagRemoting</param-name>
  225. <param-value>true</param-value>
  226. </init-param>
  227. <init-param>
  228. <param-name>classes</param-name>
  229. <param-value>java.lang.Object</param-value>
  230. </init-param>
  231. <!-- 开启反转Ajax 即所谓推技术 -->
  232. <init-param>
  233. <param-name>activeReverseAjaxEnabled</param-name>
  234. <param-value>true</param-value>
  235. </init-param>
  236. <!-- <init-param>
  237. <param-name>activeReverseAjaxEnabled</param-name>
  238. <param-value>20</param-value>
  239. </init-param>
  240. <init-param>
  241. <param-name>maxWaitingThreads</param-name>
  242. <param-value>20</param-value>
  243. </init-param>
  244. <init-param>
  245. <param-name>pollAndCometEnabled</param-name>
  246. <param-value>true</param-value>
  247. </init-param> -->
  248. <init-param>
  249. <param-name>initApplicationScopeCreatorsAtStartup</param-name>
  250. <param-value>true</param-value>
  251. </init-param>
  252. <init-param>
  253. <param-name>maxWaitAfterWrite</param-name>
  254. <param-value>1000</param-value>
  255. </init-param>
  256. <init-param>
  257. <param-name>org.directwebremoting.extend.ServerLoadMonitor</param-name>
  258. <param-value>org.directwebremoting.impl.PollingServerLoadMonitor</param-value>
  259. </init-param>
  260. <init-param>
  261. <param-name>disconnectedTime</param-name>
  262. <param-value>0</param-value>
  263. </init-param>
  264. <load-on-startup>1</load-on-startup>
  265. </servlet>
  266. <servlet>
  267. <description>系统初始化</description>
  268. <display-name>InitServlet</display-name>
  269. <servlet-name>InitServlet</servlet-name>
  270. <servlet-class>com.sinosoft.lz.system.configer.service.InitServlet</servlet-class>
  271. <load-on-startup>2</load-on-startup>
  272. </servlet>
  273. <servlet-mapping>
  274. <servlet-name>dwr-invoker</servlet-name>
  275. <url-pattern>/dwr/*</url-pattern>
  276. </servlet-mapping>
  277. <welcome-file-list>
  278. <welcome-file>index.jsp</welcome-file>
  279. </welcome-file-list>
  280. <listener>
  281. <listener-class>org.springframework.web.context.request.RequestContextListener </listener-class>
  282. </listener>
  283. <!-- 消息推送用到,初始化ScriptSessionServlet-->
  284. <servlet>
  285. <description>初始化InitScriptSessionServlet</description>
  286. <display-name>InitScriptSessionServlet</display-name>
  287. <servlet-name>InitScriptSession</servlet-name>
  288. <servlet-class>com.system.push.InitScriptSessionServlet</servlet-class>
  289. <load-on-startup>2</load-on-startup>
  290. </servlet>
  291. <!--定时任务--><!-- 影响开发暂时注掉 -->
  292. <servlet>
  293. <description>初始化InitQuartzTaskServlet</description>
  294. <display-name>InitQuartzTaskServlet</display-name>
  295. <servlet-name>InitQuartzTaskServlet</servlet-name>
  296. <servlet-class>com.sinosoft.common.quartz.InitQuartzTaskServlet</servlet-class>
  297. <load-on-startup>2</load-on-startup>
  298. </servlet>
  299. <!-- 异步上传servlet -->
  300. <servlet>
  301. <servlet-name>upload</servlet-name>
  302. <servlet-class>com.sinosoft.common.uploadify.UploadServlet</servlet-class>
  303. </servlet>
  304. <servlet-mapping>
  305. <servlet-name>upload</servlet-name>
  306. <url-pattern>/Upload</url-pattern>
  307. </servlet-mapping>
  308. <!--
  309. <filter>
  310. <filter-name>AuthFilter</filter-name>
  311. <filter-class>com.system.filter.AuthFilter</filter-class>
  312. </filter>
  313. <filter-mapping>
  314. <filter-name>AuthFilter</filter-name>
  315. <url-pattern>*.jsp</url-pattern>
  316. <url-pattern>*.html</url-pattern>
  317. </filter-mapping>
  318. -->
  319. <!-- 错误页 -->
  320. <error-page>
  321. <error-code>404</error-code>
  322. <location>/page/system/error/404.jsp</location>
  323. </error-page>
  324. </web-app>