Missing JARs for cog-s3 plugin in assembly.xml

Hi all,

We are using the cog-s3 plugin and we noticed that after updating to GeoServer version 2.26.0 the cog-s3 plugin throws a java.lang.NoClassDefFoundError exception. We could track down the error to an updated AWS SDK version in the new imageio-ext cog plugin version 1.4.13. The updated AWS SDK requires additional JARs which need to be added to assembly process for the cog-s3 plugin. The following 4 JARs are missing:

  • json-utils-2.*.jar
  • retries-2.*.jar
  • retries-spi-2.*.jar
  • third-party-jackson-core-2.*.jar

What would be the process to update the assembly.xml (src/community/cog/cog-s3/src/assembly/assembly.xml) file to add these JARs to the list of includes?

Thanks
Marc

Hi,
if you’ve identified the needed jars already, please make a pull request against the assembly file:
https://github.com/geoserver/geoserver/blob/main/src/community/cog/cog-s3/src/assembly/assembly.xml

I’m guessing this is the upgrade the caused the issue… or are you making a “large jump” and upgrading from an even
older version of GeoServer? (the SDK was updated for 2.26.0, but also sometimes in 2023)
https://github.com/geosolutions-it/imageio-ext/pull/311

Thanks Andrea, I will create a pull request. And yes, the AWS SDK upgrade from 2.24.13 to 2.27.23 in https://github.com/geosolutions-it/imageio-ext/pull/311 introduced the issue. We noticed this issue when we upgraded GeoServer from 2.25.2 to 2.26.0.

1 Like