Fork me on GitHub
#juxt
<
2018-11-05
>
dominicm08:11:46

@kenny java -Done-jar.verbose=true -jar <one-jar.jar> might be useful. Also doing jar tf one-jar.jar will help us check what's in the jar and ensure it is including your dependency on logback 🙂

dominicm08:11:23

If your application is open source / you can create a repo I can run, I can do these things myself 🙂

kenny19:11:23

Unfortunately, it is not.

dominicm19:11:58

I guess we will have to try get a repo, or hopefully stumble into the solution

dominicm10:11:00

Oh, I should mention <one-jar.jar> just means your jar that you're running

kenny16:11:25

@dominicm What should I be looking for in there? I get a ton of output.

dominicm18:11:38

@kenny is there a logback jar?

kenny19:11:19

@dominicm Yes, in the lib directory in the jar.

dominicm19:11:52

@kenny hmm, okay. Which ones are there?

dominicm19:11:20

@kenny how are you running your jar?

kenny19:11:38

logback-core and logback-classic.

kenny19:11:55

java -jar command-processor-standalone.jar -m compute.command-processor.core command-processor

dominicm19:11:44

java -jar command-processor-standalone.jar --one-jar-version does this work? @kenny

kenny19:11:40

Can I pass a CLI arg?

dominicm19:11:37

@kenny what do you mean, sorry?

kenny19:11:55

To the -main.

kenny19:11:11

Like in this command: java -jar command-processor-standalone.jar -m compute.command-processor.core command-processor I pass the arg command-processor.

kenny19:11:40

Ah, I thought that was going to run the -main. Yes, it works:

java -jar command-processor-standalone.jar --one-jar-version
One-JAR version 0.97-rc12-20110504-1459

dominicm19:11:01

I guess we start with the repl. Instead of -m, try -r? That should give you a repl

dominicm19:11:19

Try requiring a few of your dependencies, see if they will load?

kenny19:11:14

I can require my -main namespace.

kenny19:11:57

If I try and run my -main function, I get the java.lang.ClassNotFoundException: ch.qos.logback.core.AppenderBase exception.

dominicm20:11:17

That's interesting. I guess something that's dynamically loading isn't present.

dominicm20:11:01

I wonder if there's a missing dependency then.

dominicm20:11:42

What were the names of the logback libraries you had?

kenny20:11:37

It's really just this: ch.qos.logback/logback-classic {:mvn/version "1.2.3"}.

dominicm21:11:48

I mean in your jar @kenny

kenny21:11:32

5946D837FE6F960C02A53EDA7A6926ECC3C758BBDD69AA453EE429F858217F22-logback-core-1.2.3.jar
FB53F8539E7FCB8F093A56E138112056EC1DC809EBB020B59D8A36A5EBAC37E0-logback-classic-1.2.3.jar

dominicm21:11:38

I will try and create a minimal reproduction tomorrow.

kenny21:11:55

Ok. Let me know if I can help.