Take the 2-minute tour ×

I have a simple application with an web service created with Apache CXF. This application works when I run the server and the client (as Java applications). When I try to access the application /services URL which is mapped in web.xml, Tomcat gives me 404 error. When I run the project I receive:

org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service {http://sendmessage/}SendMessage

If anyone has any hints related to this error I would be glad to hear them. (I searched google and couldn't find something relevant to my situation)

Thank you!

share|improve this question
Here is a related question. stackoverflow.com/questions/3006185/… –  Theo Briscoe Dec 6 '11 at 1:34

1 Answer 1

I had same error, mine was related to namespace which were different in wsdl and webservice. So i changed them to same.


<wsdl:definitions name=""

Webservice class:

@WebService(targetNamespace = "http://www.example.org/yourservice/",
share|improve this answer

Your Answer


