将Spring应用程序推送到Cloud Foundry时暂存错误

时间:2016-09-22 13:33:03

标签: spring cloudfoundry

我在CloudFoundry上推送Sample Hello World spring应用程序时遇到以下错误。

Using manifest file C:\Users\I321571\Desktop\helo\Hello\manifest.yml

Updating app Hello in org trial / space I321571 as I321571...
OK

Uploading Hello...
Uploading app files from: C:\Users\I321571\Desktop\helo\Hello
Uploading 20.1K, 46 files
Done uploading
OK

Stopping app Hello in org trial / space I321571 as I321571...
OK

Starting app Hello in org trial / space I321571 as I321571...
-----> Downloaded app package (12K)
    Cloning into '/tmp/buildpacks/java-buildpack'...
    -----> Java Buildpack Version: b050954 | https://github.com/cloudfoundry/java-buildpack.git#b050954
[Buildpack]                      ERROR Compile failed with exception #<RuntimeError: No container can run this application. Please ensure that you've pushed a valid JVM artifact or artifacts using the
-p command line argument or path manifest entry. Information about valid JVM artifacts can be found at https://github.com/cloudfoundry/java-buildpack#additional-documentation. >
No container can run this application. Please ensure that you've pushed a valid JVM artifact or artifacts using the -p command line argument or path manifest entry. Information about valid JVM artifac
ts can be found at https://github.com/cloudfoundry/java-buildpack#additional-documentation.
Staging failed: Buildpack compilation step failed

FAILED
Error restarting application: BuildpackCompileFailed

TIP: use 'cf logs Hello --recent' for more information

这是我的manifest.yml

applications:
- name: Hello
  memory: 512M
  instances: 1

请帮我解决问题。

1 个答案:

答案 0 :(得分:0)

我也遇到了这个错误! 确保给出的命令有效

  cf push {your-app-name} -p {path to your executable jar}