juxt

dominicm 2018-11-05T08:06:46.004Z

@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 🙂

dominicm 2018-11-05T08:07:23.004700Z

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

dominicm 2018-11-05T10:28:00.005100Z

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

kenny 2018-11-05T16:43:25.005500Z

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

dominicm 2018-11-05T18:45:38.005600Z

@kenny is there a logback jar?

kenny 2018-11-05T19:03:19.006Z

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

dominicm 2018-11-05T19:03:52.006600Z

@kenny hmm, okay. Which ones are there?

dominicm 2018-11-05T19:04:20.006700Z

@kenny how are you running your jar?

kenny 2018-11-05T19:04:23.006800Z

Unfortunately, it is not.

kenny 2018-11-05T19:04:38.007200Z

logback-core and logback-classic.

kenny 2018-11-05T19:04:55.007400Z

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

dominicm 2018-11-05T19:08:44.007800Z

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

kenny 2018-11-05T19:09:40.008200Z

Can I pass a CLI arg?

dominicm 2018-11-05T19:09:58.008300Z

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

dominicm 2018-11-05T19:13:37.008800Z

@kenny what do you mean, sorry?

kenny 2018-11-05T19:14:55.009Z

To the -main.

kenny 2018-11-05T19:15:11.009500Z

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

kenny 2018-11-05T19:18:40.010200Z

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

dominicm 2018-11-05T19:29:01.011200Z

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

dominicm 2018-11-05T19:29:19.011900Z

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

kenny 2018-11-05T19:39:14.012100Z

I can require my -main namespace.

kenny 2018-11-05T19:39:57.012500Z

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

dominicm 2018-11-05T20:19:17.013300Z

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

dominicm 2018-11-05T20:21:01.013800Z

I wonder if there's a missing dependency then.

dominicm 2018-11-05T20:21:42.014200Z

What were the names of the logback libraries you had?

kenny 2018-11-05T20:33:37.014500Z

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

dominicm 2018-11-05T21:15:48.014900Z

I mean in your jar @kenny

kenny 2018-11-05T21:16:32.015400Z

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

dominicm 2018-11-05T21:24:38.015800Z

I will try and create a minimal reproduction tomorrow.

kenny 2018-11-05T21:28:55.017Z

Ok. Let me know if I can help.