You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used lein uberjar to build intowow.jar and run it with java -jar intowow.jar, it crashed as
Caused by: com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka.version'
After searching the stackoverflow, the crash reason is: There are two akka jar files that both have a reference.conf in them. These files are not correctly merged because (unsurprisingly) lein uberjar doesn't understand the nesting of the property key/values within them.
The text was updated successfully, but these errors were encountered:
My temporary solution is also manually merge the two reference.conf from org.spark-project.akka/akka-actor-2.10 and org.spark-project.akka/akka-remote_2.10
I took the following steps:
Find out which jar dependency related to akka: lein deps-tree | grep akka
Go to the ~/.m2/repository to find the corresponding jars and Get the reference.conf out from jar. jar xf akka-actor_2.10-2.2.3-shaded-protobuf.jar reference.conf
Manually merge the reference.conf
Update the intowow.jar jar uf intowow.jar reference.conf
Wait for a more elegant way to solve this kind of issue.
When I used
lein uberjar
to build intowow.jar and run it withjava -jar intowow.jar
, it crashed asCaused by: com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka.version'
After searching the stackoverflow, the crash reason is: There are two akka jar files that both have a
reference.conf
in them. These files are not correctly merged because (unsurprisingly) lein uberjar doesn't understand the nesting of the property key/values within them.The text was updated successfully, but these errors were encountered: