Questions tagged [spring-native]

Spring Native supports compiling Spring applications to native images with GraalVM.

Spring Native supports compiling Spring applications to native images with GraalVM.

iIt s new experimental Spring project https://github.com/spring-projects-experimental/spring-native , that was announce in 2021 https://spring.io/blog/2021/03/11/announcing-spring-native-beta and pinned as #1 Dependency option on https://start.spring.io/

146 questions
2
votes
0 answers

Handler for spring native image for AWS lambda

I've created a zip file with a Spring native executable image, compiled with GaalVm. I want to trigger the function via a Cloudwatch event. So i've created a bean from type Consumer and i've set that bean as handler. When i trigger a…
appel500
  • 164
  • 1
  • 10
2
votes
2 answers

Running Spring Boot Native Application on Azure Functions: Permission denied with server.port: 80

I have created a simple Spring Boot Application and compiled it with Spring Native gradle bootBuildImage. I uploaded the docker container to an private registry and deployed it to Microsoft Azure Function. Accessing the function will correctly start…
Tobi
  • 507
  • 1
  • 5
  • 13
2
votes
1 answer

Native Executable with Quarkus or Springboot and JavaFx

I am trying to build a native executable for an app that works with Quarkus and JavaFx. The only way I have managed to achieve this has been marking lots of javaFx classes as --initialize-at-run-time, but this causes that, when trying to start the…
Ikaro
  • 165
  • 1
  • 12
2
votes
2 answers

Spring native erro on execute builded image

I'm doing a test project in which I'm trying to implement AOT with GRPC, it can compile the image through paketo but when running the generated image it shows the error: "Native reflection configuration for io.grpc.netty.…
2
votes
0 answers

Native Spring function bundled as a docker image not working on AWS lambda

I'm trying to run an AWS Lambda using Docker image build by paketobuildpacks/builder using spring-native + spring-cloud-function-aws, but it's not handling incoming values, justs starts and returns an error, did I missed something? Log output: START…
Vladlen Gladis
  • 1,699
  • 5
  • 19
  • 41
2
votes
1 answer

/startup endpoint not present in native app (using cnb and BufferingApplicationStartup)

Following the guidance here in the Spring Boot docs and having Actuator in the deps + this in main: public static void main(String[] args) { SpringApplication app = new SpringApplication(Thing2Application.class); …
2
votes
1 answer

I failed to use `mvn spring-boot:build-image` and remote docker daemon on win10

spring-boot-starter-parentm 2.4.4 My project is on win and docker is on another linux. Even if I put the built jar in the corresponding directory ( /home/iserver/spring)on linux, it cannot be successful
2
votes
1 answer

Spring boot native app fails to start when spring sleuth is enabled - llegalStateException BraveAutoConfiguration

I am trying to convert by Spring boot app to spring native using native image Maven plugin. I setup GraalVM and native image as mentioned here https://docs.spring.io/spring-native/docs/0.9.x/reference/htmlsingle/ The native image packaging was…
javachipsy
  • 396
  • 3
  • 6
1
vote
0 answers

Average spring natrive image size

I am trying to compile a springboot App to native using graalVM, the application itself has nothing in it, just the application main file, when running gradle nativeCompile, the image is about ~50Mb in size, is this the expected size ? or am i…
Mehdi
  • 83
  • 1
  • 2
  • 7
1
vote
0 answers

Packaging a common project as a lambda layer in Spring Boot native image with GraalVM

I'm currently working on a serverless API using AWS Lambda functions with Spring Boot's native image feature powered by GraalVM. In my project, I have a common project that acts as a shared codebase and includes dependencies used by the lambda…
1
vote
1 answer

Spring Boot, GraalVM files from resources directory not found on startup after nativeCompile in gradle multi project build

I have recently migrated my app to spring Boot 3 and now trying to integrate the native build into the release process. Right now I am facing an issue with some of the files from the resources directory not being included in the final native build.…
1
vote
1 answer

Spring boot 3.0.6 native image startup failing with 'entityManagerFactory': Instantiation of supplied bean failed

Spring boot 3.0.6 dependencies, spring-boot-starter-data-jpa spring-boot-starter-web build with mvn spring-boot:build-image -Pnative source: https://github.com/askyora/native-service org.springframework.beans.factory.BeanCreationException: Error…
yora
  • 19
  • 4
1
vote
1 answer

Spring Native build with GCP failed

I am trying to build a native version of my Spring Boot app (3.0.6, Java 17, Gradle 7.5) using Spring Native. The target runtime is Cloud Run on the GCP. When I try to run the Gradle task 'bootBuildImage', I get this error message: Exception in…
Ben
  • 290
  • 2
  • 17
1
vote
1 answer

Mapstruct and Sprinboot 3 native - Cannot find implementation

i have a strange problem with mapstruct and springboot 3, when i try to compile the native application. I get this error: Caused by: java.lang.ClassNotFoundException: Cannot find implementation for it.company.example.mapper.TestMapper at…
1
vote
1 answer

Difference between Java custom JRE and Java native image

In addition to developing classic services on Spring Boot, I want to know Java with it environment better. When I began to study portability, I came across such concepts as custom JRE (jlink, jmods) and native image (GraalVM, Liberica NIC). As I…
MRoose
  • 11
  • 3
1 2
3
9 10