I am evaluating HiveMQ and its Kafka Extension with a trial license for a proof of concept.
I have the HiveMQ broker running in an EKS cluster the the broker starts up and works fine.
I have created a configMap using kubectl for the Kafka Extension while updating my hivemq installation and enabling the kafka extenstion, I am getting the following exception in the hivemq pod
2022-11-02 21:00:58,029 INFO - Starting extension with id "hivemq-kafka-extension" at /opt/hivemq/extensions/hivemq-kafka-extension
2022-11-02 21:00:58,038 ERROR - Error in the Kafka Extension. Could not initialize XML parser
javax.xml.bind.JAXBException: Error while searching for service [javax.xml.bind.JAXBContextFactory]
at javax.xml.bind.ContextFinder$1.createException(Unknown Source)
at javax.xml.bind.ContextFinder$1.createException(Unknown Source)
at javax.xml.bind.ServiceLoaderUtil.firstByServiceLoader(Unknown Source)
at javax.xml.bind.ContextFinder.find(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at a.e.<init>(Unknown Source)
at a.a.<init>(Unknown Source)
at a.c.<init>(Unknown Source)
at o.o.a(Unknown Source)
at o.r.a(Unknown Source)
at o.r.a(Unknown Source)
at o.r.get(Unknown Source)
at dagger.internal.DoubleCheck.get(Unknown Source)
at q.f.a(Unknown Source)
at q.f.get(Unknown Source)
at dagger.internal.DoubleCheck.get(Unknown Source)
at n.b.b(Unknown Source)
at com.hivemq.extensions.kafka.KafkaExtensionMain.extensionStart(Unknown Source)
at hmq.da.l.a(Source.java:140)
at hmq.da.m.d(Source.java:293)
at hmq.dI.e.c(Source.java:82)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(Source.java:212)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.util.ServiceConfigurationError: javax.xml.bind.JAXBContextFactory: com.sun.xml.bind.v2.JAXBContextFactory not a subtype
at java.base/java.util.ServiceLoader.fail(Unknown Source)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(Unknown Source)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(Unknown Source)
at java.base/java.util.ServiceLoader$2.hasNext(Unknown Source)
at java.base/java.util.ServiceLoader$3.hasNext(Unknown Source)
... 25 common frames omitted
2022-11-02 21:00:58,038 ERROR - Not able to start Kafka extension. Reason:
2022-11-02 21:00:58,039 INFO - Startup of extension with id "hivemq-kafka-extension" was prevented by the extension itself, reason: Not able to start Kafka extension, reason: javax.xml.bind.JAXBException: Error while searching for service [javax.xml.bind.JAXBContextFactory]
- with linked exception:
[java.util.ServiceConfigurationError: javax.xml.bind.JAXBContextFactory: com.sun.xml.bind.v2.JAXBContextFactory not a subtype]. Extension will be disabled.
Any idea why the extension would complain about the JAXB library and not start up.