Skip to content
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

Cloud foundry deployment error #138

Open
4rpit opened this issue May 27, 2020 · 1 comment
Open

Cloud foundry deployment error #138

4rpit opened this issue May 27, 2020 · 1 comment

Comments

@4rpit
Copy link

4rpit commented May 27, 2020

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)

@dsyer
Copy link
Collaborator

dsyer commented Jun 9, 2020

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

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

No branches or pull requests

2 participants