Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing resource for Testcontainers #554

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 29, 2024

  1. Missing resource for Testcontainers

    Testcontainers uses `ResourceReaper.class` as a resource. When I run testcontainers with GraalVM I get following exception:
    ```
    Caused by: java.lang.IllegalArgumentException: Resource with path 
    org/testcontainers/utility/ResourceReaper.class 
    could not be found on any of these classloaders: 
    [jdk.internal.loader.ClassLoaders$AppClassLoader@2f7c7260]
      org.testcontainers.utility.MountableFile.getClasspathResource(MountableFile.java:158)
      org.testcontainers.utility.MountableFile.forClasspathResource(MountableFile.java:103)
      org.testcontainers.utility.MountableFile.forClasspathResource(MountableFile.java:72)
      org.testcontainers.DockerClientFactory.checkMountableFile(DockerClientFactory.java:274)
      org.testcontainers.DockerClientFactory.isFileMountingSupported(DockerClientFactory.java:97)
      [...]
    ```
    
    It starts here:
    https://github.com/testcontainers/testcontainers-java/blob/main/core/src/main/java/org/testcontainers/DockerClientFactory.java#L288
    wyhasany authored Oct 29, 2024
    Configuration menu
    Copy the full SHA
    41d5775 View commit details
    Browse the repository at this point in the history