Failed to start embedded Service Locator or Service Gateway

[error] (ThisBuild / lagomServiceLocatorStart) Failed to start embedded Service Locator or Service Gateway. Hint: Are ports 9008 and 9000 already in use?

After trying all suggestions on different forum, I am not able to figure out reason behind this error.
I check ports(9000 & 9008) are not in use.

I tried java(maven, sbt both) and scala version but in all same error.

I appericate any help on this.

1 Like

I found the solution.
I have java 10 on system and java 9/10 have issue with javax.xml.bind, so kafka was failing to start.
I switched to java 8 and it’s working fine now.