2

我最近在我的 Mac 上安装了 IBM MobileFirst CLI,但我似乎无法启动服务器。请参阅下面的错误。我搜索了互联网,发现 JDK 中存在导致 JavaLaunchHelper 错误的错误。我从这里下载了据称可以解决问题的 beta 版本 - JDK 下载链接 。但这也无济于事。任何其他帮助表示赞赏。

Imayas-MBP:EmployeeDirectory imaya$ mfp 开始初始化 MobileFirst 控制台。objc[18564]:类 JavaLaunchHelper 在 /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java 和 /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home 中实现/jre/lib/libinstrument.dylib。将使用两者之一。哪一个是未定义的。启动服务器工作灯。服务器工作灯启动失败。检查服务器日志以获取详细信息。/Users/imaya/.ibm/mobilefirst/6.3.0/server/wlp/bin/server:第 744 行:18563 中止陷阱:6 "${JAVA_CMD}" "$@" > "${JAVA_CMD_LOG}" 2>&1错误:MobileFirst 服务器无法启动。该端口可能正在由正在运行的服务器的另一个实例使用,或者该服务器可能不存在。

4

2 回答 2

2

The JavaLaunchHelper error is not the problem here; Anyone using Java 7 will experience it, but things will work regardless.

The problem here is the second error:

The MobileFirst server failed to start. The port may be in use by another instance of a running server, or the server may not exist.

Verify you do not have an already running server, that was started either by the CLI or by MFP Studio in an Eclipse installation.

  1. In the command line, run mfp stop
  2. In Eclipse, well, quit it
  3. Make sure the Java process is not running

Then, start over. Using the CLI, create a new project and application and try to start the server. For example:

  1. cd /Users/idanadar/Desktop
  2. mfp create testProject
  3. cd testProject
  4. mfp add hybrid testApp
  5. mfp start
  6. mfp build
  7. mfp deploy
  8. mfp console
于 2015-01-21T18:20:16.657 回答
2

On OSX, you can locate and kill a process holding open a port using the following:

Run (assumes port 10080):

$ lsof -i :10080

Then if a process is shown, run the following using the shown Process ID:

$ kill -9 {PID}

于 2015-01-22T13:12:42.183 回答