Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
- http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
- version="2.5">
- <!-- Fix for issue JIRA issue APPUI-141 -->
- <session-config>
- <session-timeout>180</session-timeout>
- </session-config>
- <servlet>
- <!-- NOTE: the integration-test profile uses this web.xml. Integration tests only work properly
- with the DefaultBlockingServlet. If you change this setting, make a backup of this web.xml
- (perhaps under src/integration-test-settings/web.xml and alter the integration-test
- profile in pom.xml to use that. -->
- <servlet-name>ErraiServlet</servlet-name>
- <servlet-class>org.jboss.errai.bus.server.servlet.DefaultBlockingServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>ErraiServlet</servlet-name>
- <url-pattern>*.erraiBus</url-pattern>
- </servlet-mapping>
- <listener>
- <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
- </listener>
- <listener>
- <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
- </listener>
- <filter>
- <filter-name>ShiroFilter</filter-name>
- <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>ShiroFilter</filter-name>
- <url-pattern>/*</url-pattern>
- <dispatcher>REQUEST</dispatcher>
- <dispatcher>FORWARD</dispatcher>
- <dispatcher>INCLUDE</dispatcher>
- <dispatcher>ERROR</dispatcher>
- </filter-mapping>
- <context-param>
- <param-name>shiroConfigLocations</param-name>
- <param-value>classpath:shiro.ini</param-value>
- </context-param>
- <resource-env-ref>
- <description>Object factory for the CDI Bean Manager</description>
- <resource-env-ref-name>BeanManager</resource-env-ref-name>
- <resource-env-ref-type>javax.enterprise.inject.spi.BeanManager</resource-env-ref-type>
- </resource-env-ref>
- <resource-env-ref>
- <description>Object factory for the Errai Service</description>
- <resource-env-ref-name>ErraiService</resource-env-ref-name>
- <resource-env-ref-type>org.jboss.errai.bus.server.service.ErraiService</resource-env-ref-type>
- </resource-env-ref>
- <context-param>
- <param-name>errai.properties</param-name>
- <param-value>/WEB-INF/errai.properties</param-value>
- </context-param>
- <context-param>
- <param-name>login.config</param-name>
- <param-value>/WEB-INF/login.config</param-value>
- </context-param>
- <context-param>
- <param-name>users.properties</param-name>
- <param-value>/WEB-INF/users.properties</param-value>
- </context-param>
- </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement