cxf-api-2.7.18 - org.apache.cxf.service.model.MessageInfo
cxf-core-3.1.11 - org.apache.cxf.service.model.MessageInfo
Both the jars have same class and same package structure.
I am getting
java.lang.NoSuchMethodError:
org.apache.cxf.service.model.MessageInfo.getFirstMessagePart()
org/apache/cxf/service/model/MessagePartInfo;
getFirstMessagePart() method is available in cxf-core-3.1.11 jar. I have generated the war using Apache Maven 3.3.9 version and deployed it in tomcat server 8. At runtime, looking for the getFirstMessagePart() in cxf-api-2.7.18 which is not available. Seems like I have to give cxf-core-3.1.11 jar preference first. How should I do that? Could anyone help me on this?
I am using Java 8 and spring 4.1.7.release