CXF-6073: cxf-wsn installation in Karaf fails

Fix for https://issues.apache.org/jira/browse/CXF-6073. 

Please backport this fix in 3.0.x and 2.7.x too