123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341 |
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="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_2_5.xsd"
- id="WebApp_ID" version="2.5">
- <display-name>nwyj</display-name>
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>WEB-INF/NWYJBeans.xml</param-value>
- </context-param>
-
-
- <context-param>
- <param-name>ssoServerUrl</param-name>
- <!-- 将以下地址替换为实际的4A平台统一认证服务地址,样例:http://192.168.1.8/isc_sso -->
- <param-value>http://10.150.2.1:8009/isc_sso</param-value>
- </context-param>
- <context-param>
- <param-name>appid</param-name>
- <!--业务系统的APPID,4A平台为业务系统分配的唯一标识,样例:8a16828b547f527a0154bd59ffd31cf0<-->
- <param-value>8a16828b547f527a0154bd59ffd31cf0</param-value>
- </context-param>
- <listener>
- <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
- </listener>
-
- <!--4A统一认证配置开始-->
- <!--1、用户会话监听器:IscSingleSignOutFilter-->
-
- <listener>
- <listener-class>com.sgcc.isc.ualogin.client.listener.IscSingleSignOutHttpSessionListener
- </listener-class>
- </listener>
- <filter>
- <filter-name>IscSingleSignOutFilter</filter-name>
- <filter-class>com.sgcc.isc.ualogin.client.filter.IscSingleSignOutFilter
- </filter-class>
- </filter>
- <filter-mapping>
- <filter-name>IscSingleSignOutFilter</filter-name>
- <url-pattern>/index.html</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>IscSingleSignOutFilter</filter-name>
- <url-pattern>/index.jsp</url-pattern>
- </filter-mapping>
-
- <!-- 2、用户登陆状态检测过滤器:AuthenticationFilter -->
- <filter>
- <filter-name>AuthenticationFilter</filter-name>
- <filter-class>com.sgcc.isc.ualogin.client.filter.IscSSOAuthenticationFilter
- </filter-class>
- <init-param>
- <param-name>serverLoginUrl</param-name>
- <!-- 将以下地址替换为实际的4A平台统一认证服务地址,样例:http://192.168.1.8/isc_sso/login -->
- <param-value>http://10.150.2.1:8009/isc_sso/login</param-value>
- </init-param>
- <init-param>
- <param-name>serverName</param-name>
- <!--业务系统应用地址与端口,样例:http://192.168.1.8:8080-->
- <param-value>http://10.150.74.86</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>AuthenticationFilter</filter-name>
- <url-pattern>/index.html</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>AuthenticationFilter</filter-name>
- <url-pattern>/index.jsp</url-pattern>
- </filter-mapping>
-
-
- <!-- 3、用户登陆票有效性检测过滤器:Validation Filter-->
- <filter>
- <filter-name>Validation Filter</filter-name>
- <filter-class>com.sgcc.isc.ualogin.client.filter.IscSSO20ProxyReceivingTicketValidationFilter
- </filter-class>
- <init-param>
- <param-name>serverUrlPrefix</param-name>
- <!-- 将以下地址替换为实际的4A平台统一认证服务地址,样例:http://192.168.1.8/isc_sso/ -->
- <param-value>http://10.150.2.1:8009/isc_sso/</param-value>
- </init-param>
- <init-param>
- <param-name>serverName</param-name>
- <!--业务系统应用地址与端口,样例:http://192.168.1.8:8080-->
- <param-value>http://10.150.74.86</param-value>
- </init-param>
- <init-param>
- <param-name>encoding</param-name>
- <param-value>utf-8</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>Validation Filter</filter-name>
- <url-pattern>/index.jsp</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>Validation Filter</filter-name>
- <url-pattern>/index.html</url-pattern>
- </filter-mapping>
-
- <!-- 4、HttpServletRequest Wrapper Filter-->
- <filter>
- <filter-name>HttpServletRequestWrapperFilter</filter-name>
- <filter-class>com.sgcc.isc.ualogin.client.filter.IscSSOHttpServletRequestWrapperFilter
- </filter-class>
- </filter>
- <filter-mapping>
- <filter-name>HttpServletRequestWrapperFilter</filter-name>
- <url-pattern>/index.jsp</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>HttpServletRequestWrapperFilter</filter-name>
- <url-pattern>/index.html</url-pattern>
- </filter-mapping>
-
- <!-- 5、Assertion Thread Local Filter-->
- <filter>
- <filter-name>Assertion Thread Local Filter</filter-name>
- <filter-class>com.sgcc.isc.ualogin.client.filter.IsoSSOAssertionThreadLocalFilter
- </filter-class>
- </filter>
- <filter-mapping>
- <filter-name>Assertion Thread Local Filter</filter-name>
- <url-pattern>/index.jsp</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>Assertion Thread Local Filter</filter-name>
- <url-pattern>/index.html</url-pattern>
- </filter-mapping>
-
-
- <!-- 4A end -->
-
- <filter>
- <filter-name>encodingFilter</filter-name>
- <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
- <init-param>
- <param-name>encoding</param-name>
- <param-value>UTF-8</param-value>
- </init-param>
- <init-param>
- <param-name>forceEncoding</param-name>
- <param-value>true</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>encodingFilter</filter-name>
- <url-pattern>*.jsp</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>encodingFilter</filter-name>
- <url-pattern>*.html</url-pattern>
- </filter-mapping>
-
- <!-- <filter>
- <filter-name>loggerfilter</filter-name>
- <filter-class>com.system.filter.LoginFilter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>loggerfilter</filter-name>
- <url-pattern>/ws/*</url-pattern>
- </filter-mapping> -->
-
- <!-- 6、单点登出Servlet配置:IscSingleSignOutServlet-->
- <servlet>
- <servlet-name>IscSingleSignOutServlet</servlet-name>
- <servlet-class>com.sgcc.isc.ualogin.client.servlet.IscSingleSignOutServlet
- </servlet-class>
- <init-param>
- <param-name>serverLogoutUrl</param-name>
- <!-- 将以下地址替换为实际的4A平台统一认证登出地址,样例:http://192.168.1.8/isc_sso/logout -->
- <param-value>http://10.150.2.1:8009/isc_sso/logout</param-value>
- </init-param>
- <init-param>
- <param-name>serverName</param-name>
- <!-- 登出后跳转的地址,一般填业务系统访问地址,样例:http://192.168.1.8:8080/web -->
- <param-value>http://10.150.74.86/nwyj</param-value>
- </init-param>
- </servlet>
- <servlet-mapping>
- <servlet-name>IscSingleSignOutServlet</servlet-name>
- <url-pattern>/signout</url-pattern>
- </servlet-mapping>
-
-
- <servlet>
- <description>模型初始化</description>
- <servlet-name>InitConfig</servlet-name>
- <servlet-class>com.sysmodel.InitConfigServlet</servlet-class>
- <init-param>
- <param-name>Model</param-name>
- <param-value>/WEB-INF/DataModel.xml</param-value>
- </init-param>
- <init-param>
- <param-name>defaultCollection</param-name>
- <param-value>/WEB-INF/PageCollection.xml</param-value>
- </init-param>
- <init-param>
- <param-name>defaultList</param-name>
- <param-value>/WEB-INF/PageList.xml</param-value>
- </init-param>
- <init-param>
- <param-name>defaultPageResouce</param-name>
- <param-value>/WEB-INF/PageResouce.xml</param-value>
- </init-param>
- <init-param>
- <param-name>defaultCSS</param-name>
- <param-value>css.css</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet>
- <servlet-name>CXFServlet</servlet-name>
- <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
- <load-on-startup>3</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>CXFServlet</servlet-name>
- <url-pattern>/ws/*</url-pattern>
- </servlet-mapping>
- <servlet>
- <servlet-name>dwr-invoker</servlet-name>
- <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
- <init-param>
- <param-name>debug</param-name>
- <param-value>false</param-value>
- </init-param>
- <init-param>
- <param-name>logLevel</param-name>
- <param-value>ERROR</param-value>
- </init-param>
- <init-param>
- <param-name>crossDomainSessionSecurity</param-name>
- <param-value>false</param-value>
- </init-param>
- <init-param>
- <param-name>allowScriptTagRemoting</param-name>
- <param-value>true</param-value>
- </init-param>
- <init-param>
- <param-name>classes</param-name>
- <param-value>java.lang.Object</param-value>
- </init-param>
- <!-- 开启反转Ajax 即所谓推技术 -->
- <init-param>
- <param-name>activeReverseAjaxEnabled</param-name>
- <param-value>true</param-value>
- </init-param>
- <!-- <init-param>
- <param-name>activeReverseAjaxEnabled</param-name>
- <param-value>20</param-value>
- </init-param>
- <init-param>
- <param-name>maxWaitingThreads</param-name>
- <param-value>20</param-value>
- </init-param>
- <init-param>
- <param-name>pollAndCometEnabled</param-name>
- <param-value>true</param-value>
- </init-param> -->
- <init-param>
- <param-name>initApplicationScopeCreatorsAtStartup</param-name>
- <param-value>true</param-value>
- </init-param>
- <init-param>
- <param-name>maxWaitAfterWrite</param-name>
- <param-value>1000</param-value>
- </init-param>
- <init-param>
- <param-name>org.directwebremoting.extend.ServerLoadMonitor</param-name>
- <param-value>org.directwebremoting.impl.PollingServerLoadMonitor</param-value>
- </init-param>
- <init-param>
- <param-name>disconnectedTime</param-name>
- <param-value>0</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet>
-
- <servlet>
- <description>系统初始化</description>
- <display-name>InitServlet</display-name>
- <servlet-name>InitServlet</servlet-name>
- <servlet-class>com.sinosoft.lz.system.configer.service.InitServlet</servlet-class>
- <load-on-startup>2</load-on-startup>
- </servlet>
-
- <servlet-mapping>
- <servlet-name>dwr-invoker</servlet-name>
- <url-pattern>/dwr/*</url-pattern>
- </servlet-mapping>
-
- <welcome-file-list>
- <welcome-file>index.jsp</welcome-file>
- </welcome-file-list>
-
- <listener>
- <listener-class>org.springframework.web.context.request.RequestContextListener </listener-class>
- </listener>
- <!-- 消息推送用到,初始化ScriptSessionServlet-->
- <servlet>
- <description>初始化InitScriptSessionServlet</description>
- <display-name>InitScriptSessionServlet</display-name>
- <servlet-name>InitScriptSession</servlet-name>
- <servlet-class>com.system.push.InitScriptSessionServlet</servlet-class>
- <load-on-startup>2</load-on-startup>
- </servlet>
-
- <!--定时任务--><!-- 影响开发暂时注掉 -->
- <servlet>
- <description>初始化InitQuartzTaskServlet</description>
- <display-name>InitQuartzTaskServlet</display-name>
- <servlet-name>InitQuartzTaskServlet</servlet-name>
- <servlet-class>com.sinosoft.common.quartz.InitQuartzTaskServlet</servlet-class>
- <load-on-startup>2</load-on-startup>
- </servlet>
- <!-- 异步上传servlet -->
- <servlet>
- <servlet-name>upload</servlet-name>
- <servlet-class>com.sinosoft.common.uploadify.UploadServlet</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>upload</servlet-name>
- <url-pattern>/Upload</url-pattern>
- </servlet-mapping>
- <!-- 错误页 -->
- <error-page>
- <error-code>404</error-code>
- <location>/page/system/error/404.jsp</location>
- </error-page>
- </web-app>
|