gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 08:52:48 25 4
gpt4 key购买 nike

我是第一次使用 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 作为控制台。

最佳答案

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

cf push helloServletMaven -p helloServletMaven.war

关于java - CF推送-系统找不到指定的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42278180/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com