首页 > 解决方案 > quarkus-cxf 本机构建失败 - UnresolvedElementException - 在解析期间发现未解析的方法

问题描述

祝大家有美好的一天:-)

我正在使用 quarkus-cxf 扩展,现在遇到了以下问题。

在 JVM 模式下,一切正常。非常感谢您的图书馆。

但是我在本机模式下有错误。对于我可能做错的提示,我非常感激......</p>

Quarkus 版本:1.7.1.最终 quarkus-cxf 版本:https ://github.com/shumonsharif/quarkus-cxf/blob/master/pom.xml

错误发生在

mvn clean package -Dquarkus.native.container-build=true -Dquarkus.container-image.build=true -Dquarkus.container-image.registry=nfrt-docker-staging-local.repo.pnet.ch -Dquarkus.container- image.tag=最新的-Pnative

Caused by: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: com.oracle.graal.pointsto.constraints.UnresolvedElementException: Discovered unresolved method during parsing: org.apache.cxf.staxutils.validation.W3CMultiSchemaFactory.<init>(). To diagnose the issue you can use the --allow-incomplete-classpath option. The missing method is then reported at run time when it is accessed the first time.

PosixJavaThreads_pthreadStartRoutine_e1f4a8c0039f8337338252cd8734f63a79b5e3df(generated:0) at com.oracle.graal.pointsto.constraints.UnsupportedFeatures.report(UnsupportedFeatures.java:126) at com.oracle.svm.hosted.NativeImageGenerator.runPoints5ToAnalysis(NativeImageGenerator.runPoints5ToAnalysis)(Native.:70)更多原因:com.oracle.graal.pointsto.constraints.UnresolvedElementException:在解析过程中发现未解析的方法:org.apache.cxf.staxutils.validation.W3CMultiSchemaFactory.()。要诊断问题,您可以使用 --allow-incomplete-classpath 选项。然后在第一次访问时在运行时报告缺少的方法。在 com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser.reportUnresolvedElement(SharedGraphBuilderPhase.java:259) 在 com.oracle.svm.hosted.phases.SharedGraphBuilderPhase$SharedBytecodeParser。

标签: cxfquarkus

解决方案



推荐阅读