It sounds like either the servlet is not registered in your web.xml (you would need to provide the web.xml for us to look at) or the servlet is registered, but it's not deploying any services. You mention not wanting to use spring. In that case, you would likely need to subclass the CXFNonSpringServlet and have it call Endpoint.publish(...) or similar to publish your services. The spring servlet allows configuring all of that via the spring xml files.
Dan On Tuesday, August 02, 2011 12:30:41 PM [email protected] wrote: > Dear User support: > > > I write to you in the hope that you might have information (such as sample > code) about the following type of situation, in order that my problem might > be solved. (I would need both Service and Client Java sample code). > > I have just read "Apache CXF Web Service Development, by Naveen Balani and > Rajeev Hathi", and I find it is generally very good, but in my view it > rests very much on spring configuration, which I am not so fond of since it > makes testing and trouble-shooting much less transparent (at least for me > with my knowledge), and also it appears to me that the book lacks Java code > for the type of problem I have at hand. > > Further, I do not find what I look for at the Apache CXF web site, under > documentation. > > Well, I have created a Web Service - "CommitmentService" (using CXF 2.4.0, > created from a WSDL by use of CXF tools), and it contains (both Addressing > and) complex parameter objects (i. e. not simple objects of type String, and > the like, but instead for instance a "RequestContext" object, which in turn > consists of several String parameters). > This service I want to make available on Tomcat (7.0.12 on a Windows XP > platform, using Java 6.0.x). > However, after having built a war (using Ant 1.7.x, IDE is Eclipse 3.5.2 > Galileo) and deployed it on Tomcat, the web service does not appear to be > available, at least it can not receive any messages. > > As far as I can understand, the cause of the error is that the web service > lacks some Java code that will assist in receiving and managing messages. > Only, I do not know what objects I will need for this > My problem is that I do not know what objects I need to use in the > WebService - in "CommitmentServicePortTypeImpl" - , in order to receive a > message from a client. > > On apache CXF web site, I did find out what object I need on the client > side, namely "JaxWsDynamicClientFactory", and "Client". But here too, for > some reason, the message can not be sent. > > I have worked previously with Axis2 (1.4.1), but find that CXF is so > different, and most samples display either only simple cases with String > parameters or use Spring (and or Camel - also with Spring). > > Please find enclosed, for general information about the service, the wsdl > file in question, as well as the WSDL2Java build script (having been renamed > from .cmd to .txt). > > If you could give me some hint as to which objects I will need to use in my > web service, I would be most thankful. > > > Best Regards, Runo > > Med vänlig hälsning / Best regards, > > Runo Barrdahl, civ. ing, tekn. lic. > > > Tieto Sweden AB, Financial Services > mail: [email protected] > mobil: +46 (0)709 790 407 > fax: +46 (0)12 345 6789 > web: www.tieto.com > > Meet the new Tieto: www.tieto.com/newtieto -- Daniel Kulp [email protected] http://dankulp.com/blog Talend - http://www.talend.com
