java.lang.RuntimeException: java.lang.ClassCastException: org.apache.cxf.jaxrs.client.ClientProviderFactory cannot be cast to org.apache.cxf.jaxrs.client.ClientProviderFactory

liferay.com | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    JAX-RS Client in Liferay 7 - Community Forums | Liferay

    liferay.com | 7 months ago
    java.lang.RuntimeException: java.lang.ClassCastException: org.apache.cxf.jaxrs.client.ClientProviderFactory cannot be cast to org.apache.cxf.jaxrs.client.ClientProviderFactory
  2. 0

    Issue connecting to remote consul endpoint

    GitHub | 1 year ago | alex-glv
    com.orbitz.consul.ConsulException: Error connecting to Consul

    Root Cause Analysis

    1. java.lang.RuntimeException

      java.lang.ClassCastException: org.apache.cxf.jaxrs.client.ClientProviderFactory cannot be cast to org.apache.cxf.jaxrs.client.ClientProviderFactory

      at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient()
    2. Apache CXF JAX-RS Client
      ClientImpl$WebTargetImpl.request
      1. org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:233)
      2. org.apache.cxf.jaxrs.client.spec.ClientImpl$WebTargetImpl.initTargetClientIfNeeded(ClientImpl.java:277)
      3. org.apache.cxf.jaxrs.client.spec.ClientImpl$WebTargetImpl.request(ClientImpl.java:238)
      4. org.apache.cxf.jaxrs.client.spec.ClientImpl$WebTargetImpl.request(ClientImpl.java:291)
      4 frames