我正在将 Grails 应用程序从 CouldFoundry 移动到 AppFog 并且遇到错误 310: Staging failed, web.xml not found。af push成功,但是当我尝试使用env-add设置环境变量或启动应用程序时,出现暂存错误。
有一个先前的回应这个问题here。我尝试按照该响应中的描述安装最新的 cloud-foundry 插件,并且 cf-push 成功地将应用程序推送到 AppFog,但我仍然收到 310 错误。
Error 310: Staging failed: 'Staging task failed:
Staging plugin failed: /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/java_web/plugin.rb:28:in `block in stage_application': Web application staging failed: web.xml not found (RuntimeError)
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/java_web/plugin.rb:22:in `chdir'
from /opt/cloudfoundry/vcap/staging/lib/vcap/staging/plugin/java_web/plugin.rb:22:in `stage_application'
from /opt/cloudfoundry/vcap/stager/bin/run_plugin:19:in `<main>'