MobileFirst 7.0 CLI - 无法启动服务器
Posted
技术标签:
【中文标题】MobileFirst 7.0 CLI - 无法启动服务器【英文标题】:MobileFirst 7.0 CLI - Unable to Start Server 【发布时间】:2015-06-05 19:27:34 【问题描述】:我在尝试预览 mobilefirst 应用时遇到了问题。我之前能够运行和预览应用程序,但不确定发生了什么变化。
mfp start -dd
mobilefirst-cli verb cli process.argv=["/Applications/IBM/MobileFirst-CLI/IBMnode/bin/node","/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/bin/mobilefirst-cli.js","start","-dd"]
mobilefirst-cli verb cli opts="ddebug":true,"argv":"remain":["start"],"cooked":["start","--ddebug"],"original":["start","-dd"]
mobilefirst-cli verb cli mobilefirst@7.0.0.00.20150430-1604
mobilefirst-cli verb cli node@v0.10.30
Initializing MobileFirst Console.
mobilefirst-cli verb ant variables -Dbasedir=/Users/extremeblueaustin/Walmart/2015-walmart/mobile
mobilefirst-cli verb ant variables -Dworklight.jars.dir=/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib
mobilefirst-cli verb ant variables -Dworklight.ant.tools.dir=/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/ant-tools
mobilefirst-cli verb ant variables -Dworklight.hostname=9.41.78.128
mobilefirst-cli verb ant variables -file=/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml
mobilefirst-cli verb ant task build-WAR
Buildfile: /Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml
build-WAR:
[echo] Building worklight WAR for project mobile
mobilefirst-cli verb cli finish with mobilefirst start
mobilefirst-cli verb code 1
当我去构建和预览时,它说运行“mobilefirst start”。
mfp preview -d
mobilefirst-cli verb cli process.argv=["/Applications/IBM/MobileFirst-CLI/IBMnode/bin/node","/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/bin/mobilefirst-cli.js","preview","-d"]
mobilefirst-cli verb cli opts="debug":true,"argv":"remain":["preview"],"cooked":["preview","--debug"],"original":["preview","-d"]
mobilefirst-cli verb cli mobilefirst@7.0.0.00.20150430-1604
mobilefirst-cli verb cli node@v0.10.30
mobilefirst-cli verb cli start with
mobilefirst preview
Initializing MobileFirst Console.
mobilefirst-cli verb ant variables - Dbasedir=/Users/user/folder/folder/mobile ** redacted **
mobilefirst-cli verb ant variables -Dworklight.jars.dir=/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib
mobilefirst-cli verb ant variables -Dworklight.ant.tools.dir=/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/ant-tools
mobilefirst-cli verb ant variables -Dworklight.hostname=9.41.78.128
mobilefirst-cli verb ant variables -file=/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml
mobilefirst-cli verb ant task build-WAR
Buildfile: /Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml
build-WAR:
[echo] Building worklight WAR for project mobile
Error: The MobileFirst server that you have configured does not appear to be running. Start the server with 'mobilefirst start'.
mobilefirst-cli verb cli finish with mobilefirst preview
mobilefirst-cli verb code 126
让我知道还需要什么,我会编辑问题。
【问题讨论】:
【参考方案1】:我修复了安装 JDK 7 的问题。 我使用的是 JDK 8。
检查这个:mobile first cli project deploy failing
【讨论】:
【参考方案2】:您能否检查一下您的JAVA_HOME
环境变量是否设置为jdk 目录。当我的环境中缺少 JAVA_HOME
时,我也遇到了同样的问题。
【讨论】:
以上是关于MobileFirst 7.0 CLI - 无法启动服务器的主要内容,如果未能解决你的问题,请参考以下文章
由于“无法创建项目锁定实体”错误,无法将 helloworld 应用程序部署到 mobilefirst 开发服务器(7.0)
无法通过 MobileFirst CLI 将 MobileFirst 应用程序部署到 Bluemix 上的 MobileFirst 容器