cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudha Chinnappa <sudha.chinna...@spigit.com>
Subject CXF-frontend-3.1.8 not compatible with cxf-common-utilities-2.5.11
Date Wed, 26 Oct 2016 18:10:06 GMT
Hello,

I am upgrading cxf to the latest version 3.1.8 and facing this particular
problem with ClassHelper.class in common utils.

JAXRSServiceFactoryBean class in xf-rt-frontend-jaxrs-3.1.8.jar has a
reference to

Class<?> realClass = ClassHelper.getRealClass(getBus(), bean); //Line 223

but ClassHelper from cxf-common-utilities-2.5.11.jar does not have that
method.

Can you please point me to the right jar that I should be using. I went
through the entire version list here but couldn't find the method in any of
the classHelper class

http://grepcode.com/file/repo1.maven.org/maven2/org.apache.cxf/cxf-common-utilities/2.3.0/org/apache/cxf/common/util/ClassHelper.java/

Here is my build.gradle file

compile group: 'org.apache.cxf', name: 'cxf-rt-frontend-jaxws', version:
'3.1.8'

compile group: 'org.apache.cxf', name: 'cxf-rt-bindings-xml', version:
'3.1.8'

compile group: 'org.apache.cxf', name: 'cxf-rt-ws-security', version:
'3.1.8'

compile group: 'org.apache.cxf', name: 'cxf-rt-bindings-soap', version:
'3.1.8'

compile group: 'org.apache.cxf', name: 'cxf-rt-frontend-jaxrs', version:
'3.1.8'

compile group: 'org.apache.cxf', name: 'cxf-rt-transports-http', version:
'3.1.8'

compile group: 'org.apache.cxf', name: 'cxf-rt-bindings-http', version:
'2.5.11'

//compile group: 'org.apache.cxf', name: 'cxf-common-utilities', version:
'2.5.11'

compile group: 'org.apache.cxf', name: 'cxf-api', version: '2.5.11' //Do
not use 2.7.18. The above cxf jars has internal dependency to 2.5.11 version



and here is the snippet of the exception in the console

SEVERE: Servlet [SpigitWebServiceCXFServlet] in web application [] threw
load() exception

java.lang.NoSuchMethodError:
org.apache.cxf.common.util.ClassHelper.getRealClass(Lorg/apache/cxf/Bus;Ljava/lang/Object;)Ljava/lang/Class;

at org.apache.cxf.jaxrs.JAXRSServiceFactoryBean.setResourceClassesFromBeans(
JAXRSServiceFactoryBean.java:223)

Thanks
-- 
*Sudha Chinnappa*
*Spigit* // *Software Engineer*
mobile 1.510-304-4380
275 Battery Street
San Francisco, CA 94111
LinkedIn  <https://www.linkedin.com/in/sudha-chinnappa-3807191>

Great overview video of Spigit: Watch
<https://www.youtube.com/watch?v=dep7HvMdrso>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message