Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lein uberjar - No configuration setting found for key 'akka.version' #1

Open
humorless opened this issue Nov 4, 2017 · 1 comment

Comments

@humorless
Copy link
Owner

humorless commented Nov 4, 2017

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.

@humorless
Copy link
Owner Author

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:

  1. Find out which jar dependency related to akka:
    lein deps-tree | grep akka
  2. 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
  3. Manually merge the reference.conf
  4. Update the intowow.jar
    jar uf intowow.jar reference.conf

Wait for a more elegant way to solve this kind of issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant