0

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

他に何が必要か教えてください。質問を編集します。

4

2 に答える 2

0

JAVA_HOME環境変数が jdk ディレクトリに設定されているかどうかを確認できますか。JAVA_HOME私の環境に が欠けていたときに、この同じ問題が発生しました。

于 2015-06-08T03:43:20.073 に答える
0

JDK 7 のインストールに関する問題を修正しました。JDK 8 を使用しました。

これを確認してください: mobile first cli project deploy fails

于 2015-07-27T00:15:33.100 に答える