spring-boot-thin-launcher icon indicating copy to clipboard operation
spring-boot-thin-launcher copied to clipboard

Cloud foundry deployment error

Open 4rpit opened this issue 5 years ago • 1 comments

When I tried to run the application in cloud foundry by using cmd and manifest file as below

cf push thin-jar-poc -p target/thin-jar-poc-0.0.1-SNAPSHOT.jar
applications:
 - path: thin-jar-poc-0.0.1-SNAPSHOT.jar
   memory: 128m
   instances: 1
   timeout: 180
  env:
    loglevel: DEBUG,APP
    --thin.debug: true
    --thin.root: .

I got the below error.

  -----> Caching Spring Boot Thin Launcher Dependencies
   Command '/tmp/app/.java-buildpack/open_jdk_jre/bin/java -Dthin.dryrun -Dthin.root=/tmp/app/.java-buildpack/java_main/repository -cp /tmp/app org.springframework.boot.loader.wrapper.ThinJarWrapper' has failed
   STDOUT:
   STDERR: Exception in thread "main" java.lang.IllegalStateException: Cannot locate launcher: /tmp/app/.java-buildpack/java_main/repository/repository/org/springframework/boot/experimental/spring-boot-thin-launcher/1.0.24.RELEASE/spring-boot-thin-launcher-1.0.24.RELEASE-exec.jar
        at org.springframework.boot.loader.wrapper.ThinJarWrapper.launch(ThinJarWrapper.java:131)
        at org.springframework.boot.loader.wrapper.ThinJarWrapper.main(ThinJarWrapper.java:107)

4rpit avatar May 27 '20 09:05 4rpit

If you run that command locally does it succeed? Does your Cloud Foundry foundation have access to the internet?

dsyer avatar Jun 09 '20 10:06 dsyer