[jira] [Comment Edited] (SHIRO-610) Incorrect filterchainResolver in 1.4.0-RC2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (SHIRO-610) Incorrect filterchainResolver in 1.4.0-RC2

JIRA jira@apache.org

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

Sven Redelin edited comment on SHIRO-610 at 6/7/17 1:46 PM:
------------------------------------------------------------

+1
no helpful comments of developers?
I am using following components
* payara-micro-4.1.2.172
* shiro-all:1.4.0
* com.vaading:8.0.6
* hibernate-core:5.2.10.Final

and got following exception while registering shiro in application
{code}
payara-micro_1  | [2017-06-07T13:28:41.820+0000] [] [SEVERE] [] [javax.enterprise.web] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1496842121820] [levelValue: 1000] [[
payara-micro_1  |   WebModule[]Exception starting filter shiroFilter
payara-micro_1  | java.lang.InstantiationException
payara-micro_1  |       at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:127)
payara-micro_1  |       at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4900)
payara-micro_1  |       at org.apache.catalina.core.StandardContext.start(StandardContext.java:5545)
payara-micro_1  |       at com.sun.enterprise.web.WebModule.start(WebModule.java:522)
payara-micro_1  |       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
payara-micro_1  |       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:900)
payara-micro_1  |       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:684)
payara-micro_1  |       at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2057)
payara-micro_1  |       at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1703)
payara-micro_1  |       at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107)
payara-micro_1  |       at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122)
payara-micro_1  |       at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291)
payara-micro_1  |       at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:353)
payara-micro_1  |       at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:501)
payara-micro_1  |       at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:220)
payara-micro_1  |       at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:487)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
payara-micro_1  |       at java.security.AccessController.doPrivileged(Native Method)
payara-micro_1  |       at javax.security.auth.Subject.doAs(Subject.java:360)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557)
payara-micro_1  |       at java.security.AccessController.doPrivileged(Native Method)
payara-micro_1  |       at javax.security.auth.Subject.doAs(Subject.java:360)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
payara-micro_1  |       at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
payara-micro_1  |       at com.sun.enterprise.admin.cli.embeddable.DeployerImpl.deploy(DeployerImpl.java:134)
payara-micro_1  |       at fish.payara.micro.impl.PayaraMicroImpl.deployAll(PayaraMicroImpl.java:1365)
payara-micro_1  |       at fish.payara.micro.impl.PayaraMicroImpl.bootStrap(PayaraMicroImpl.java:985)
payara-micro_1  |       at fish.payara.micro.impl.PayaraMicroImpl.main(PayaraMicroImpl.java:181)
payara-micro_1  |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
payara-micro_1  |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
payara-micro_1  |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
payara-micro_1  |       at java.lang.reflect.Method.invoke(Method.java:498)
payara-micro_1  |       at fish.payara.micro.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
payara-micro_1  |       at fish.payara.micro.boot.loader.Launcher.launch(Launcher.java:107)
payara-micro_1  |       at fish.payara.micro.boot.loader.Launcher.launch(Launcher.java:70)
payara-micro_1  |       at fish.payara.micro.boot.PayaraMicroLauncher.main(PayaraMicroLauncher.java:79)
payara-micro_1  |       at fish.payara.micro.PayaraMicro.main(PayaraMicro.java:358)
payara-micro_1  | Caused by: javax.servlet.ServletException: org.apache.shiro.env.RequiredTypeException: Object named 'filterChainResolver' is not of required type [org.apache.shiro.web.filter.mgt.FilterChainResolver].
payara-micro_1  |       at org.apache.shiro.web.servlet.AbstractFilter.init(AbstractFilter.java:105)
payara-micro_1  |       at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:267)
payara-micro_1  |       at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:123)
payara-micro_1  |       ... 42 more
payara-micro_1  | Caused by: org.apache.shiro.env.RequiredTypeException: Object named 'filterChainResolver' is not of required type [org.apache.shiro.web.filter.mgt.FilterChainResolver].
payara-micro_1  |       at org.apache.shiro.env.DefaultEnvironment.getObject(DefaultEnvironment.java:150)
payara-micro_1  |       at org.apache.shiro.web.env.DefaultWebEnvironment.getFilterChainResolver(DefaultWebEnvironment.java:45)
payara-micro_1  |       at org.apache.shiro.web.servlet.ShiroFilter.init(ShiroFilter.java:77)
payara-micro_1  |       at org.apache.shiro.web.servlet.AbstractShiroFilter.onFilterConfigSet(AbstractShiroFilter.java:152)
payara-micro_1  |       at org.apache.shiro.web.servlet.AbstractFilter.init(AbstractFilter.java:97)
payara-micro_1  |       ... 44 more
payara-micro_1  | ]]
{code}


was (Author: sredelin):
+1
no helpful comments of developers?
I am using following components
* payara-micro-4.1.2.172
* shiro-all:1.4.0
* com.vaading:8.0.6
* hibernate-core:5.2.10.Final

and got following exception while registering shiro in application
{code}

{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)