This is the first time I work with akka-http. I wrote the following main class that launches the application:
object Main extends App with Routes with Config with Protocols { implicit val system: ActorSystem = ActorSystem("slickboard-system") implicit val executor: ExecutionContext = system.dispatcher implicit val materializer: ActorMaterializer = ActorMaterializer() override val employeeActor: ActorRef = system.actorOf(EmployeeActor.props, "employees") val server = Http().bindAndHandle(route, httpServerURL, httpServerPort) }
It starts the server on localhost, but when I try to deploy it to a remote tomcat server, it no longer works. It responds with HTTP 404: not found.
I searched the Internet for akka-http deployment but could not find the answer. Does anyone have experience with this issue?
Yours faithfully
source share