Reputation: 547
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.
Upvotes: 0
Views: 883
Reputation: 44516
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:
lsof -i :10080
kill -9 number-of-process
Upvotes: 0
Reputation: 71
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
Upvotes: 2