问题标签 [mobilefirst-cli]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ant - 在 MobileFirst 中使用 ant 任务部署战争文件未反映在服务器配置工具中
我使用本教程将战争文件部署到 MobileFirst WAS Liberty 服务器: https ://www.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.deploy.doc/devref/t_ant_tasks_configure_appserver.html
它说构建成功,但我在服务器配置工具中看不到正在部署的war文件,运行时环境仍然是空的。
是因为未安装 tools.jar 吗?或者应该有一个现有的运行时环境?然后运行“ant -f configure-liberty-oracle.xml”,那里的war文件会更新吗?
这是日志:
ant - 使用 ant 在 MFP Liberty 中部署 wlapp 文件
我正在尝试使用 ant 任务在 MFP Liberty Server 中部署 wlapp 文件。我创建了 build.xml 然后在 cmd 中运行“ant”。
我不知道在哪里设置“安全为假”,但我试过这个:
它说:
任何人都知道在哪里将安全更改为false,因为网址只是http而不是https?
ant - 在 wladm cmd 中的 mobilefirst 错误中使用 ant 任务
我正在尝试在 cmd 中输入命令并尝试了以下操作:
wladm --url= http://IP:9080 --user=demo --passwordfile=PATH\wladm.config --secure=false 显示信息
我收到此错误:
访问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 列出适配器运行时名称
我收到此错误:
访问http://sv591527.ph.sunlife:9080/management-apis/1.0/runtimes/Sun lifeTestApp/adapters?pageSize=1000000000&locale=en_US 时出错:HTTP/1.1 404 Not Found
有人知道我缺少什么吗?
ios - MFP Cordova-Ionic 项目的 IOS 构建失败
我正在尝试构建MFP cordova Ionic
使用CLI
. 它非常适合 android,但是当我尝试为 iOS 构建它时它失败了。我面临多个错误
xcodebuild[14887:399060] [MT] PluginLoading:所需的插件兼容性 UUID 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90 用于路径 '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/ 的插件DVTPlugInCompatibilityUUID 中不存在 VVDocumenter-Xcode.xcplugin'
我尝试通过添加所需的缺失来解决此问题key-val in plist file
当我尝试从 Xcode 运行它时,出现错误 -Some keys are missing in worklight.plist
现在添加丢失的密钥后,我得到了
2016-05-04 17:50:28.507 StoreApp[14787:396490] [FATAL] [WL_INIT] - [WLImpl initWL] 在 WLImpl.m:180 :: Init 失败:无法读取 checksum.js,操作无法' t 完成。(可可错误 258。),(空)。重新安装应用程序并重试。
即使我尝试过运行简单的 MFP cordova 项目,但构建失败
ibm-mobilefirst - Mfp cli WLResourceRequest 未定义错误
我最近将我的 mfp studio 项目转换为 mfp cli cordova 项目。当我预览我的项目时,一切正常,除了“WLResourceRequest 未定义”登录到控制台。 在此处输入图像描述
我注意到网络预览工作正常,但移动浏览器模拟器无法正常工作并记录相同的错误
ibm-mobilefirst - 无法在 Windows 10 上发出 mfp 启动命令
我刚刚在 Windows 10 VMware 上安装了 MFP CLI 7.1 版。JDK 1.8.0_92 已安装,并且 JAVA_HOME 环境变量已相应设置
以下是我尝试启动 mfp 时遇到的错误:
C:\Users\johan\Documents\Workspaces\MobileFirst\SampleHybridApp>mfp start -d
mobilefirst-cli verb cli process.argv=["C:\Program Files\IBM\MobileFirst-CLI\\IBMnode\node.exe", "C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\bin\mobilefirst-cli.js","start","-d"]
mobilefirst-cli 动词 cli opts={"debug":true," argv":{"remain":["start"],"cooked":["start","--debug"],"original":["start","-d"]}}
mobilefirst-cli 动词cli mobilefirst@7.1.0.00.20160401-2108
mobilefirst-cli 动词 cli node@v0.10.36 正在
初始化 MobileFirst 控制台。
mobilefirst-cli 动词 ant 变量 -Dworklight.server.install.dir=C:\Users\johan.ibm\mobilefirst\7.1.0.00。
mobilefirst-cli 动词变量 -Dbasedir=C:\Users\johan\Documents\Workspaces\MobileFirst\SampleHybridApp mobilefirst-cli 动词变量 -Dworklight.jars.dir=C:\Program Files\IBM\MobileFirst-CLI\mobilefirst- cli\node_modules\generator-worklight-server\lib
mobilefirst-cli 动词 ant 变量 -Dworklight.ant.tools.dir=C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\ ant-tools
mobilefirst-cli 动词 ant 变量 -Dworklight.hostname=192.168.1.33
mobilefirst-cli 动词 ant 变量 -file=C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\ lib\build.xml
mobilefirst-cli 动词 ant 任务 build-WAR
Buildfile: C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml
build-WAR:
[echo] 为项目 SampleHybridApp
[war-builder]构建 worklight WAR C:\Users\johan\Documents\Workspaces\MobileFirst\SampleHybridApp\bin\classes [war-builder] 下 5 个空目录到 4 个空目录
[war-builder] 编译 2 个源文件到 C:\Users\johan\Documents\Workspaces\MobileFirst\SampleHybridApp \bin\classes
错误:构建 WAR 失败错误:
构建失败
C:\Program Files\IBM\MobileFirst-CLI\mobilefirst-cli\node_modules\generator-worklight-server\lib\build.xml:153: 无法编译 java类。确保 JAVA_HOME 指向 JDK,并且类路径设置正确。
总时间:1 秒
错误:服务器启动过程失败。
mobilefirst-cli 动词 cli 结束与 mobilefirst start
mobilefirst-cli 动词代码 1
其他 MFP CLI 命令似乎正在工作,因为我能够将 WindowsPhone 环境添加到我的混合应用程序项目中......
有人可以提供一些帮助吗?Windows 10 是否支持 MFP CLI 7.1?
谢谢
ibm-mobilefirst - 使用 mfp push 部署到 Azure VM 经常失败并出现错误 FWLSE3000E
我正在使用 MobileFirst 7.1 CLI (mfp push) 构建并部署到远程 Azure VM MobileFirst Development Server。
我经常收到 FWLSE3000E 错误,但有时部署会成功。防火墙被禁用并且没有设置端口限制。我该如何解决这个问题?
完全错误:
未能部署 [...wlapp]。原因:推送应用程序失败:FWLSE3000E:检测到服务器错误。:无效条目 CRC(预期为 0x992b0d60,但得到 0x275afea3):HTTP 500 - 内部服务器错误。
mobilefirst-cli - 从命令行运行 mfp 时在 Mac 上找不到命令错误
我mfp: command not found
在 Mac 上遇到错误。我显然已经安装mobilefirst-cli
了npm install -g path-to-cli-.tgz-file
如何检查/验证是否mobilefirst-cli
已成功安装在 Mac 上?我尝试运行mfp
但收到错误“找不到命令”。
ibm-mobilefirst - 如何将运行时 (WAR) 发送到远程 MobileFirst 7.1 开发服务器?
使用 CLI 运行时不会推送到远程开发服务器(仅适配器和应用程序)。有没有办法将运行时(WAR)推送到远程开发服务器?