Hi Why is cxf-common-utilities on the classpath if you use CXF 3.1.8 ?
Thanks, Sergey On 26/10/16 19:10, Sudha Chinnappa wrote:
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
-- Sergey Beryozkin Talend Community Coders http://coders.talend.com/
