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

Bob Marinier commented on CONFIGURATION-839:
--------------------------------------------

I removed jcl-over-slf4j from my project and everything is working now. It's 
hard to immediately tell if something that used to get logged isn't getting 
logged anymore, or is getting logged to the wrong place, so I'll have to keep 
an eye on it. Also, the removal was not simple. I have a bunch of libraries 
that use apache configuration2, and many of them were using jcl-over-slf4j, and 
in many cases explicitly excluding commons-logging from configuration2 because 
of this. In a couple places I had to reorder dependencies to make sure logging 
1.3.0 was picked up instead of 1.2. In the end I had to touch 17 pom files, but 
it's working and in fact the poms are cleaner now that I don't have to do 
anything special to make configuration2 log over slf4j.

So, I don't think there's anything for you to change code-wise. What I might 
suggest is putting a note somewhere (maybe in the release notes?) indicating 
that jcl-over-slf4j shouldn't be used anymore, because it's not obvious and the 
error messages make it look like something is wrong on your end, even though I 
don't think there is.

Thanks for your help working through this.

> Version 2.10.0 fails java.lang.module.FindException: Module servlet.api not 
> found
> ---------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-839
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-839
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 2.10.0
>            Reporter: Bob Marinier
>            Priority: Major
>             Fix For: 2.10.1
>
>         Attachments: reproducer.zip, reproducer2.zip, reproducer3.zip
>
>
> My system was using apache configuration 2.9.0 without issue. After upgrading 
> to 2.10.0, I get this error at startup:
> {code:java}
> [ERROR] Error occurred during initialization of boot layer
> [ERROR] java.lang.module.FindException: Module servlet.api not found, 
> required by org.apache.commons.configuration2{code}
> I am running on Java 17 on Windows 11. Other than this dependency version 
> change, nothing else about my system has changed. For now I'll go back to 
> 2.9.0, but I'm worried about being able to upgrade in the future.
> My specific java version is:
> {code:java}
> openjdk version "17.0.10" 2024-01-16
> OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7)
> OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, 
> sharing){code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to