2016-04-07 50 views
0

我發現了以下錯誤,同時啓動MobileFirst 7.1 CLI的服務器用命令mfp start錯誤,同時啓動MobileFirst 7.1 CLI服務器

Cannot find the server configuration. Creating a new MobileFirst test server. 
The development server is being created. 
The development server has been successfully created with the following information: 
Server Directory: /Users/vamsik/.ibm/mobilefirst/7.1.0.00.20160401-2103/server/ 
URL: http://localhost:10080/ 
Initializing MobileFirst Console. 
objc[57651]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. 
Starting server worklight. 
Server worklight started with process ID 57650. 
The server is listening on port 10080. 
Server Directory: /Users/vamsik/.ibm/mobilefirst/7.1.0.00.20160401-2103/server/ 
URL: http://localhost:10080/ 
Error: Deploy process failed. 

我卸載了MobileFirst 7.1 CLI並重新安裝了它,但得到了同樣的錯誤,同時啓動服務器。我沒有啓動任何其他MobileFirst服務器,即使是Eclipse的MobileFirst服務器。

當我給mfp push我收到以下錯誤

Preparing for push... 
Error: error code: 126 
Error: The MobileFirst server that you have configured does not appear to be running. Start the server with 'mobilefirst start'. 
Error: SERVERNOTRUNNING 
Error: Push has failed 
+0

重新安裝後,您是否使用過以前創建的相同項目?如果是的話,你是否事實上首先使用「mfp start」啓動它?或者你是否創建了一個新項目?另外,你的Java版本是什麼? –

+0

你還有別的東西在那個端口上運行嗎? MobileFirst通常使用三個端口,10080(http),10443(http)和10777(用於遠程調試)。您可以使用'lsof -i:' –

+0

@IdanAdar查看這些端口上的內容。我嘗試使用舊的和新創建的Project,但得到相同的錯誤。我的Java版本:「1.7.0_67」。當我給出'mfp狀態'時,我得到消息作爲服務器正在監聽端口10080 – VamsiKaja

回答

0

選項嘗試:

  1. 請確保您還沒有MobileFirst工作室的Eclipse開放和運行
  2. 擦「mfp stop」,然後「rm -rf .ibm」,然後創建一個新項目,導航到它,然後「mfp start」
  3. 重新啓動您的工作站