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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via liferay.com by Unknown author, 1 year ago
java.lang.ClassCastException: org.apache.cxf.jaxrs.client.ClientProviderFactory cannot be cast to org.apache.cxf.jaxrs.client.ClientProviderFactory
via Stack Overflow by Zahid Ghafoor
, 2 years ago
java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [org.apache.cxf.jaxrs.impl.MetadataMap], because it has not yet been started, or was already stopped
via GitHub by littleffox
, 9 months ago
java.lang.ClassCastException: org.apache.cxf.jaxrs.provider.JAXBElementProvider cannot be cast to javax.ws.rs.ext.MessageBodyReader 2017-04-01 22:40:57,313[INFO ]pool-7-thread-1[com.huawei.genexspace.platform.aop.TaskInfoPushingAspect.sendInfo(TaskInfoPushingAspect.java:199)] -444444444444444444444444444444444444444444444444444444444444
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(JAXRSClientFactoryBean.java:233)
at org.apache.cxf.jaxrs.client.spec.ClientImpl$WebTargetImpl.initTargetClientIfNeeded(ClientImpl.java:277)
at org.apache.cxf.jaxrs.client.spec.ClientImpl$WebTargetImpl.request(ClientImpl.java:238)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.