diff --git a/extensions/jdbc/jdbc-oracle/deployment/src/main/java/io/quarkus/jdbc/oracle/deployment/OracleMetadataOverrides.java b/extensions/jdbc/jdbc-oracle/deployment/src/main/java/io/quarkus/jdbc/oracle/deployment/OracleMetadataOverrides.java index 7184b831e61734..1a5405cdb68e99 100644 --- a/extensions/jdbc/jdbc-oracle/deployment/src/main/java/io/quarkus/jdbc/oracle/deployment/OracleMetadataOverrides.java +++ b/extensions/jdbc/jdbc-oracle/deployment/src/main/java/io/quarkus/jdbc/oracle/deployment/OracleMetadataOverrides.java @@ -155,6 +155,12 @@ RemovedResourceBuildItem enhancedCharsetSubstitutions() { Collections.singleton("oracle/nativeimage/CharacterSetFeature.class")); } + @BuildStep + RemovedResourceBuildItem removeJndiSupport() { + return new RemovedResourceBuildItem(ArtifactKey.fromString("com.oracle.database.jdbc:ojdbc11"), + Collections.singleton("oracle/net/jndi/JndiAttrs.class")); + } + @BuildStep NativeImageResourceBundleBuildItem additionalResourceBundles() { return new NativeImageResourceBundleBuildItem("oracle.net.mesg.NetErrorMessages");