簡體   English   中英

將Spring應用程序推送到Cloud Foundry時的登台錯誤

[英]Staging Error while Pushing a Spring Application to Cloud Foundry

在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

請幫助我解決問題。

我也遇到了這個錯誤! 確保給出的命令有效

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM