123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
- <display-name>Central Authentication System (CAS) 3.0</display-name>
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>
- /WEB-INF/applicationContext.xml,
- /WEB-INF/deployerConfigContext.xml
- </param-value>
- </context-param>
- <context-param>
- <param-name>com.kingdee.eas.portal.defaultLanguage</param-name>
- <param-value>L2</param-value>
- </context-param>
- <!--
- place this into the contextConfigLocation to enable
- service restrictions.
- /WEB-INF/approvedServices.xml,
-
- place this into the contextConfigLocation to enable remote services
- /WEB-INF/remoteServices.xml,
- classpath:org/codehaus/xfire/spring/xfire.xml
-
- place this into the contextConfigLocation to enable the event publishing
- /WEB-INF/auditTrailContext.xml,
- -->
- <!--
- - Location of the Log4J config file, for initialization and refresh checks.
- - Applied by Log4jConfigListener.
- -->
- <context-param>
- <param-name>log4jConfigLocation</param-name>
- <param-value>classpath:log4j.properties</param-value>
- </context-param>
-
- <context-param>
- <param-name>log4jExposeWebAppRoot</param-name>
- <param-value>false</param-value>
- </context-param>
-
- <filter>
- <filter-name>Set Character Encoding Filter</filter-name>
- <filter-class>com.kingdee.eas.cp.common.web.filters.SetCharacterEncodingFilter</filter-class>
- <init-param>
- <param-name>encoding</param-name>
- <param-value>UTF-8</param-value>
- </init-param>
- <init-param>
- <param-name>ignore</param-name>
- <param-value>true</param-value>
- </init-param>
- </filter>
- <filter>
- <filter-name>SSO CacheResource Filter</filter-name>
- <filter-class>com.kingdee.eas.cp.eip.sso.web.cache.SSOCacheResourceFilter</filter-class>
- </filter>
-
- <filter-mapping>
- <filter-name>Set Character Encoding Filter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>SSO CacheResource Filter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <!--
- - Configures Log4J for this web app.
- - As this context specifies a context-param "log4jConfigLocation", its file path
- - is used to load the Log4J configuration, including periodic refresh checks.
- -
- - Would fall back to default Log4J initialization (non-refreshing) if no special
- - context-params are given.
- -
- - Exports a "web app root key", i.e. a system property that specifies the root
- - directory of this web app, for usage in log file paths.
- - This web app specifies "cas.root" (see log4j.properties file).
- -->
- <!-- Leave the listener commented-out if using JBoss -->
- <!-- apusic have contained common log
- <listener>
- <listener-class>
- org.springframework.web.util.Log4jConfigListener
- </listener-class>
- </listener>
- -->
- <!--
- - Loads the CAS ApplicationContext.
- - The deployer choice here is how to handle Throwables thrown by Spring's
- - ContextLoaderListener. The Spring ContextLoaderListener will throw an exception when the
- - application context cannot be loaded, say because the bean XML files are not valid XML or do not
- - refer to real classes and properties or because a bean configured via Spring throws an exception
- - at construction, property setting, or on an afterPropertiesSet() lifecycle method.
- -
- - If you'd like these errors to be fatal and prevent the CAS servlet context from loading at all,
- - use org.springframework.web.context.ContextLoaderListener.
- -
- - If you'd like these errors to result in all requests for CAS getting a "CAS is Unavailable" response,
- - use org.jasig.cas.web.init.SafeContextLoaderListener.
- - for all requests.
- -->
- <listener>
- <listener-class>
- org.jasig.cas.web.init.SafeContextLoaderListener
- </listener-class>
- </listener>
- <!--
- - This is the Spring dispatcher servlet which delegates all requests to the
- - Spring WebMVC controllers as configured in cas-servlet.xml.
- -
- - The choice made above about how to handle a broken ApplicationContext at
- - context initialization applies here as well, sicne this servlet is load-on-startup.
- -
- - If you'd like these errors to be fatal and prevent the CAS servlet from loading at all,
- - use org.springframework.web.servlet.DispatcherServlet.
- -
- - If you'd like these errors to result in all requests for CAS getting a "CAS is Unavailable" response,
- - use org.jasig.cas.web.init.SafeDispatcherServlet for all requests serviced by this servlet.
- -->
-
- <servlet>
- <servlet-name>cas</servlet-name>
- <servlet-class>
- org.jasig.cas.web.init.SafeDispatcherServlet
- </servlet-class>
- <init-param>
- <param-name>publishContext</param-name>
- <param-value>false</param-value>
- </init-param>
- </servlet>
- <servlet>
- <servlet-name>action</servlet-name>
- <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <!--login form start-->
- <!--servlet>
- <servlet-name>Struts Action</servlet-name>
- <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
- <init-param>
- <param-name>config</param-name>
- <param-value>/WEB-INF/struts-config.xml</param-value>
- </init-param>
- <load-on-startup>1</load-on-startup>
- </servlet-->
- <!--login form end-->
-
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/login</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/logout</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/validate</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/serviceValidate</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/proxy</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/proxyValidate</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>cas</servlet-name>
- <url-pattern>/CentralAuthenticationService</url-pattern>
- </servlet-mapping>
- <session-config>
- <!-- Default to 5 minute session timeouts -->
- <session-timeout>5</session-timeout>
- </session-config>
- <error-page>
- <exception-type>org.springframework.context.ApplicationContextException</exception-type>
- <location>/WEB-INF/view/jsp/brokenContext.jsp</location>
- </error-page>
- <error-page>
- <exception-type>java.lang.Exception</exception-type>
- <location>/WEB-INF/view/jsp/errors.jsp</location>
- </error-page>
- <error-page>
- <error-code>404</error-code>
- <location>/</location>
- </error-page>
-
- <jsp-config>
- <taglib>
- <taglib-uri>/WEB-INF/tld/struts-bean.tld</taglib-uri>
- <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
- </taglib>
- <taglib>
- <taglib-uri>/WEB-INF/tld/struts-html.tld</taglib-uri>
- <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
- </taglib>
-
- <taglib>
- <taglib-uri>http://www.springframework.org/tags</taglib-uri>
- <taglib-location>/WEB-INF/tld/spring.tld</taglib-location>
- </taglib>
- <taglib>
- <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
- <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
- </taglib>
- <taglib>
- <taglib-uri>http://java.sun.com/jsp/jstl/functions</taglib-uri>
- <taglib-location>/WEB-INF/tld/fn.tld</taglib-location>
- </taglib>
- </jsp-config>
- </web-app>
|