cb7a5a1aec435024eeb873253378e60b52f5c0be.svn-base 11 KB

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