Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 2.36 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. RESTEasy Asynchronous HTTP with Spring MVC
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  4. <display-name>myapp</display-name>
  5. <description>My App</description>
  6.  
  7.     <context-param>
  8.         <param-name>log4jConfigLocation</param-name>
  9.         <param-value>classpath:log4j.properties</param-value>
  10.     </context-param>
  11.  
  12.     <context-param>
  13.         <param-name>webAppRootKey</param-name>
  14.         <param-value>myapp.root</param-value>
  15.     </context-param>
  16.  
  17.     <context-param>
  18.         <param-name>contextConfigLocation</param-name>
  19.         <param-value>classpath:applicationContext.xml</param-value>
  20.     </context-param>
  21.  
  22.     <context-param>
  23.         <param-name>resteasy.scan</param-name>
  24.         <param-value>true</param-value>
  25.     </context-param>
  26.  
  27.     <filter>
  28.        <filter-name>TrustedIPFilter</filter-name>
  29.        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
  30.     </filter>
  31.     <filter-mapping>
  32.         <filter-name>TrustedIPFilter</filter-name>
  33.         <url-pattern>/*</url-pattern>
  34.     </filter-mapping>
  35.  
  36.     <filter>
  37.         <filter-name>UrlRewriteFilter</filter-name>
  38.         <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
  39.     </filter>    
  40.     <filter-mapping>
  41.         <filter-name>UrlRewriteFilter</filter-name>
  42.         <url-pattern>/*</url-pattern>
  43.     </filter-mapping>    
  44.  
  45.     <listener>
  46.         <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  47.     </listener>
  48.  
  49.     <listener>
  50.         <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  51.     </listener>
  52.  
  53.     <servlet>
  54.        <servlet-name>PollServlet</servlet-name>
  55.        <servlet-class>org.jboss.resteasy.plugins.server.servlet.Tomcat6CometDispatcherServlet</servlet-class>
  56.     </servlet>
  57.     <servlet-mapping>
  58.         <servlet-name>PollServlet</servlet-name>
  59.         <url-pattern>/poll/*</url-pattern>
  60.     </servlet-mapping>
  61.  
  62.     <welcome-file-list>
  63.         <welcome-file>index.jsp</welcome-file>
  64.     </welcome-file-list>
  65.  
  66.     <error-page>
  67.         <exception-type>java.lang.Exception</exception-type>
  68.         <location>/WEB-INF/jsp/uncaughtException.jsp</location>
  69.     </error-page>
  70.  
  71. </web-app>