Hi JM, You are throwing out some insulting comments that I will not accept. Can you instead explain what you are having trouble with in a constructive way and I'm sure someone will try to help or understand the need for improvements.
Regards, Patrik tis 28 feb. 2017 kl. 10:18 skrev Jun Ma <[email protected]>: > What the hack does this mean " it will use what you specified as a > parameter"? Which parameter? You meant the parameter assigned by the "-D"? > Are you Akka guys really programmers? Your doc and product line control > sucks! > What do you guys expect users to keep up with various migrations of Akka?! > You guys think the maintenance comes for free for users?! > > JM > > > On Wednesday, March 21, 2012 at 11:54:47 PM UTC+8, Akka Team wrote: > > Sorry, just read the subject line and it says Akka 2.0... My bad. > > Can you try the following: > java -Dconfig.*file*=<path>/custom.conf -jar Application.jar > > Also *val conf = ConfigFactory.load()* should be enough. > If you do not specify a specific config when starting an ActorSystem it > will use what you specified as a parameter, i.e. you do not have to > explicitly give it a config. > > HTH > //Henrik > > On Wed, Mar 21, 2012 at 4:46 PM, Henrik Engstrom <[email protected]> > wrote: > > Hey Sergey, > Can you please enlighten me with the version of Akka you're using + the > config file you're trying to load. > That would help me investigate what your issue is. > Thanks > > //Henrik > > > On Wed, Mar 21, 2012 at 3:44 PM, Sergey Malov <[email protected]> wrote: > > I have external configuration file I'm trying to load before starting my > application, it is sourced inside the app as: > val conf = ConfigFactory.load("custom.conf"); > > It has some updated akka {} settings (debug-related) and some application > specific settings. > > I'm starting app as: > java -Dconfig.resource=<path>/custom.conf -jar Application.jar > > I tried relative <path>, absolute <path> - nothing works, I'm getting > error: > > Exception in thread "main" com.typesafe.config.ConfigException$Missing: No > configuration setting found for key 'akka.version' > at > com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:115) > at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:135) > at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:140) > at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:108) > at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:146) > at > com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:188) > at akka.actor.ActorSystem$Settings.<init>(ActorSystem.scala:116) > at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:424) > at akka.actor.ActorSystem$.apply(ActorSystem.scala:103) > at akka.actor.ActorSystem$.apply(ActorSystem.scala:89) > at > com.mdialog.linear_stream_manager.LinearStreamManager$delayedInit$body.apply(App.scala:9) > at scala.Function0$class.apply$mcV$sp(Function0.scala:34) > at > scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12) > at scala.App$$anonfun$main$1.apply(App.scala:60) > at scala.App$$anonfun$main$1.apply(App.scala:60) > at > scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59) > at scala.collection.immutable.List.foreach(List.scala:45) > at > scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:30) > at scala.App$class.main(App.scala:60) > at > com.mdialog.linear_stream_manager.LinearStreamManager$.main(App.scala:7) > at > com.mdialog.linear_stream_manager.LinearStreamManager.main(App.scala) > > > Anything I'm doing incorrectly ? > > Thanks, > > Sergey > > > > -- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > > > For more options, visit this group at > http://groups.google.com/group/akka-user?hl=en. > > -- > Henrik Engstrom > Typesafe <http://typesafe.com/> - The software stack for applications > that scale > Twitter: h3nk3 > > > > > -- > Akka Team > Typesafe - The software stack for applications that scale > Blog: letitcrash.com > Twitter: @akkateam > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
