Native executable generation error while using maven native profile: Could not find target method: io.quarkiverse.cxf.saaj.graal.Traget_javax_xml_soap_FactoryFinder.fromJDKProperties #1086
Replies: 2 comments 5 replies
-
Yes, definitely. We state so in our docs https://docs.quarkiverse.io/quarkus-cxf/dev/user-guide/package-for-jvm-and-native.html
That's right.
As a first step, make sure that you import Quarkus CXF and Quarkus BOMs as documented here: https://docs.quarkiverse.io/quarkus-cxf/dev/user-guide/create-project.html#dependency-management If that does not help, please share your pom.xml. |
Beta Was this translation helpful? Give feedback.
-
Metro and CXF are both implementations of JAX-WS. Quarkus CXF focuses solely on porting CXF to Quarkus and Metro is fully out of our scope. This code might be what you want for setting addressing headers without relaying on Metro: |
Beta Was this translation helpful? Give feedback.
-
Hi there, i hope you all are doing great.
I'm a quarkus begginer user coming from a Java EE (and some SpringBoot) background. After succesfully compiling, building and running a SOAP webservice application in classic JVM mode using the quarkus-cxf extension, i tried generating a native mode equivalent executable following the tutorials here:
https://quarkus.io/guides/building-native-image
As you might expect from a newcomer, I´m having some trouble i could not diagnose the underlying cause. This is what happens when compiling a native quarkus application using the native profile:
Which returns an error i don´t know how to interpret:
Error: Could not find target method: private static java.lang.String io.quarkiverse.cxf.saaj.graal.Traget_javax_xml_soap_FactoryFinder.fromJDKProperties(java.lang.String,java.lang.String) com.oracle.svm.core.util.UserError$UserException: Could not find target method: private static java.lang.String io.quarkiverse.cxf.saaj.graal.Traget_javax_xml_soap_FactoryFinder.fromJDKProperties(java.lang.String,java.lang.String) at org.graalvm.nativeimage.builder/com.oracle.svm.core.util.UserError.abort(UserError.java:73) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.findOriginalMethod(AnnotationSubstitutionProcessor.java:824) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.handleMethodInAliasClass(AnnotationSubstitutionProcessor.java:441) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.handleAliasClass(AnnotationSubstitutionProcessor.java:413) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.handleClass(AnnotationSubstitutionProcessor.java:386) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.substitute.AnnotationSubstitutionProcessor.init(AnnotationSubstitutionProcessor.java:342) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.createAnnotationSubstitutionProcessor(NativeImageGenerator.java:966) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:868) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:575) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGenerator.run(NativeImageGenerator.java:535) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.buildImage(NativeImageGeneratorRunner.java:403) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.build(NativeImageGeneratorRunner.java:580) at org.graalvm.nativeimage.builder/com.oracle.svm.hosted.NativeImageGeneratorRunner.main(NativeImageGeneratorRunner.java:128)
As far as i know, the class:
seems to be a dummy class whose method:
only returns "null" :
Can somebody give me a hint of what the error means, or if possible at all, how to fix it?
Also, in more general terms, Is it possible to generate native executables using the quarkus.cxf extension?
If not, is it in the roadmap?
Thanks a lot and greetings from Uruguay
Diego
Edited: corrected some grammar errors
Beta Was this translation helpful? Give feedback.
All reactions