graal icon indicating copy to clipboard operation
graal copied to clipboard

[Native Image] springboot3.0.6 cloud 2022.0.2 graalvmce 17.0.9 linux error:No qualify bean of type com.netflix.discovery.Eureka available

Open enderwsp opened this issue 10 months ago • 3 comments

Describe the Issue

native-maven-build 0.9.23

only use spring-boot-starter-web & spring-cloud-starter-netflix-eureka-client

jar run ok with agent tracing

mvn spring-boot:process-aot --OK

mvn -Pnative native:build --OK

execute native target/bin --- failed

Using the latest version of GraalVM can resolve many issues.

GraalVM Version

graalvmce 17.0.9

Operating System and Version

linux centos7

Troubleshooting Confirmation

Run Command

native run failed

Expected Behavior

native run ok and eureka register success

Actual Behavior

NoSuchBeanDefinitionException No qualify bean of type com.netflix.discovery.Eureka available

Steps to Reproduce

jar run ok with agent tracing

mvn spring-boot:process-aot

mvn -Pnative native:build

execute native target/bin

Additional Context

No response

Run-Time Log Output and Error Messages

No response

enderwsp avatar Jun 11 '25 03:06 enderwsp

when build ,some error message:

download failed from https://repo1.maven.org/maven2/org/graalvm/buildtools/graalvm-reachability-metadata/0.9.23/graalvm-reachability-metadata-0.9.23-repository.zip

enderwsp avatar Jun 11 '25 09:06 enderwsp

try to build success, the error has occurred

enderwsp avatar Jun 12 '25 01:06 enderwsp

Hi @enderwsp,

You seem to be using an old version of GraalVM, could you please try using the latest version which you can find here: https://github.com/graalvm/graalvm-ce-builds/releases/

selhagani avatar Jun 13 '25 09:06 selhagani

change to command : mvn clean native:compile -Pnative

native bin run successfully

enderwsp avatar Jun 17 '25 08:06 enderwsp