Configuration error when deploying Akka application in fat jar on Jboss

Hello there,

I’m trying to deploy an Akka application in Scala on a Jboss server using sbt assembly.

I have a configuration file named application.conf under resources folder and after the assembly, it is correctly packaged inside the jar with the concat strategy. However, at application startup I get this error :

09:53:36,114 WARN  [org.keycloak.services] (default task-236) KC-SERVICES0013: Failed authentication: com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka'
	at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:156)
	at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:149)
	at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
	at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:188)

It seems that the configuration file in the jar is not loaded at all. Any idea on how to solve this ?