scala - IO(Http) is cause the error "could not find implicit value for parameter system: akka.actor.ActorSystem" -


I am creating a spray application in Skala and I'm following the example found, but when I compile I am going to get this error.

  Error: (38, 7) The value contained for the parameter system could not be found: akka.actor.ActorSystem IO (HTTP)! Http.Bind (webserver, ^  

and Google search, where I have no lead here is the code for my application

  package au.net.hivemedia .polydeploy Import akka.actor {Props, ActorRef, ActorSystem} Import akka.io.IO Import au.net.hivemedia.polydeploy.dono.http.WebServerActor Import Spray.can.Http / ** * PolyDeploy Dono - Braeburn * * Copyright (c) Hive Media Production, 2014 * All rights reserved is not redistributed * * / Object Application application extends {Final Val version = "1.0-snapshot" Last val codename = "Twilight brightness" Personal Example: Dono = _ Private on actorSystem: ActorSystem = _ Private Server: ActorRef = _ Override Def Main (args: array [string]) {println (+ version "PolyDeploy Dono V start") println ("= + Project version codename : "+ Codename" example = new dono () println ("loading the required items in runtime") inst.load () println ("= newer actor loading system") AC torSystem = ActorSystem ("DonoActorSystem" ) Println ("= start + web interface server") webserver = actorSystem.actorOf (Props [WebServerActor], name = "webserver") IO! GetString ("web bind host"), port = instance.getConfiguration (). GetInt ("web bind port"))}}  

(Http.Bind)

Thanks,

Liam

IO.apply takes an inherent actor system . Using either inherent enmity actor or actor system clearly using the IO (HTT) system by using actor system Implied


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -