mirror of
https://github.com/wisemapping/wisemapping-open-source.git
synced 2025-04-07 22:24:29 +08:00
129 lines
4.3 KiB
XML
129 lines
4.3 KiB
XML
|
<?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">
|
||
|
|
||
|
<context-param>
|
||
|
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
|
||
|
<param-value>messages</param-value>
|
||
|
</context-param>
|
||
|
|
||
|
<context-param>
|
||
|
<param-name>contextConfigLocation</param-name>
|
||
|
<param-value>
|
||
|
/WEB-INF/wisemapping-security.xml
|
||
|
/WEB-INF/wisemapping-dao.xml
|
||
|
/WEB-INF/wisemapping-service.xml
|
||
|
/WEB-INF/wisemapping-model.xml
|
||
|
/WEB-INF/wisemapping-servlet.xml
|
||
|
/WEB-INF/wisemapping-captcha.xml
|
||
|
/WEB-INF/wisemapping-acegi-security.xml
|
||
|
</param-value>
|
||
|
</context-param>
|
||
|
|
||
|
<!--
|
||
|
- Loads the root application context of this web app at startup.
|
||
|
- The application context is then available via
|
||
|
- WebApplicationContextUtils.getWebApplicationContext(servletContext).
|
||
|
-->
|
||
|
<listener>
|
||
|
<listener-class>com.wisemapping.service.HibernateAppListener</listener-class>
|
||
|
</listener>
|
||
|
|
||
|
|
||
|
<filter>
|
||
|
<filter-name>charsetFilter</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>charsetFilter</filter-name>
|
||
|
<url-pattern>/*</url-pattern>
|
||
|
</filter-mapping>
|
||
|
<filter>
|
||
|
<filter-name>hibernate</filter-name>
|
||
|
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
|
||
|
<init-param>
|
||
|
<param-name>singleSession</param-name>
|
||
|
<param-value>true</param-value>
|
||
|
</init-param>
|
||
|
<init-param>
|
||
|
<param-name>sessionFactoryBeanName</param-name>
|
||
|
<param-value>mindmapSessionFactory</param-value>
|
||
|
</init-param>
|
||
|
</filter>
|
||
|
<filter>
|
||
|
<filter-name>Acegi Filter Chain Proxy</filter-name>
|
||
|
<filter-class>org.acegisecurity.util.FilterToBeanProxy</filter-class>
|
||
|
<init-param>
|
||
|
<param-name>targetClass</param-name>
|
||
|
<param-value>org.acegisecurity.util.FilterChainProxy</param-value>
|
||
|
</init-param>
|
||
|
</filter>
|
||
|
|
||
|
<filter-mapping>
|
||
|
<filter-name>Acegi Filter Chain Proxy</filter-name>
|
||
|
<url-pattern>/*</url-pattern>
|
||
|
</filter-mapping>
|
||
|
|
||
|
<filter-mapping>
|
||
|
<filter-name>hibernate</filter-name>
|
||
|
<url-pattern>/*</url-pattern>
|
||
|
</filter-mapping>
|
||
|
|
||
|
<listener>
|
||
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
||
|
</listener>
|
||
|
|
||
|
<servlet>
|
||
|
<servlet-name>wisemapping</servlet-name>
|
||
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
||
|
<load-on-startup>1</load-on-startup>
|
||
|
</servlet>
|
||
|
|
||
|
<servlet>
|
||
|
<servlet-name>dwr-invoker</servlet-name>
|
||
|
<servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
|
||
|
<init-param>
|
||
|
<param-name>debug</param-name>
|
||
|
<param-value>true</param-value>
|
||
|
</init-param>
|
||
|
</servlet>
|
||
|
|
||
|
<servlet-mapping>
|
||
|
<servlet-name>wisemapping</servlet-name>
|
||
|
<url-pattern>*.htm</url-pattern>
|
||
|
</servlet-mapping>
|
||
|
|
||
|
<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>
|
||
|
<session-config>
|
||
|
<session-timeout>180</session-timeout>
|
||
|
</session-config>
|
||
|
|
||
|
|
||
|
<!-- This should be revired -->
|
||
|
<!--<resource-ref>-->
|
||
|
<!--<res-ref-name>jdbc/wisemapping</res-ref-name>-->
|
||
|
<!--<res-type>javax.sql.DataSource</res-type>-->
|
||
|
<!--<res-auth>Container</res-auth>-->
|
||
|
<!--</resource-ref>-->
|
||
|
</web-app>
|