gpt4 book ai didi

quarkus - 如何修复 quarkus 原生镜像中的 'org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException'

转载 作者:行者123 更新时间:2023-12-02 14:25:36 26 4
gpt4 key购买 nike

我正在构建一个与亚马逊SSM集成的maven多模块项目,当我在JVM模式下运行时一切正常。但是当我生成 native 图像时发生错误

org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl (Caused by java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl)

我已经尝试过这个配置

[
{
"name" : "org.apache.commons.logging.impl.LogFactoryImpl",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
}
]

我的 pom.xml native 配置文件

                        <executions>
<execution>
<goals>
<goal>native-image</goal>
</goals>
<configuration>
<enableHttpUrlHandler>true</enableHttpUrlHandler>
<enableHttpsUrlHandler>true</enableHttpsUrlHandler>
<additionalBuildArgs>
<additionalBuildArg>
-H:ReflectionConfigurationFiles=${project.basedir}/reflection-config.json
</additionalBuildArg>
</additionalBuildArgs>
</configuration>

我遇到的错误

org.apache.commons.logging.LogConfigurationException: No suitable Log implementation
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:848)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:541)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:269)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(SSLConnectionSocketFactory.java:177)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(SSLConnectionSocketFactory.java:292)
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.<init>(SdkTLSSocketFactory.java:58)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheConnectionManagerFactory.java:90)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:63)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:56)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:50)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:38)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:324)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:308)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:229)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:215)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.<init>(AWSSimpleSystemsManagementClient.java:614)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.<init>(AWSSimpleSystemsManagementClient.java:600)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.build(AWSSimpleSystemsManagementClientBuilder.java:61)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.build(AWSSimpleSystemsManagementClientBuilder.java:27)
at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.defaultClient(AWSSimpleSystemsManagementClientBuilder.java:45)
at br.com.dummyproject.helpers.impl.InterSecureParamaterStoreLoaderImpl.loadParameters(InterSecureParamaterStoreLoaderImpl.java:26)
at br.com.dummyproject.ApplicationStarted.onStart(ApplicationStarted.java:22)
at br.com.dummyproject.ApplicationStarted_Observer_onStart_fd71b5e0b207b7d1ef838b94eaeff75e52b8f463.notify(ApplicationStarted_Observer_onStart_fd71b5e0b207b7d1ef838b94eaeff75e52b8f463.zig:61)
at io.quarkus.arc.EventImpl$Notifier.notify(EventImpl.java:228)
at io.quarkus.arc.EventImpl.fire(EventImpl.java:69)
at io.quarkus.arc.runtime.LifecycleEventRunner.fireStartupEvent(LifecycleEventRunner.java:23)
at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:99)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent16.deploy_0(LifecycleEventsBuildStep$startupEvent16.zig:58)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent16.deploy(LifecycleEventsBuildStep$startupEvent16.zig:77)
at io.quarkus.runner.ApplicationImpl1.doStart(ApplicationImpl1.zig:149)
at io.quarkus.runtime.Application.start(Application.java:84)
at io.quarkus.runtime.Application.run(Application.java:196)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:34)
Exception in thread "main" java.lang.RuntimeException: Failed to start quarkus
at io.quarkus.runner.ApplicationImpl1.doStart(ApplicationImpl1.zig:169)
at io.quarkus.runtime.Application.start(Application.java:84)
at io.quarkus.runtime.Application.run(Application.java:196)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:34)
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log implementation
at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:848)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:541)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:292)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:269)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(SSLConnectionSocketFactory.java:177)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(SSLConnectionSocketFactory.java:292)
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.<init>(SdkTLSSocketFactory.java:58)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheConnectionManagerFactory.java:90)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:63)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:56)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:50)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:38)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:324)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:308)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:229)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:215)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.<init>(AWSSimpleSystemsManagementClient.java:614)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.<init>(AWSSimpleSystemsManagementClient.java:600)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.build(AWSSimpleSystemsManagementClientBuilder.java:61)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.build(AWSSimpleSystemsManagementClientBuilder.java:27)
at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.defaultClient(AWSSimpleSystemsManagementClientBuilder.java:45)
at br.com.dummyproject.helpers.impl.InterSecureParamaterStoreLoaderImpl.loadParameters(InterSecureParamaterStoreLoaderImpl.java:26)
at br.com.dummyproject.ApplicationStarted.onStart(ApplicationStarted.java:22)
at br.com.dummyproject.ApplicationStarted_Observer_onStart_fd71b5e0b207b7d1ef838b94eaeff75e52b8f463.notify(ApplicationStarted_Observer_onStart_fd71b5e0b207b7d1ef838b94eaeff75e52b8f463.zig:61)
at io.quarkus.arc.EventImpl$Notifier.notify(EventImpl.java:228)
at io.quarkus.arc.EventImpl.fire(EventImpl.java:69)
at io.quarkus.arc.runtime.LifecycleEventRunner.fireStartupEvent(LifecycleEventRunner.java:23)
at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:99)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent16.deploy_0(LifecycleEventsBuildStep$startupEvent16.zig:58)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent16.deploy(LifecycleEventsBuildStep$startupEvent16.zig:77)
at io.quarkus.runner.ApplicationImpl1.doStart(ApplicationImpl1.zig:149)

我的文件 application.properties 就像

quarkus.resteasy.path=/api/inter-dummy-quarkus-project-service/v1
quarkus.log.file.enable=true
service.context=inter-dummy-quarkus-project-service

quarkus.log.file.path=/quarkus-projects/inter-dummy-quarkus-project-service/logs/log-error.log
quarkus.log.file.level=ERROR
quarkus.log.file.format={"timestamp":"%d{YYYY-MM-dd HH:mm:ss}", "service":"${service.context}", "thread":"[%t]", "level":"%p", "meta":%s}%n

quarkus.ssl.native=true

完整的堆栈跟踪

org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl (Caused by java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl)
at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1158)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:960)
at java.security.AccessController.doPrivileged(AccessController.java:63)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:957)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:624)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(SSLConnectionSocketFactory.java:177)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(SSLConnectionSocketFactory.java:292)
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.<init>(SdkTLSSocketFactory.java:58)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheConnectionManagerFactory.java:90)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:63)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:56)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:50)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:38)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:324)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:308)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:229)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:215)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.<init>(AWSSimpleSystemsManagementClient.java:614)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.<init>(AWSSimpleSystemsManagementClient.java:600)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.build(AWSSimpleSystemsManagementClientBuilder.java:61)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.build(AWSSimpleSystemsManagementClientBuilder.java:27)
at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.defaultClient(AWSSimpleSystemsManagementClientBuilder.java:45)
at br.com.dummyproject.helpers.impl.InterSecureParamaterStoreLoaderImpl.loadParameters(InterSecureParamaterStoreLoaderImpl.java:26)
at br.com.dummyproject.ApplicationStarted.onStart(ApplicationStarted.java:22)
at br.com.dummyproject.ApplicationStarted_Observer_onStart_fd71b5e0b207b7d1ef838b94eaeff75e52b8f463.notify(ApplicationStarted_Observer_onStart_fd71b5e0b207b7d1ef838b94eaeff75e52b8f463.zig:61)
at io.quarkus.arc.EventImpl$Notifier.notify(EventImpl.java:228)
at io.quarkus.arc.EventImpl.fire(EventImpl.java:69)
at io.quarkus.arc.runtime.LifecycleEventRunner.fireStartupEvent(LifecycleEventRunner.java:23)
at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:99)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent16.deploy_0(LifecycleEventsBuildStep$startupEvent16.zig:58)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent16.deploy(LifecycleEventsBuildStep$startupEvent16.zig:77)
at io.quarkus.runner.ApplicationImpl1.doStart(ApplicationImpl1.zig:149)
at io.quarkus.runtime.Application.start(Application.java:84)
at io.quarkus.runtime.Application.run(Application.java:196)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:34)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl
at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:60)
at java.lang.ClassLoader.loadClass(Target_java_lang_ClassLoader.java:131)
at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1020)
... 36 more
Exception in thread "main" java.lang.RuntimeException: Failed to start quarkus
at io.quarkus.runner.ApplicationImpl1.doStart(ApplicationImpl1.zig:169)
at io.quarkus.runtime.Application.start(Application.java:84)
at io.quarkus.runtime.Application.run(Application.java:196)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:34)
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl (Caused by java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl)
at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1158)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:960)
at java.security.AccessController.doPrivileged(AccessController.java:63)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:957)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:624)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(SSLConnectionSocketFactory.java:177)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.<init>(SSLConnectionSocketFactory.java:292)
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.<init>(SdkTLSSocketFactory.java:58)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.getPreferredSocketFactory(ApacheConnectionManagerFactory.java:90)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:63)
at com.amazonaws.http.apache.client.impl.ApacheConnectionManagerFactory.create(ApacheConnectionManagerFactory.java:56)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:50)
at com.amazonaws.http.apache.client.impl.ApacheHttpClientFactory.create(ApacheHttpClientFactory.java:38)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:324)
at com.amazonaws.http.AmazonHttpClient.<init>(AmazonHttpClient.java:308)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:229)
at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:215)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.<init>(AWSSimpleSystemsManagementClient.java:614)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClient.<init>(AWSSimpleSystemsManagementClient.java:600)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.build(AWSSimpleSystemsManagementClientBuilder.java:61)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.build(AWSSimpleSystemsManagementClientBuilder.java:27)
at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
at com.amazonaws.services.simplesystemsmanagement.AWSSimpleSystemsManagementClientBuilder.defaultClient(AWSSimpleSystemsManagementClientBuilder.java:45)
at br.com.dummyproject.helpers.impl.InterSecureParamaterStoreLoaderImpl.loadParameters(InterSecureParamaterStoreLoaderImpl.java:26)
at br.com.dummyproject.ApplicationStarted.onStart(ApplicationStarted.java:22)
at br.com.dummyproject.ApplicationStarted_Observer_onStart_fd71b5e0b207b7d1ef838b94eaeff75e52b8f463.notify(ApplicationStarted_Observer_onStart_fd71b5e0b207b7d1ef838b94eaeff75e52b8f463.zig:61)
at io.quarkus.arc.EventImpl$Notifier.notify(EventImpl.java:228)
at io.quarkus.arc.EventImpl.fire(EventImpl.java:69)
at io.quarkus.arc.runtime.LifecycleEventRunner.fireStartupEvent(LifecycleEventRunner.java:23)
at io.quarkus.arc.runtime.ArcRecorder.handleLifecycleEvents(ArcRecorder.java:99)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent16.deploy_0(LifecycleEventsBuildStep$startupEvent16.zig:58)
at io.quarkus.deployment.steps.LifecycleEventsBuildStep$startupEvent16.deploy(LifecycleEventsBuildStep$startupEvent16.zig:77)
at io.quarkus.runner.ApplicationImpl1.doStart(ApplicationImpl1.zig:149)
... 3 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.impl.LogFactoryImpl
at com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:60)
at java.lang.ClassLoader.loadClass(Target_java_lang_ClassLoader.java:131)
at org.apache.commons.logging.LogFactory.createFactory(LogFactory.java:1020)

最佳答案

问题解决了!

我做了这个配置

在我的 pom.xml 中,我将此配置放在 native 配置文件中


<additionalBuildArgs>
<additionalBuildArg>
-H:ReflectionConfigurationFiles=${project.basedir}/reflection-config.json
</additionalBuildArg>
<additionalBuildArg>
-H:DynamicProxyConfigurationFiles=${project.basedir}/proxy-config.json
</additionalBuildArg>
<additionalBuildArg>
-H:ResourceConfigurationFiles=${project.basedir}/resource-config.json
</additionalBuildArg>
</additionalBuildArgs>

反射配置.json


[
{
"name": "org.apache.commons.logging.impl.LogFactoryImpl",
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.amazonaws.partitions.model.Partitions",
"allPublicMethods": true,
"allDeclaredConstructors": true
},
{
"name": "com.amazonaws.partitions.model.Partition",
"allPublicMethods": true,
"allDeclaredConstructors": true
},
{
"name": "com.amazonaws.partitions.model.Endpoint",
"allPublicMethods": true,
"allDeclaredConstructors": true
},
{
"name": "com.amazonaws.partitions.model.Region",
"allPublicMethods": true,
"allDeclaredConstructors": true
},
{
"name": "com.amazonaws.partitions.model.Service",
"allPublicMethods": true,
"allDeclaredConstructors": true
},
{
"name": "com.amazonaws.partitions.model.CredentialScope",
"allPublicMethods": true,
"allDeclaredConstructors": true
},
{
"name": "java.util.HashSet",
"allPublicMethods": true,
"allDeclaredConstructors": true
},
{
"name": "com.amazonaws.auth.AWS4Signer",
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "java.lang.String",
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "org.apache.commons.logging.LogFactory",
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "org.apache.commons.logging.impl.SimpleLog",
"allDeclaredConstructors": true,
"allPublicConstructors": true,
"allDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
}
]

代理配置.json


[
[
"org.apache.http.conn.HttpClientConnectionManager",
"org.apache.http.pool.ConnPoolControl",
"com.amazonaws.http.conn.Wrapped"
]
]

资源配置.json

{
"resources": [
{
"pattern": "com/amazonaws/partitions/endpoints.json"
}
]
}

关于quarkus - 如何修复 quarkus 原生镜像中的 'org.apache.commons.logging.LogConfigurationException: java.lang.ClassNotFoundException',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57340126/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com