I have a file named restapi.conf that lives in a remote location outside the jar. It has the following content:
include "application" akka { loglevel = "DEBUG" } my application.conf file referenced by the remote file lives inside the jar of my akka-http application. it has the values: web-server { interface = "0.0.0.0" port = 8443 } akka { ...many more values here ... } I start my jar with the following -D parameter: -Dconfig.file="/restapi.conf" expected: my app should see the merged set of restapi.conf + application.conf values actual: only the restapi.conf are visible (the 'include "application" line' is not getting processed by the akka system) is this a bug or am I doing something incorrect (I'm using akka-http 10.0.5) ----- more details: this is my Conf class for loading the Webserver conf case class WebServerConf( interface: String, port: Int) object WebServerConf { def apply(): WebServerConf = { val masterConf = ConfigFactory.load() apply(masterConf.getConfig("web-server")) } def apply(config: Config): WebServerConf = { new WebServerConf( config.as[String]("interface"), config.as[Int]("port")) } this is my startup error: [DEBUG] [05/16/2017 17:39:01.684] [main] [EventStream(akka://api2-0)] logger log1-Logging$DefaultLogger started [DEBUG] [05/16/2017 17:39:01.685] [main] [EventStream(akka://api2-0)] Default Loggers started Exception in thread "main" java.lang.ExceptionInInitializerError at ariasystems.api2x.WebServer.main(WebServer.scala) Caused by: com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'web-server' at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:152 ) at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:170) at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:184) at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189) at com.typesafe.config.impl.SimpleConfig.getObject(SimpleConfig.java:258) at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:264) at com.typesafe.config.impl.SimpleConfig.getConfig(SimpleConfig.java:37) at ariasystems.api2x.WebServerConf$.apply(WebServerConf.scala:15) at ariasystems.api2x.Web$class.$init$(Web.scala:19) at ariasystems.api2x.WebServer$.<init>(WebServer.scala:3) at ariasystems.api2x.WebServer$.<clinit>(WebServer.scala) ... 1 more -- >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.