移动第一个cli项目部署失败

时间:2015-07-08 06:09:33

标签: ibm-mobilefirst mobilefirst-cli

当我尝试使用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'.

mfp info

  

xxxx-Macmini:Nauth user-x $ mfp info
操作系统:darwin x64发布:11.4.2   系统内存:4096 MB节点中的128 MB空闲:v0.10.30 MobileFirst   CLI:7.0.0.00.20150610-1400当前目录:   /卷/开发/ wlsamples / NAuth2 /应用/ 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。   将使用两者之一。哪一个未定义。的WebSphere   Java上的Application Server 8.5.5.4(1.0.7.cl50420141121-1414)   HotSpot(TM)64位服务器VM,版本1.8.0_45-b14(en_US)

     

环境变量:TERM_PROGRAM:Apple_Terminal rvm_bin_path:   /Users/user-x/.rvm/bin期限:xterm-256color SHELL:/ bin / bash TMPDIR:   在/ var /文件夹/ 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   路径:/ 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 /本地/ git的/ bin中:/应用/ 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 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

1 个答案:

答案 0 :(得分:0)

  1. MobileFirst Platform Foundation不支持Java 8 - 您只能使用Java 6或7。
  2. 在执行(1)之后,还要卸载CLI(/ Applications / IBM / MobileFirst-CLI / Uninstaller)并从IBM Fix Central下载最新的可用iFix,其中包含针对CLI的多个错误修复,包括可能的修复程序。问题中提到的服务器。