play -Dconfig.resource=local.conf -Dlogger.file=conf/local-logger.xml
where local.conf and local-logger.xml where custom files located in conf folder side by side with application.conf
in play 2.3.0 it is not working for me. i am trying
activator -Dconfig.resource=local.conf -Dlogger.file=conf/local-logger.xml
which results in the following stacktrace:
com.typesafe.config.ConfigException$IO: local.conf: java.io.IOException: resource not found on classpath: local.conf
at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:183)
at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:170)
at com.typesafe.config.impl.Parseable.parse(Parseable.java:227)
at com.typesafe.config.ConfigFactory.parseResources(ConfigFactory.java:716)
Any clue why this is not working anymore?
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-Dconfig.file=conf/local.conf solved it.
C:\Users\jimleroyer\Projects\akumen\deploymentnow\portal>activator runListening for transport dt_socket at address: 9999[info] Loading project definition from C:\Users\jimleroyer\Projects\akumen\deploymentnow\portal\projectauto-refresh websocket started on port 9001[info] Set current project to portal (in build file:/C:/Users/jimleroyer/Projects/akumen/deploymentnow/portal/)Loading config from properties {jline.esc.timeout=0, config.resource=local-dev.conf, java.runtime.name=Java(TM) SE Runtime Environment, sun.boot.library.path=C:\Program Files\Java\jdk1.7.0_45\jre\bin, java.vm.version=24.45-b08, user.country.format=CA, activator.home=//C:/Users/jimleroyer/Projects/akumen/deploymentnow/portal/, java.vm.vendor=Oracle Corporation, java.vendor.url=http://java.oracle.com/, path.separator=;, java.vm.name=Java HotSpot(TM) 64-Bit Server VM, file.encoding.pkg=sun.io, user.script=, user.country=US, sun.java.launcher=SUN_STANDARD, sun.os.patch.level=Service Pack 1, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\Users\jimleroyer\Projects\akumen\deploymentnow\portal, java.runtime.version=1.7.0_45-b18, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\Program Files\Java\jdk1.7.0_45\jre\lib\endorsed, os.arch=amd64,java.io.tmpdir=C:\Users\JIMLER~1\AppData\Local\Temp\, line.separator=, java.vm.specification.vendor=Oracle Corporation, user.variant=, os.name=Windows 7, sun.jnu.encoding=Cp1252, java.library.path=C:\Program Files\Java\jdk1.7.0_45\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git-1.8.4\cmd;C:\Program Files (x86)\Git-1.8.4\bin;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Program Files\Java\jdk1.8.0\bin;C:\Program Files (x86)\scala-2.10.3\bin;C:\Program Files\activator-1.1.2;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files (x86)\CloudFoundry;C:\Program Files (x86)\sbt\\bin;C:\Program Files (x86)\Tesseract-OCR;C:\nsroot\Ruby200-x64\bin;C:\Program Files (x86)\Apache\maven-3.1.1\bin;., sun.nio.ch.bugLevel=, java.specification.name=Java Platform API Specification, java.class.version=51.0, sun.management.compiler=HotSpot 64-Bit Tiered Compilers, os.version=6.1, user.home=C:\Users\jimleroyer, user.timezone=America/New_York, java.awt.printerjob=sun.awt.windows.WPrinterJob, java.specification.version=1.7, file.encoding=Cp1252, user.name=jimleroyer, java.class.path=C:\Users\jimleroyer\Projects\akumen\deploymentnow\portal\\activator-launch-1.1.2.jar, jline.shutdownhook=false, java.vm.specification.version=1.7, sun.arch.data.model=64, java.home=C:\Program Files\Java\jdk1.7.0_45\jre, sun.java.command=C:\Users\jimleroyer\Projects\akumen\deploymentnow\portal\\activator-launch-1.1.2.jar run, java.specification.vendor=Oracle Corporation, user.language=en, user.language.format=fr, awt.toolkit=sun.awt.windows.WToolkit, config.trace=loads, java.vm.info=mixed mode, java.version=1.7.0_45, java.ext.dirs=C:\Program Files\Java\jdk1.7.0_45\jre\lib\ext;C:\Windows\Sun\Java\lib\ext, sun.boot.class.path=C:\Program Files\Java\jdk1.7.0_45\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\jce.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.7.0_45\jre\lib\jfr.jar;C:\ProgramFiles\Java\jdk1.7.0_45\jre\classes, java.vendor=Oracle Corporation, file.separator=\, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, sun.cpu.endian=little, sun.io.unicode.encoding=UnicodeLittle, sun.desktop=windows, sun.cpu.isalist=amd64}Loading config from class loader sbt.PluginManagement$PluginClassLoader@1461e84e but there were no resources called local-dev.confexception loading local-dev.conf: java.io.IOException: resource not found on classpath: local-dev.confcom.typesafe.config.ConfigException$IO: local-dev.conf: java.io.IOException: resource not found on classpath: local-dev.conf
at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:183)at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:170)at com.typesafe.config.impl.Parseable.parse(Parseable.java:227)at com.typesafe.config.ConfigFactory.parseResources(ConfigFactory.java:716)
at com.typesafe.config.ConfigFactory.loadDefaultConfig(ConfigFactory.java:229)at com.typesafe.config.ConfigFactory.loadDefaultConfig(ConfigFactory.java:193)at com.typesafe.config.ConfigFactory.loadDefaultConfig(ConfigFactory.java:189)at com.typesafe.config.ConfigFactory.access$000(ConfigFactory.java:38)at com.typesafe.config.ConfigFactory$1.call(ConfigFactory.java:302)at com.typesafe.config.ConfigFactory$1.call(ConfigFactory.java:299)at com.typesafe.config.impl.ConfigImpl$LoaderCache.getOrElseUpdate(ConfigImpl.java:58)at com.typesafe.config.impl.ConfigImpl.computeCachedConfig(ConfigImpl.java:86)at com.typesafe.config.ConfigFactory.load(ConfigFactory.java:299)at akka.actor.ActorSystem$$anonfun$5.apply(ActorSystem.scala:140)at akka.actor.ActorSystem$$anonfun$5.apply(ActorSystem.scala:140)at scala.Option.getOrElse(Option.scala:120)at akka.actor.ActorSystem$.apply(ActorSystem.scala:140)at akka.actor.ActorSystem$.apply(ActorSystem.scala:108)at com.typesafe.sbt.web.SbtWeb$$anonfun$com$typesafe$sbt$web$SbtWeb$$load$1$$anonfun$43.apply(SbtWeb.scala:417)at com.typesafe.sbt.web.SbtWeb$$anonfun$com$typesafe$sbt$web$SbtWeb$$load$1$$anonfun$43.apply(SbtWeb.scala:417)at com.typesafe.sbt.web.SbtWeb$.com$typesafe$sbt$web$SbtWeb$$withActorClassloader(SbtWeb.scala:451)at com.typesafe.sbt.web.SbtWeb$$anonfun$com$typesafe$sbt$web$SbtWeb$$load$1.apply(SbtWeb.scala:417)at com.typesafe.sbt.web.SbtWeb$$anonfun$com$typesafe$sbt$web$SbtWeb$$load$1.apply(SbtWeb.scala:416)at scala.Option.fold(Option.scala:157)at com.typesafe.sbt.web.SbtWeb$.com$typesafe$sbt$web$SbtWeb$$load(SbtWeb.scala:419)at com.typesafe.sbt.web.SbtWeb$$anonfun$globalSettings$1$$anonfun$apply$1.apply(SbtWeb.scala:131)at com.typesafe.sbt.web.SbtWeb$$anonfun$globalSettings$1$$anonfun$apply$1.apply(SbtWeb.scala:131)at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:55)at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:55)at sbt.Project$.setProject(Project.scala:290)at sbt.BuiltinCommands$.doLoadProject(Main.scala:476)at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:467)at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:467)at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)at sbt.Command$.process(Command.scala:95)at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:100)at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:100)at sbt.State$$anon$1.process(State.scala:179)at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:100)at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:100)at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)at sbt.MainLoop$.next(MainLoop.scala:100)at sbt.MainLoop$.run(MainLoop.scala:93)at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:71)at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:66)at sbt.Using.apply(Using.scala:25)at sbt.MainLoop$.runWithNewLog(MainLoop.scala:66)at sbt.MainLoop$.runAndClearLast(MainLoop.scala:49)at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:33)at sbt.MainLoop$.runLogged(MainLoop.scala:25)at sbt.StandardMain$.runManaged(Main.scala:57)at sbt.xMain.run(Main.scala:29)at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:57)at xsbt.boot.Launch$.withContextLoader(Launch.scala:77)at xsbt.boot.Launch$.run(Launch.scala:57)at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)at xsbt.boot.Launch$.launch(Launch.scala:65)at xsbt.boot.Launch$.apply(Launch.scala:16)at xsbt.boot.Boot$.runImpl(Boot.scala:32)at xsbt.boot.Boot$.main(Boot.scala:21)at xsbt.boot.Boot.main(Boot.scala)Caused by: java.io.IOException: resource not found on classpath: local-dev.confat com.typesafe.config.impl.Parseable$ParseableResources.rawParseValue(Parseable.java:576)at com.typesafe.config.impl.Parseable$ParseableResources.rawParseValue(Parseable.java:554)at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:176)
at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:170)at com.typesafe.config.impl.Parseable.parse(Parseable.java:227)at com.typesafe.config.ConfigFactory.parseResources(ConfigFactory.java:716)
at com.typesafe.config.ConfigFactory.loadDefaultConfig(ConfigFactory.java:229)at com.typesafe.config.ConfigFactory.loadDefaultConfig(ConfigFactory.java:193)at com.typesafe.config.ConfigFactory.loadDefaultConfig(ConfigFactory.java:189)at com.typesafe.config.ConfigFactory.access$000(ConfigFactory.java:38)at com.typesafe.config.ConfigFactory$1.call(ConfigFactory.java:302)at com.typesafe.config.ConfigFactory$1.call(ConfigFactory.java:299)at com.typesafe.config.impl.ConfigImpl$LoaderCache.getOrElseUpdate(ConfigImpl.java:58)at com.typesafe.config.impl.ConfigImpl.computeCachedConfig(ConfigImpl.java:86)at com.typesafe.config.ConfigFactory.load(ConfigFactory.java:299)at akka.actor.ActorSystem$$anonfun$5.apply(ActorSystem.scala:140)at akka.actor.ActorSystem$$anonfun$5.apply(ActorSystem.scala:140)at scala.Option.getOrElse(Option.scala:120)at akka.actor.ActorSystem$.apply(ActorSystem.scala:140)at akka.actor.ActorSystem$.apply(ActorSystem.scala:108)