web.xml.123 11 KB

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