shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sven Redelin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SHIRO-610) Incorrect filterchainResolver in 1.4.0-RC2
Date Thu, 08 Jun 2017 06:33:18 GMT

    [ https://issues.apache.org/jira/browse/SHIRO-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042281#comment-16042281
] 

Sven Redelin commented on SHIRO-610:
------------------------------------

I did the following configuration in web.xml
{code}
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
	id="WebApp_ID" version="3.0">
	<display-name>MyApplication</display-name>
	<listener>
		<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
	</listener>
	<context-param>
		<param-name>shiroEnvironmentClass</param-name>
		<param-value>org.apache.shiro.web.env.IniWebEnvironment</param-value>
	</context-param>
	<context-param>
		<param-name>shiroConfigLocations</param-name>
		<param-value>WEB-INF/classes/shiro.ini</param-value>
	</context-param>
	<context-param>
		<description>UI expiration after 10 minutes</description>
		<param-name>heartbeatInterval</param-name>
		<param-value>600</param-value>
	</context-param>
	<context-param>
		<description>Enable Session Timeout : UIs and the session are closed after session-timeout
expires after the 
			last non-heartbeat request</description>
		<param-name>closeIdleSessions</param-name>
		<param-value>true</param-value>
	</context-param>
	<filter>
		<filter-name>shiroFilter</filter-name>
		<filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
		<!-- init-param> <param-name>targetFilterLifecycle</param-name> <param-value>true</param-value>

			</init-param -->
	</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>

	<session-config>
		<session-timeout>480</session-timeout>
	</session-config>
</web-app>
{code}


> Incorrect filterchainResolver in 1.4.0-RC2
> ------------------------------------------
>
>                 Key: SHIRO-610
>                 URL: https://issues.apache.org/jira/browse/SHIRO-610
>             Project: Shiro
>          Issue Type: Bug
>    Affects Versions: 1.4.0-RC2
>            Reporter: John D. Ament
>
> Caused by: org.apache.shiro.env.RequiredTypeException: Object named 'filterChainResolver'
is not of required type [org.apache.shiro.web.filter.mgt.FilterChainResolver]
> This happens OOTB when using DefaultWebEnvironment.  The actual type is a IniFilterChainResolverFactory



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message