java.io.IOException: resource not found on classpath: application.conf, application.json: java.io.IOException: resource not found on classpath: application.json, application.properties: java.io.IOException: resource not found on classpath: application.properties]


Solutions on the web

Solution icon of github
via GitHub by ignasi35
, 8 months ago
resource not found on classpath: application.conf, application.json: java.io.IOException: resource not found on classpath: application.json, application.properties: java.io.IOException: resource not found on classpath: application.properties]

Solution icon of github
resource not found on classpath: application.conf, application.json: java.io.IOException: resource not found on classpath: application.json, application.properties: java.io.IOException: resource not found on classpath: application.properties]

Solution icon of github
resource not found on classpath: application.conf, application.json: java.io.IOException: resource not found on classpath: application.json, application.properties: java.io.IOException: resource not found on classpath: application.properties]

Stack trace

java.io.IOException: resource not found on classpath: application.conf, application.json: java.io.IOException: resource not found on classpath: application.json, application.properties: java.io.IOException: resource not found on classpath: application.properties]
	at play.api.Configuration$.configError(Configuration.scala:154)
	at play.api.Configuration$.load(Configuration.scala:101)
	at play.api.Configuration$.load(Configuration.scala:109)
	at com.lightbend.lagom.scaladsl.client.LagomClientApplication.configuration$lzycompute(ServiceClient.scala:143)
	at com.lightbend.lagom.scaladsl.client.LagomClientApplication.configuration(ServiceClient.scala:143)
	at play.api.libs.ws.ahc.AhcWSComponents$class.wsClientConfig(AhcWS.scala:563)
	at com.example.lagom.client.Main$$anon$1.wsClientConfig$lzycompute(Main.scala:14)
	at com.example.lagom.client.Main$$anon$1.wsClientConfig(Main.scala:14)
	at play.api.libs.ws.ahc.AhcWSComponents$class.ahcWsClientConfig(AhcWS.scala:565)
	at com.example.lagom.client.Main$$anon$1.ahcWsClientConfig$lzycompute(Main.scala:14)
	at com.example.lagom.client.Main$$anon$1.ahcWsClientConfig(Main.scala:14)
	at play.api.libs.ws.ahc.AhcWSComponents$class.wsApi(AhcWS.scala:566)
	at com.example.lagom.client.Main$$anon$1.wsApi$lzycompute(Main.scala:14)
	at com.example.lagom.client.Main$$anon$1.wsApi(Main.scala:14)
	at play.api.libs.ws.ahc.AhcWSComponents$class.wsClient(AhcWS.scala:567)
	at com.example.lagom.client.Main$$anon$1.wsClient$lzycompute(Main.scala:14)
	at com.example.lagom.client.Main$$anon$1.wsClient(Main.scala:14)
	at com.lightbend.lagom.scaladsl.client.LagomServiceClientComponents$class.serviceClient(ServiceClient.scala:125)
	at com.lightbend.lagom.scaladsl.client.LagomClientApplication.serviceClient$lzycompute(ServiceClient.scala:135)
	at com.lightbend.lagom.scaladsl.client.LagomClientApplication.serviceClient(ServiceClient.scala:135)
	at com.example.lagom.client.Main$.delayedEndpoint$com$example$lagom$client$Main$1(Main.scala:20)
	at com.example.lagom.client.Main$delayedInit$body.apply(Main.scala:11)
	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:76)
	at scala.App$$anonfun$main$1.apply(App.scala:76)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
	at scala.App$class.main(App.scala:76)
	at com.example.lagom.client.Main$.main(Main.scala:11)
	at com.example.lagom.client.Main.main(Main.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
Caused by: com.typesafe.config.ConfigException$IO: application: application.conf: java.io.IOException: resource not found on classpath: application.conf, application.json: java.io.IOException: resource not found on classpath: application.json, application.properties: java.io.IOException: resource not found on classpath: application.properties
	at com.typesafe.config.impl.SimpleIncluder.fromBasename(SimpleIncluder.java:236)
	at com.typesafe.config.impl.ConfigImpl.parseResourcesAnySyntax(ConfigImpl.java:132)
	at com.typesafe.config.ConfigFactory.parseResourcesAnySyntax(ConfigFactory.java:1024)
	at com.typesafe.config.ConfigFactory.parseApplicationConfig(ConfigFactory.java:238)
	at com.typesafe.config.ConfigFactory.defaultApplication(ConfigFactory.java:519)
	at play.api.Configuration$$anonfun$3.apply(Configuration.scala:73)
	at play.api.Configuration$$anonfun$3.apply(Configuration.scala:69)
	at scala.Option.getOrElse(Option.scala:121)
	at play.api.Configuration$.load(Configuration.scala:69)
	... 33 more
Caused by: com.typesafe.config.ConfigException$IO: application.conf: java.io.IOException: resource not found on classpath: application.conf
	at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:188)
	at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:174)
	at com.typesafe.config.impl.Parseable.parse(Parseable.java:152)
	at com.typesafe.config.impl.SimpleIncluder.fromBasename(SimpleIncluder.java:185)
	... 41 more
Caused by: java.io.IOException: resource not found on classpath: application.conf
	at com.typesafe.config.impl.Parseable$ParseableResources.rawParseValue(Parseable.java:735)
	at com.typesafe.config.impl.Parseable$ParseableResources.rawParseValue(Parseable.java:710)
	at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:180)
	at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:174)
	at com.typesafe.config.impl.Parseable.parse(Parseable.java:152)
	at com.typesafe.config.impl.SimpleIncluder.fromBasename(SimpleIncluder.java:185)
	at com.typesafe.config.impl.ConfigImpl.parseResourcesAnySyntax(ConfigImpl.java:132)
	at com.typesafe.config.ConfigFactory.parseResourcesAnySyntax(ConfigFactory.java:1024)
	at com.typesafe.config.ConfigFactory.parseApplicationConfig(ConfigFactory.java:238)
	at com.typesafe.config.ConfigFactory.defaultApplication(ConfigFactory.java:519)
	at play.api.Configuration$$anonfun$3.apply(Configuration.scala:73)
	at play.api.Configuration$$anonfun$3.apply(Configuration.scala:69)
	at scala.Option.getOrElse(Option.scala:121)
	at play.api.Configuration$.load(Configuration.scala:69)
	at play.api.Configuration$.load(Configuration.scala:109)
	at com.lightbend.lagom.scaladsl.client.LagomClientApplication.configuration$lzycompute(ServiceClient.scala:143)
	at com.lightbend.lagom.scaladsl.client.LagomClientApplication.configuration(ServiceClient.scala:143)
	at play.api.libs.ws.ahc.AhcWSComponents$class.wsClientConfig(AhcWS.scala:563)
	at com.example.lagom.client.Main$$anon$1.wsClientConfig$lzycompute(Main.scala:14)
	at com.example.lagom.client.Main$$anon$1.wsClientConfig(Main.scala:14)
	at play.api.libs.ws.ahc.AhcWSComponents$class.ahcWsClientConfig(AhcWS.scala:565)
	at com.example.lagom.client.Main$$anon$1.ahcWsClientConfig$lzycompute(Main.scala:14)
	at com.example.lagom.client.Main$$anon$1.ahcWsClientConfig(Main.scala:14)
	at play.api.libs.ws.ahc.AhcWSComponents$class.wsApi(AhcWS.scala:566)
	at com.example.lagom.client.Main$$anon$1.wsApi$lzycompute(Main.scala:14)
	at com.example.lagom.client.Main$$anon$1.wsApi(Main.scala:14)
	at play.api.libs.ws.ahc.AhcWSComponents$class.wsClient(AhcWS.scala:567)
	at com.example.lagom.client.Main$$anon$1.wsClient$lzycompute(Main.scala:14)
	at com.example.lagom.client.Main$$anon$1.wsClient(Main.scala:14)
	at com.lightbend.lagom.scaladsl.client.LagomServiceClientComponents$class.serviceClient(ServiceClient.scala:125)
	at com.lightbend.lagom.scaladsl.client.LagomClientApplication.serviceClient$lzycompute(ServiceClient.scala:135)
	at com.lightbend.lagom.scaladsl.client.LagomClientApplication.serviceClient(ServiceClient.scala:135)
	at com.example.lagom.client.Main$.delayedEndpoint$com$example$lagom$client$Main$1(Main.scala:20)
	at com.example.lagom.client.Main$delayedInit$body.apply(Main.scala:11)
	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:76)
	at scala.App$$anonfun$main$1.apply(App.scala:76)
	at scala.collection.immutable.List.foreach(List.scala:381)
	at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
	at scala.App$class.main(App.scala:76)
	at com.example.lagom.client.Main$.main(Main.scala:11)
	at com.example.lagom.client.Main.main(Main.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)[trace]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago