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:
Upgrading to apache cxf to 3.2.0 fixed the issue for Spring Framework 5.0.1
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.
Bumping CXF from 2.7.18 to 3.2.0 fixed this issue for me.
CXF needs to be bumped to major version 3, which supports Spring 4.2.x.
Note that OP used CXF 2.7.18 for artifact cxf-bundle. This is what was causing the trouble.
That version of cxf is not compatible with Spring 4.2.x - those methods were deprecated in Spring 3.1 and were removed in Spring 4.2.
See the commit here. CXF needs to change the method call to use ClassUtils#isCglibProxyClass(Class)
.
You'll have to check with the CXF folks to see if they have a version that works with Spring 4.2.