Kartikeya Sharma
Kartikeya Sharma

Reputation: 553

Lagom -LagomServiceLocatorStart :Failed to start embedded Service Locator or Service Gateway?

I have just started with lagom , was trying to run the lagom example, but i am facing an error in starting the server its self. I am having the following error

     > runAll
     [info] Starting Kafka
     [info] Starting Cassandra
     ....Kafka Server closed unexpectedly.
     ......
     [info] Cassandra server running at 127.0.0.1:4000
    [error] p.c.s.NettyServer - Failed to listen for HTTP on /0.0.0.0:8000!
    [error] ({.}/*:lagomServiceLocatorStart) Failed to start embedded               

    Service Locator or Service Gateway. Hint: Are ports 8000 and 9010     
    already in use?
    [error] Total time: 32 s, completed Jan 28, 2017 1:19:03 AM

I have changed three parameter in build.sbt still no change

     lagomServiceGatewayPort in ThisBuild := 9010
     lagomServiceLocatorStart in ThisBuild := 9005
     lagomServicesPortRange in ThisBuild := PortRange(40000, 45000)

any ideas , what i am doing wrong ?

Thanks

Upvotes: 3

Views: 1487

Answers (2)

Vaibhav Zodge
Vaibhav Zodge

Reputation: 1

Using jdk-8 worked for me

Did not worked for any of higher versions, must be some compatibility issue to debug more

Upvotes: 0

Tim Moore
Tim Moore

Reputation: 9482

You should change the port with the lagomServiceLocatorPort setting instead of lagomServiceLocatorStart

lagomServiceLocatorPort in ThisBuild := 9005

See http://www.lagomframework.com/documentation/1.2.x/java/ServiceLocator.html#default-port

Upvotes: 1

Related Questions