Hi Michael, it's quite old (tbh. 5 years 🙈) but maybe you can find something helpful https://github.com/ANierbeck/Karaf-Vertx/blob/master/Vertx-Http/src/main/java/de/nierbeck/example/vertx/http/VertxHttpServer.java I was experimenting with vert.x and Karaf at the time.
as it's 5 years ago, a lot could have changed by now. maybe it helps, maybe not 🙂 regards, Achim Am Mo., 18. März 2024 um 11:41 Uhr schrieb Jean-Baptiste Onofré < [email protected]>: > Hi Michael > > It looks like a ClassLoading issue (the import is there but the class > comes from another classloader). > > Did you try to set the TCCL just before creating the vertx HttpServer ? > > Regards > JB > > On Sun, Mar 17, 2024 at 5:54 PM Michael Elbaz <[email protected]> > wrote: > > > > Hello i use vertx on Karaf everything is ok but when i want to run an > vertx http server (just http) > > > > vertx.createHttpServer() > > .requestHandler(router) > > .listen(8080) > > .onSuccess(LOGGER::error) > > .onFailure(LOGGER::error); > > > > > > i get this error java.lang.NoClassDefFoundError: > javax/net/ssl/TrustManager (i also get this one in karaf log: Using the > default address resolver as the dns resolver could not be loaded) > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
