在IBM Bluemix中推送Liberty for Java应用程序时出错

时间:2014-10-13 13:54:24

标签: java cloud ibm-cloud websphere-liberty

当我运行示例IBM Bluemix Liberty for Java应用程序https://github.com/ibmjstart/bluemix-java-postgresql-uploader.git后出现以下错误:

-----> Downloaded app package (1.9M)
-----> Downloaded app buildpack cache (4.0K)
OK

/var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:101:in build_pack': Unable to detect a supported application type (RuntimeError) from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:74:inblock in compile_with_timeout'
from /usr/lib/ruby/1.9.1/timeout.rb:68:in timeout' from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:73:incompile_with_timeout'
from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:54:in block in stage_application' from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:50:inchdir'
from /var/vcap/packages/dea_next/buildpacks/lib/buildpack.rb:50:in stage_application' from /var/vcap/packages/dea_next/buildpacks/bin/run:10:in'

FAILED
Server error, status code: 400, error code: 170001, message: Staging error: cannot get instances since staging failed

TIP: use 'cf logs jpu-henryhan --recent' for more information

3 个答案:

答案 0 :(得分:3)

在执行推送时,顶部错误看起来像是在-p <path_to_war>参数中停止了。如果只是推送包含WAR文件的目录,Java buildpack将无法检测到它。

答案 1 :(得分:1)

cf推送请求的输出中提供的提示是相关的。

 TIP: use 'cf logs jpu-henryhan --recent' for more information

运行该命令将拖尾在暂存过程中生成的日志文件,并让您查看可能引发的错误。通常,它可能是缺失的依赖或某种瞬态失败。

我刚刚使用&#34;部署到Bluemix&#34;成功部署了样本。按钮并通过cf命令行工具手动完成。除非您更改了代码,否则很可能是此错误是暂时性故障。

答案 2 :(得分:0)

运行以下命令:

$ cf push jpu- -b https://github.com/cloudfoundry/java-buildpack --no-manifest --no-start -p PostgreSQLUpload.war

添加参数以设置buildpack&#34; -b https://github.com/cloudfoundry/java-buildpack&#34;