microprofile.training: Java 14 to Java 15 Update and MP REST Client CXF to RESTEasy Migration

Update from Java 14 with --enable-preview to Java 15, fixing Apache CXFs:

java.lang.IllegalAccessError: class org.apache.cxf.microprofile.client.MicroProfileClientProviderFactory$$Lambda$345/0x0000000800c309b0 tried to access protected method 'int org.apache.cxf.jaxrs.provider.ProviderFactory.compareCustomStatus(org.apache.cxf.jaxrs.model.ProviderInfo, org.apache.cxf.jaxrs.model.ProviderInfo)' (org.apache.cxf.microprofile.client.MicroProfileClientProviderFactory$$Lambda$345/0x0000000800c309b0 and org.apache.cxf.jaxrs.provider.ProviderFactory are in unnamed module of loader 'app'

by switching from cxf-rt-rs-mp-client to resteasy-client-microprofile.

A free bonus video from the microprofile.training video course:

Also checkout the corresponding repository: github.com/adambien/microprofile.training.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments
License