[
https://issues.apache.org/jira/browse/SHIRO-610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16042281#comment-16042281
]
Sven Redelin edited comment on SHIRO-610 at 6/8/17 6:33 AM:
------------------------------------------------------------
I did the following configuration in web.xml, but still have the same error...
Have you got any hint of fixing the issue, will have a look as well in my shiro
fork ;)
{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}
was (Author: sredelin):
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)