Closed ww2406 closed 4 months ago
To confirm if this is an issue with my code or something else, I tried downloading the sample GCP HTTP function and deploying. That, too, fails with the same error.
I have exactly the same issue. I think this is a problem of the bootJar plugin or the layout configuration. The resulting boot JAR contains only the files from spring-boot-loader but not from spring-boot-loader-classic, which is the one that is used by the GCP adapter.
This is a duplicate of https://github.com/spring-cloud/spring-cloud-function/issues/1085
Can you add this configuration to spring-boot-maven-plugin
?
<executions>
<execution>
<configuration>
<loaderImplementation>CLASSIC</loaderImplementation>
</configuration>
</execution>
</executions>
@olegz same issue in 3.3.0 and spring-cloud-function-adapter-gcp 4.1.2 with loaderImplementation :/
I don't remember where exactly this was written, but this issue is a regression, downgrading your spring-boost installation works:
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.12</version>
</parent>
I believe it was addressed with https://github.com/spring-cloud/spring-cloud-function/pull/1150
Please raise a new issue if still persists
Describe the bug I believe I am encountering the same issue as #770 . When I try to deploy to Google Cloud, I get a JarLauncher not found error.
When I try to run the jar file locally (although maybe this is expected?) I get a similar error:
Running the function locally via
mvn function:run
works.This is my pom.xml:
This is my manifest file.