blueperf / acmeair-mainservice-java

This service contains the front end of AcmeAir Microservices.
Apache License 2.0
26 stars 88 forks source link

Liberty cannot start on MacOS #23

Closed fmhwong closed 5 years ago

fmhwong commented 5 years ago

When I ran mvn install and it failed with the following error.

[INFO] objc[20281]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin/java (0x1028404c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1028f54e0). One of the two will be used. Which one is undefined.
[INFO] Starting server defaultServer.
[INFO] Server defaultServer start failed. Check server logs for details.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.733 s
[INFO] Finished at: 2019-10-24T17:52:15-04:00
[INFO] Final Memory: 20M/307M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.wasdev.wlp.maven.plugins:liberty-maven-plugin:2.1.1:test-start-server (test-start-server) on project acmeair-mainservice-java: CWWKM2002E: Failed to invoke [/Users/fmhwong/gitRepos/acmeair-mainservice-java/target/liberty/wlp/bin/server, start, defaultServer]. RC= 22 but expected=[0, 1]. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
felixs-mbp:logs fmhwong$ cat console.log 
objc[19762]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/bin/java (0x10aa5a4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10ab0f4e0). One of the two will be used. Which one is undefined.
Error opening zip file or JAR manifest missing : resources/javametrics-agent.jar
Error occurred during initialization of VM
agent library failed to init: instrument

Looks like this requires IBM JDK.

fmhwong commented 5 years ago

I used mvn install instead of mvn package.

jdmcclur commented 5 years ago

Seems like mvn install should still work. I think javametrics-agent.jar was for microclimate, which I dont think is working anymore, so I need to clean up the poms to take out some things, but probably wont get to it super quickly.