Skip to content

Cloud foundry deployment error #138

Open
@4rpit

Description

@4rpit

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions