This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-02
Channels
- # announcements (5)
- # beginners (36)
- # biff (2)
- # calva (51)
- # clojure (12)
- # clojure-austin (7)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (63)
- # clojure-uk (2)
- # community-development (5)
- # core-typed (10)
- # datomic (9)
- # graalvm (6)
- # honeysql (1)
- # jobs (4)
- # leiningen (14)
- # london-clojurians (1)
- # lsp (23)
- # malli (88)
- # missionary (10)
- # off-topic (41)
- # practicalli (7)
- # re-frame (1)
- # reitit (5)
- # releases (2)
- # remote-jobs (1)
- # ring (11)
- # squint (2)
- # xtdb (5)
i made a spring boot webflux hello world, lein run
works fine, but when i do lein uberjar
and the java -jar my-standalone.jar
doesn't work
can leiningen make uberjars for spring-boot? i should do something extra to make it work?
java -jar demo-lein-0.1.0-SNAPSHOT-standalone.jar
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.2.3)
18:54:19.529 [main] INFO com.example.demo.DemoApplication -- Starting DemoApplication using Java 17.0.10 with PID 24345 (/home/white/IdeaProjects/java-spring/java-spring-uberjar/demo-lein/demo-lein-0.1.0-SNAPSHOT-standalone.jar started by white in /home/white/IdeaProjects/java-spring/java-spring-uberjar/demo-lein)
18:54:19.534 [main] INFO com.example.demo.DemoApplication -- No active profile set, falling back to 1 default profile: "default"
18:54:20.866 [main] INFO com.example.demo.DemoApplication -- Started DemoApplication in 1.552 seconds (process running for 1.879)
and then terminates, looks like Netty doesn't start at all
lein run
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.2.3)
2024-04-02T18:55:28.314+03:00 INFO 24408 --- [ main] com.example.demo.DemoApplication : Starting DemoApplication using Java 17.0.10 with PID 24408 (/home/white/IdeaProjects/java-spring/java-spring-uberjar/demo-lein/target/classes started by white in /home/white/IdeaProjects/java-spring/java-spring-uberjar/demo-lein)
2024-04-02T18:55:28.317+03:00 INFO 24408 --- [ main] com.example.demo.DemoApplication : No active profile set, falling back to 1 default profile: "default"
2024-04-02T18:55:29.629+03:00 INFO 24408 --- [ main] o.s.b.web.embedded.netty.NettyWebServer : Netty started on port 8080
2024-04-02T18:55:29.644+03:00 INFO 24408 --- [ main] com.example.demo.DemoApplication : Started DemoApplication in 1.729 seconds (process running for 2.811)
this is ok, server listens on 8080
Looks like the correct link is https://github.com/tkaryadis/demo-leiningen-webflux
Oh, except that's empty...
@U68Q5G1BJ Maybe you didn't push the code, or the repo is private?
no i am sorry https://github.com/tkaryadis/demo-lein , i forgot to make it public
now its ok, i will be back in 30 min i have to do something, thank you for trying to help me, first time i tried uberjar with spring-webflux
https://clojurians.slack.com/archives/C0AB48493/p1712075889242159?thread_ts=1712074314.329249&cid=C0AB48493 I confirm that the 404 disappeared.
I had a look and I don't know why it works with lein run
but fails to start Netty when bundled as a JAR...