0

当我尝试使用 MFP CLI 部署我的项目时,它会出现以下错误

xxxx-Macmini:Nauth user-x$  mfp  build  
App Nauth was successfully built.

xxxx-Macmini:Nauth user-x$  mfp deploy  
Initializing MobileFirst Console  
Error: The MobileFirst server that you have configured does not appear to be running. Start the server with 'mobilefirst start'.

多功能一体机信息

xxxx-Macmini:Nauth user-x$ mfp info
OS: darwin x64 Release: 11.4.2 System Memory: 128 MB free out of 4096 MB Node: v0.10.30 MobileFirst CLI: 7.0.0.00.20150610-1400 Current directory: /Volumes /开发/wlsamples/NAuth2/apps/Nauth

当前项目:/Volumes/Development/wlsamples/NAuth2

适配器:SqlAuth (/Volumes/Development/wlsamples/NAuth2/adapters/SqlAuth/SqlAuth.xml) 描述:SqlAuth 类型:sql 程序:readuser、submitAuthentication、getBalance

应用程序:Nauth (/Volumes/Development/wlsamples/NAuth2/apps/Nauth/application-descriptor.xml) 描述:Nauth 类型:混合应用程序特点:环境:iphone 皮肤:

服务器位置:/Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server 服务器二进制文件:/Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server/wlp /bin/server MobileFirst 实例:/Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server/wlp/usr/servers/worklight objc[26232]:JavaLaunchHelper 类在 /Library/ 中都实现Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/bin/java 和 /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/libinstrument.dylib。将使用两者之一。哪一个是未定义的。Java HotSpot(TM) 64 位服务器 VM 上的 WebSphere Application Server 8.5.5.4 (1.0.7.cl50420141121-1414),版本 1.8.0_45-b14 (en_US)

环境变量: TERM_PROGRAM:Apple_Terminal rvm_bin_path:/Users/user-x/.rvm/bin TERM:xterm-256color SHELL:/bin/bash TMPDIR:/var/folders/0m/ftx97h0n1rbcdwb3b3sv18lm0000gn/T/ Apple_PubSub_Socket_Render:/tmp/launch- pbGaeh/Render TERM_PROGRAM_VERSION: 303.2 TERM_SESSION_ID: 8CB82941-523E-4034-BCA0-470F186ED261 USER: user-x COMMAND_MODE: unix2003 _system_type: Darwin rvm_path: /Users/user-x/.rvm SSH_AUTH_SOCK: /tmp/launch-n9tSIx/Listeners __CF_USER_TEXT_ENCODING : 0x1F5:0:0 Apple_Ubiquity_Message: /tmp/launch-bCTtmF/Apple_Ubiquity_Message WEBWORKS_HOME: /Applications/BB10 WebWorks SDK 2.2.0.15 rvm_prefix: /Users/user-x PATH: /Applications/BB10 WebWorks SDK 2.2.0.15:/Applications/ BB10 WebWorks SDK 2.2.0.15/cordova-blackberry/bin/dependencies/bb-tools/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Applications/IBM/MobileFirst-CLI:/Users/user-x/.rvm/ bin PWD:/Volumes/Development/wlsamples/NAuth2/apps/Nauth JAVA_HOME:/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home _system_arch:i386 _system_version:10.7 rvm_version:1.26.11(最新) SHLVL: 2 主页:/Users/user-x LOGNAME:user-x LC_CTYPE:UTF-8 显示:/tmp/launch-BI7HzF/org.x:0 _system_name:OSX _:/Applications/IBM/MobileFirst-CLI/IBMnode/bin /node WLP_USER_DIR:/Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server/wlp/usri386 _system_version: 10.7 rvm_version: 1.26.11 (latest) SHLVL: 2 HOME: /Users/user-x LOGNAME: user-x LC_CTYPE: UTF-8 DISPLAY: /tmp/launch-BI7HzF/org.x:0 _system_name: OSX _:/Applications/IBM/MobileFirst-CLI/IBMnode/bin/node WLP_USER_DIR:/Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server/wlp/usri386 _system_version: 10.7 rvm_version: 1.26.11 (latest) SHLVL: 2 HOME: /Users/user-x LOGNAME: user-x LC_CTYPE: UTF-8 DISPLAY: /tmp/launch-BI7HzF/org.x:0 _system_name: OSX _:/Applications/IBM/MobileFirst-CLI/IBMnode/bin/node WLP_USER_DIR:/Users/user-x/.ibm/mobilefirst/7.0.0.00.20150610-1353/server/wlp/usr

Java home 设置正确
xxxx-Macmini:Nauth user-x$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

4

1 回答 1

0
  1. MobileFirst Platform Foundation 不支持 Java 8 - 您只能使用 Java 6 或 7。
  2. 完成 (1) 之后,还卸载 CLI (/Applications/IBM/MobileFirst-CLI/Uninstaller) 并从 IBM Fix Central 下载最新的可用 iFix,其中包含 CLI 的几个错误修复,包括对服务器的潜在修复这个问题。
于 2015-07-08T06:28:28.180 回答