Advertisement
Guest User

web.xml

a guest
Dec 5th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <web-app xmlns="http://java.sun.com/xml/ns/javaee"
  3.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  5.           http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  6.         version="2.5">
  7.  
  8.     <!-- Fix for issue JIRA issue APPUI-141 -->
  9.     <session-config>
  10.         <session-timeout>180</session-timeout>
  11.     </session-config>
  12.  
  13.     <servlet>
  14.  
  15.         <!-- NOTE: the integration-test profile uses this web.xml. Integration tests only work properly
  16.             with the DefaultBlockingServlet. If you change this setting, make a backup of this web.xml
  17.             (perhaps under src/integration-test-settings/web.xml and alter the integration-test
  18.             profile in pom.xml to use that. -->
  19.         <servlet-name>ErraiServlet</servlet-name>
  20.         <servlet-class>org.jboss.errai.bus.server.servlet.DefaultBlockingServlet</servlet-class>
  21.         <load-on-startup>1</load-on-startup>
  22.     </servlet>
  23.  
  24.     <servlet-mapping>
  25.         <servlet-name>ErraiServlet</servlet-name>
  26.         <url-pattern>*.erraiBus</url-pattern>
  27.     </servlet-mapping>
  28.  
  29.     <listener>
  30.         <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
  31.     </listener>
  32.    
  33.     <listener>
  34.         <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
  35.     </listener>
  36.  
  37.     <filter>
  38.         <filter-name>ShiroFilter</filter-name>
  39.         <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
  40.     </filter>
  41.  
  42.     <filter-mapping>
  43.         <filter-name>ShiroFilter</filter-name>
  44.         <url-pattern>/*</url-pattern>
  45.         <dispatcher>REQUEST</dispatcher>
  46.         <dispatcher>FORWARD</dispatcher>
  47.         <dispatcher>INCLUDE</dispatcher>
  48.         <dispatcher>ERROR</dispatcher>
  49.     </filter-mapping>
  50.  
  51.     <context-param>
  52.         <param-name>shiroConfigLocations</param-name>
  53.         <param-value>classpath:shiro.ini</param-value>
  54.     </context-param>
  55.  
  56.     <resource-env-ref>
  57.         <description>Object factory for the CDI Bean Manager</description>
  58.         <resource-env-ref-name>BeanManager</resource-env-ref-name>
  59.         <resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
  60.     </resource-env-ref>
  61.  
  62.     <resource-env-ref>
  63.         <description>Object factory for the Errai Service</description>
  64.         <resource-env-ref-name>ErraiService</resource-env-ref-name>
  65.         <resource-env-ref-type>org.jboss.errai.bus.server.service.ErraiService</resource-env-ref-type>
  66.     </resource-env-ref>
  67.  
  68.     <context-param>
  69.         <param-name>errai.properties</param-name>
  70.         <param-value>/WEB-INF/errai.properties</param-value>
  71.     </context-param>
  72.  
  73.     <context-param>
  74.         <param-name>login.config</param-name>
  75.         <param-value>/WEB-INF/login.config</param-value>
  76.     </context-param>
  77.  
  78.     <context-param>
  79.         <param-name>users.properties</param-name>
  80.         <param-value>/WEB-INF/users.properties</param-value>
  81.     </context-param>
  82.  
  83. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement