Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-839

Version 2.10.0 fails java.lang.module.FindException: Module servlet.api not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.0
    • 2.10.1
    • None
    • None

    Description

      My system was using apache configuration 2.9.0 without issue. After upgrading to 2.10.0, I get this error at startup:

      [ERROR] Error occurred during initialization of boot layer
      [ERROR] java.lang.module.FindException: Module servlet.api not found, required by org.apache.commons.configuration2

      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:

      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)

       

      Attachments

        1. reproducer.zip
          3 kB
          Bob Marinier
        2. reproducer2.zip
          3 kB
          Bob Marinier
        3. reproducer3.zip
          3 kB
          Bob Marinier

        Activity

          People

            Unassigned Unassigned
            bob.marinier Bob Marinier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: