Open akrain opened 3 years ago
To add more context, I am using Azul JDK 8
I was able to fix the issue by replacing the following dependencies
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-core</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
</dependency>
with
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.2.11</version>
</dependency>
Hi,
I have no idea what Azul JDK 8 is, :-)
But FWIW I haven't tried running on anything older than JDK 11 for a long time now.
The com.sun.xml.bind dependencies is stuff that used to be part of the runtime up and including Java 8, and had to be included extra when moving to Java 11. No idea why adding that give a classNotFound...? I can't remember that from when I still was using java 8 on some computers.
I've also no idea why you needed to add jaxb-runtime. And I'm also curious why that version did work...?
Jersey, and all of its dependencies, are pulled in by this karaf feature: https://github.com/steinarb/jersey-karaf-feature and that feature currently pulls in jersey 2.33.
Followed all the steps mentioned in the Readme with karaf 4.2.11. The feature got installed and Web UI comes up after that. Clicking on the increment button doesn't do anything. In the browser network console, I can see HTTP 404 for the /counter (GET as well as POST) API calls. Here is a sample response for the same:
Upon further inspection, found thiserror in karaf logs: