在 wladm cmd 的 mobilefirst 错误中使用 ant 任务

Using ant task in mobilefirst error in wladm cmd

我遵循了这个教程: http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.appadmin.doc/admin/r_invoking_the_wladm_program.html

我试图在 cmd 中输入一个命令并试过这个:

wladm --url=http://IP:9080 --user=demo --passwordfile=PATH\wladm.config --secure=false show info

我收到此错误:

Error accessing http://IP:9080/userAndConfigInfo?locale=en_US: HTTP/1.1 404 Not Found

现在当我输入另一个命令时:

wladm --url=http://IP:9080 --user=demo --passwordfile=PATH\wladm.config --secure=false list adapters RuntimeName

我收到此错误:

Error accessing http://sv591527.ph.sunlife:9080/management-apis/1.0/runtimes/Sun lifeTestApp/adapters?pageSize=1000000000&locale=en_US: HTTP/1.1 404 Not Found

有人知道我错过了什么吗?

URL 应该包含用于管理服务的 MobileFirst Web 应用程序的上下文根,也就是说,应该类似于 http://IP:9080/wladmin or http://IP:9080/worklightadmin. For more details, please consult the wladm usage documentation http://www.ibm.com/support/knowledgecenter/SSHS8R_7.1.0/com.ibm.worklight.appadmin.doc/admin/r_invoking_the_wladm_program.html