0
votes

I built a MFP project with the MFP CLI

I ran mfp stop to stop my server

now when i run mfp start, mfp run, mfp restart, the server wont start

here are my cli logs

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp stop

objc[84655]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. Stopping server worklight. Server worklight is not running.

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp start

Initializing MobileFirst Console.

macsupports-MacBook-Pro-2:yoMAUI hannade$ 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'.

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp start

Initializing MobileFirst Console.

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp status

objc[84719]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. Server worklight is not running.

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp run

Initializing MobileFirst Console.

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp status

objc[84756]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. Server worklight is not running.

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp restart

Initializing MobileFirst Console.

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp status

objc[84790]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. Server worklight is not running.

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp start

Initializing MobileFirst Console.

macsupports-MacBook-Pro-2:yoMAUI hannade$ mfp status

objc[84882]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. Server worklight is not running.

2
Derek, I think it would help if you can format your log properly, please. It's almost unreadable at the moment. - Andrew Ferrier
I've bolded the commands i ran, and below the command is the output - Derek Hannah
Which MobileFirst Platform version and what is its full build number? - Idan Adar
found this when i ran mfp -v 7.0.0.00.20150312-0738 - Derek Hannah
Use "mfp -v" to print the full version number. - Idan Adar

2 Answers

2
votes

Try

mfp -d start

or

mfp -dd start

I got a different startup problem and I have no clues what happened because the prompt returned normally. Until I run mfp -d start to find out tools.jar is not in the classpath. Therefore, I updated %JAVA_HOME% and %PATH% variables and this resolved my problem.

You may also want to check logs with

mfp logs


Update #1 Per your comment, it seems that the JVM somehow failed to start with exit code = 1. I would check that area first. For example, a simple search hits similar issues not specific to MFP and seems to point to a defect in JDK on Mac OS X. https://stackoverflow.com/a/20807657/2821355

Hope this helps

0
votes

Update:

Download the latest CLI iFix relese from IBM Fix Central (June 6th 2015 and above) as it contains fixes (That at least for me) allow for the server to properlly start.

Uninstall the current CLI installation Download the latest CLI from IBM Fix Central website Install new version and try again


Are you also using MobileFirst Studio? You might have a server process still running.

Try this, from Terminal:

  1. lsof -i :10080
  2. If you get a list of process, then
  3. kill -9 number-of-process