mercredi 14 novembre 2018

cxf deployment :No services have been found.

No services have been found.

This problem occurs when you want to deploy a web service using cxf on server like tomcat:

and you have a deployment descriptor like this:

<servlet>
 <servlet-name>cxfservlet</servlet-name>
 <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
 <load-on-startup>1</load-on-startup>
 </servlet>

  <servlet-mapping>
 <servlet-name>cxfservlet</servlet-name>
 <url-pattern>/services/*</url-pattern>
 </servlet-mapping>


And a configuration file for cxf .This file must have the name cxf-servlet.xml and this is a rule .

So to resolve this problem of  "No services have been found", you must verify the name of that file,first of all.