Failed to load a directory resource that exists in classpath root.

Solution Unverified - Updated -

Issue

Failed to load a directory from a classpath root when build as a fast-jar (default) with Quarkus 2.2.x.

Thread.currentThread().getContextClassLoader().getResource("<a directory that exists in classpath root>");

It returns null even though the directory exists.

It worked with Quarkus 1.11.x.

Environment

  • Red Hat Build of Quarkus (RHBQ)
    • 2.2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content