Closed m-ignatov closed 3 months ago
Shiro 2.0.0 introduced a regression from 1.x where it made commons-configuration2
mandatory.
See https://github.com/apache/shiro/issues/1352 for more details.
Shiro 2.0.1 made commons-configuration2
optional again.
You need to include the following in your maven pom:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-configuration2</artifactId>
<version>2.11.0</version>
</dependency>
Above should fix your issue.
Feel free to reopen if this doesn't solve your problem
Search before asking
Environment
JDK 21 Apache TomEE Docker
Shiro version
Shiro BOM 2.0.1, javax namespace
What was the actual outcome?
An exception occurs during application startup:
The object with id [{LDAP_USER_DN_TEMPLATE}] has not yet been defined and therefore cannot be referenced. Please ensure objects are defined in the order in which they should be created and made available for future reference.
FYI, Shiro 2.0.0 works fine, the issue comes with 2.0.1.
What was the expected outcome?
Application starts up normally with the env vars populated into the LDAP realm.
How to reproduce
Setting singleton security manager:
Debug logs