On Tue, Aug 13, 2024 at 07:31:36PM GMT, apache-karaf-user.pyr3x.com via user 
wrote:
> Hello,
> 
> I'm having an issue creating a javax.ws.rs.client.Client. I'm
> programming against the Java EE APIs for javax.ws.rs. I've brought in
> the 'aries-jax-rs-whiteboard-jackson' feature which should ultimately
> bring in an implementation that can be located. It seems after googling
> around that the ProviderLocator was used internally and usually shaded.
> At some point this changed, and bringing it in as a depndency manually
> still fails.
> 
> Perhaps this is relevant? https://issues.apache.org/jira/browse/TOMEE-2690
> 
> java.lang.NoClassDefFoundError: 
> org/apache/geronimo/osgi/locator/ProviderLocator
>         at javax.ws.rs.client.ClientFinder.find(ClientFinder.java:46) ~[?:?]
>         at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:44) 
> ~[?:?]
>         at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:55) 
> ~[?:?]
> 
> Any help would be appreciated.
> 
> --
> Chaz

I noticed that the Apache Aries JAX-RS Specification API jar has the
following header:

Bundle-ClassPath
    .,lib/geronimo-osgi-locator.jar

Could this be causing the issue?

-- 
Chaz
  • P... apache-karaf-user.pyr3x.com via user
    • ... apache-karaf-user.pyr3x.com via user
      • ... Paul Spencer
        • ... Basheeruddin Ahmed -X (syedbahm - LTIMINDTREE LIMITED at Cisco) via user
        • ... apache-karaf-user.pyr3x.com via user
          • ... Paul Spencer
            • ... apache-karaf-user.pyr3x.com via user

Reply via email to