2012-02-12 02:55:42 -03:00
|
|
|
<?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">
|
|
|
|
|
2013-03-07 23:46:07 -03:00
|
|
|
<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>
|
|
|
|
</filter>
|
|
|
|
|
2012-09-16 20:02:08 -03:00
|
|
|
<distributable/>
|
2013-03-07 23:46:07 -03:00
|
|
|
|
2012-02-12 02:55:42 -03:00
|
|
|
<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-aop.xml
|
|
|
|
/WEB-INF/wisemapping-dao.xml
|
|
|
|
/WEB-INF/wisemapping-service.xml
|
|
|
|
/WEB-INF/wisemapping-model.xml
|
|
|
|
/WEB-INF/wisemapping-security.xml
|
|
|
|
</param-value>
|
|
|
|
</context-param>
|
|
|
|
|
2013-02-17 23:10:04 -03:00
|
|
|
<context-param>
|
|
|
|
<param-name>contextInitializerClasses</param-name>
|
|
|
|
<param-value>com.wisemapping.webmvc.ApplicationContextInitializer</param-value>
|
|
|
|
</context-param>
|
|
|
|
|
2012-02-12 02:55:42 -03:00
|
|
|
|
|
|
|
<!--
|
|
|
|
- Loads the root application context of this web app at startup.
|
|
|
|
- The application context is then available via
|
|
|
|
- WebApplicationContextUtils.getWebApplicationContext(servletContext).
|
|
|
|
-->
|
2013-02-17 21:00:08 -03:00
|
|
|
|
2012-02-12 02:55:42 -03:00
|
|
|
<listener>
|
|
|
|
<listener-class>com.wisemapping.service.HibernateAppListener</listener-class>
|
|
|
|
</listener>
|
2013-04-07 12:27:45 -03:00
|
|
|
<listener>
|
|
|
|
<listener-class>com.wisemapping.listener.UnlockOnExpireListener</listener-class>
|
|
|
|
</listener>
|
2012-02-12 02:55:42 -03:00
|
|
|
|
|
|
|
<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>
|
2012-02-12 21:57:11 -03:00
|
|
|
|
2012-02-12 02:55:42 -03:00
|
|
|
<filter>
|
|
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
|
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<filter-mapping>
|
|
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
|
|
|
<url-pattern>/*</url-pattern>
|
|
|
|
</filter-mapping>
|
|
|
|
|
|
|
|
<filter-mapping>
|
|
|
|
<filter-name>hibernate</filter-name>
|
|
|
|
<url-pattern>/*</url-pattern>
|
|
|
|
</filter-mapping>
|
|
|
|
|
2012-02-12 21:57:11 -03:00
|
|
|
<filter-mapping>
|
|
|
|
<filter-name>charsetFilter</filter-name>
|
|
|
|
<url-pattern>/*</url-pattern>
|
|
|
|
</filter-mapping>
|
|
|
|
|
|
|
|
|
2012-02-12 02:55:42 -03:00
|
|
|
<listener>
|
|
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
|
|
</listener>
|
|
|
|
|
|
|
|
<servlet>
|
|
|
|
<servlet-name>mvc-servlet</servlet-name>
|
|
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
|
|
<init-param>
|
|
|
|
<param-name>contextConfigLocation</param-name>
|
|
|
|
<param-value>
|
2012-06-20 13:28:45 -03:00
|
|
|
/WEB-INF/wisemapping-servlet.xml
|
2012-02-12 02:55:42 -03:00
|
|
|
</param-value>
|
|
|
|
</init-param>
|
2012-07-12 20:59:01 -03:00
|
|
|
<load-on-startup>1</load-on-startup>
|
2012-02-12 02:55:42 -03:00
|
|
|
</servlet>
|
|
|
|
|
|
|
|
<servlet>
|
|
|
|
<servlet-name>mvc-rest</servlet-name>
|
|
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
|
|
|
<init-param>
|
|
|
|
<param-name>contextConfigLocation</param-name>
|
|
|
|
<param-value>
|
|
|
|
/WEB-INF/wisemapping-rest.xml
|
|
|
|
</param-value>
|
|
|
|
</init-param>
|
2012-07-12 20:59:01 -03:00
|
|
|
<load-on-startup>1</load-on-startup>
|
2012-02-12 02:55:42 -03:00
|
|
|
</servlet>
|
|
|
|
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>mvc-servlet</servlet-name>
|
2012-06-03 11:16:38 -03:00
|
|
|
<url-pattern>/c/*</url-pattern>
|
2012-02-12 02:55:42 -03:00
|
|
|
</servlet-mapping>
|
|
|
|
|
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>mvc-rest</servlet-name>
|
|
|
|
<url-pattern>/service/*</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
|
2012-11-10 17:19:28 -03:00
|
|
|
<servlet-mapping>
|
|
|
|
<servlet-name>mvc-rest</servlet-name>
|
|
|
|
<url-pattern>/c/restful/*</url-pattern>
|
|
|
|
</servlet-mapping>
|
|
|
|
|
2012-02-12 02:55:42 -03:00
|
|
|
<welcome-file-list>
|
|
|
|
<welcome-file>
|
|
|
|
index.jsp
|
|
|
|
</welcome-file>
|
|
|
|
</welcome-file-list>
|
|
|
|
<session-config>
|
|
|
|
<session-timeout>180</session-timeout>
|
|
|
|
</session-config>
|
2009-06-07 18:59:43 +00:00
|
|
|
</web-app>
|