I have created a soap web service using spring 4.2.4, apache cxf 3.1.4 and maven 3.0. When I try to deploy the application, I am getting an error like below:
Another way to avoid this problem while still using CXF 2.7.18 is to add the following system property: -Dorg.apache.cxf.useSpringClassHelpers=false. This makes CXF avoid Spring helpers usage, so the problem goes away.
Please note that CXF 2.7.18 is an ancient version, it has unfixed vulnerabilities and the best way to go is to upgrade it to the recent version as another answer suggests.