CF推送 - 系统找不到指定的文件

时间:2017-02-16 15:30:17

标签: java apache maven ibm-cloud cloudfoundry

我第一次使用cf,试图将一个简单的应用程序部署到Bluemix。当我尝试cf push时,我收到了这个错误:

E:\Program Files\tomcat\apache-tomcat-8.0.41\webapps\helloServletMaven\target
λ cf push /helloServletMaven -p /helloServletMaven.war
Creating app /helloServletMaven in org alexander.kirwan / space ORG as alexander.kirwan@mycit.ie...
OK

Using route helloservletmaven.mybluemix.net
Binding helloservletmaven.mybluemix.net to /helloServletMaven...
OK

FAILED
Error processing app files: GetFileAttributesEx E:\helloServletMaven.war: The system cannot find the file specified.

E:\Program Files\tomcat\apache-tomcat-8.0.41\webapps\helloServletMaven\target
λ ls
classes/  generated-sources/  helloServletMaven/  helloServletMaven.war  m2e-wtp/  maven-archiver/  maven-status/  test-classes/

E:\Program Files\tomcat\apache-tomcat-8.0.41\webapps\helloServletMaven\target

但正如您所看到的,当我运行ls时,我确实拥有war文件。

为什么会这样?

顺便说一下,我正在使用Windows和CMDER作为控制台。

1 个答案:

答案 0 :(得分:1)

看起来您的文件位于本地目录中,因此您没有使用/helloServletMaven.war,即删除斜杠(/

cf push helloServletMaven -p helloServletMaven.war