> Steinar Bang :
[snip!]
> It's early days so I can't tell for sure if this works everywhere.
> But the first app I tried it on came up like with shiro 1.13, so I have
> hope I can use the upcoming 2.0.1.
I've loaded and run my entire stack of OSGi applications now with a
shiro snapshot
> Jean-Baptiste Onofré :
> Hi Steinar
> I gonna take a look.
Note: I have created a shiro issue for this:
https://github.com/apache/shiro/issues/1500
I have figured out a fairly simple workaround for this problem:
1. Remove the "authc = " line from the main section shiro.ini
[main]
authc = org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter
authc.loginUrl = /login
shiro.unauthorizedUrl = /unauthorized
ie.
> Steinar Bang :
> Shiro tries several classloaders:
>
> https://github.com/apache/shiro/blob/main/lang/src/main/java/org/apache/shiro/lang/util/ClassUtils.java#L153
> The classloaders tried, are:
> 1. Thread.currentThread().getContextClassLoader()
> 2. ClassUtils.class.getClassLoader()
> Steinar Bang :
> Jean-Baptiste Onofré
> :
>> Hi Steinar
>> I gonna take a look.
> Great! Thanks, JB!
Out of curiosity what approaches do you see as possible?
I can just think of two:
1. Extend the INI API to pass the classloader of the calling class as a
parameter
2. Add
> Jean-Baptiste Onofré :
> Hi Steinar
> I gonna take a look.
Great! Thanks, JB!
Hi Steinar
I gonna take a look.
Regards
JB
On Fri, May 24, 2024 at 7:35 PM Steinar Bang wrote:
>
> I get the following stack trace for all Shiro filters:
> https://gist.github.com/steinarb/faa44f384b330ae0259cc051036885db
>
> The error message is:
>
I get the following stack trace for all Shiro filters:
https://gist.github.com/steinarb/faa44f384b330ae0259cc051036885db
The error message is:
org.apache.shiro.config.ConfigurationException: Unable to instantiate class
[org.apache.shiro.web.filter.authc.PassThruAuthenticationFilter] for object