我創建了一個名爲hello-lagom的示例Lagom項目,並且一切似乎都正常。然而,當我嘗試在第一次啓動服務定位器,然後運行該項目,像這樣運行了HelloWorld-IMPL項目:Lagom lagomServiceLocatorStart不工作 - 連接被拒絕
activator lagomServiceLocatorStart
activator helloworld-impl/run
控制檯顯示的服務定位器運行:
[info] Service locator is running at http://localhost:8000
[info] Service gateway is running at http://localhost:9000
[success]
c.l.l.j.p.InitServiceLocatorHolder - Cassandra server name=[cas_native]
couldn't be registered to the service locator.
java.net.ConnectException: Connection refused: localhost/127.0.0.1:8000
開始與lagomCassandraStart嵌入式卡桑德拉沒有幫助:
然而Lagom啓動的HelloWorld IMPL服務時拋出了一個連接被拒絕的例外。不僅cassandra服務,但helloworld-impl未能註冊到服務定位器。我試圖telnet端口,但它返回連接被拒絕。
這可能是一個錯誤只發生在試圖運行一個服務獨立或有可能是我失蹤的東西?
當我嘗試登錄時得到了同樣的錯誤。 – Hantsy