Skip to content

[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 #11381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks
enderwsp opened this issue Jun 11, 2025 · 4 comments
Assignees

Comments

@enderwsp
Copy link

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
Copy link
Author

@enderwsp enderwsp reopened this Jun 12, 2025
@enderwsp
Copy link
Author

try to build success, the error has occurred

@selhagani selhagani self-assigned this Jun 13, 2025
@selhagani
Copy link
Member

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/

@enderwsp
Copy link
Author

change to command : mvn clean native:compile -Pnative

native bin run successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants