I forgot to mention one thing is that I also import one more XML in my cxf-rest.xml as suggested by IAN and GABO i.e. <import resource="cxf-extension-jaxrs-binding.xml"/>
Thanks IAN and GABO for providing me valuable inputs. Reagrds, FS On Thu, Oct 30, 2008 at 10:17 AM, Forum Specific <[EMAIL PROTECTED]>wrote: > Hi, > > > > Thanks for the reply. > > The problem has been fixed.The problem was with the mime type which > client program was sending to Rest-Web service.Now my problem has been fixed > and it is working fine now. > > > > Thanks, > > FS > > > On Thu, Oct 30, 2008 at 9:56 AM, Gabo Manuel <[EMAIL PROTECTED]>wrote: > >> Hi, >> >> Well, the error message speaks for itself, >> >> No operation matching request path /customerservice/ is found >> >> If the application is deployed in tomcat then the access url is as >> follows: >> >> http://localhost:8080/<webapps folder>/services/customerservice/ >> >> Some notes: >> >> webapps folder should match the folder name as is. >> the services keyword is dependent on the web.xml configuration. >> >> Also, the customerservice should match the path you stated in the >> annotation of the class + the path stated in the annotation of the method. >> >> Hth. >> >> Forum Specific wrote: >> >>> Hi Ian, >>> >>> Thanks for getin matter insight.I have already fixed that problem and the >>> problem was that I was following some other example which I have >>> implemented >>> in JAX-WS earlier.So finally I left all the things and just strictly >>> followed the sample code which is given in CXF-2.1.2 . >>> So now I am not getting any configuration issues , But I am getting one >>> exception on client console is >>> >>> >>> >>> <ns1:XMLFault xmlns:ns1="*http://cxf.apache.org/bindings/xformat*"> >>> * * <ns1:faultstring xmlns:ns1="* >>> http://cxf.apache.org/bindings/xformat*">*.No >>> operation matching request path /customerservice/ is found, ContentType : >>> */*, Accept : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, >>> application/vnd.ms-excel, application/vnd.ms-powerpoint, >>> application/msword, >>> application/x-shockwave-flash, application/x-ms-application, >>> application/x-ms-xbap, application/vnd.ms-xpsdocument, >>> application/xaml+xml, >>> */*.*</ns1:faultstring> >>> * * </ns1:XMLFault> >>> >>> >>> Regarding this I have already sent mail on this forum. >>> If you please help me out to fix this problem then It will be greatful. >>> >>> Regards, >>> FS >>> >>> >>> >>> >>> >>> On Wed, Oct 29, 2008 at 5:40 PM, Ian Roberts <[EMAIL PROTECTED] >>> >wrote: >>> >>> >>> >>>> Forum Specific wrote: >>>> >>>> >>>>> Hi, >>>>> >>>>> Whatever you have suggested I made changes according to that.But still >>>>> facing the same prob.I am sending you my web.xml,cxf-rest.xml files >>>>> also >>>>> please find it in the attachment.I think some prob is in the >>>>> CXF-rest.xml file only. I am not having any document for >>>>> <jaxrs:server> tag.So i am not clear abt this particular tag .How this >>>>> tag is work around. >>>>> >>>>> >>>> Gabo has already mentioned the examples at >>>> http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html, I suggest you >>>> read >>>> this page and follow the example carefully. In particular: >>>> >>>> - The main thing you're currently missing is the Spring context loader >>>> listener in your web.xml >>>> >>>> <listener> >>>> <listener-class> >>>> org.springframework.web.context.ContextLoaderListener >>>> </listener-class> >>>> </listener> >>>> >>>> - change the imports in your cxf-rest.xml to match the ones in the >>>> example, i.e. >>>> >>>> <import resource="classpath:META-INF/cxf/cxf.xml" /> >>>> <import >>>> resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml" >>>> /> >>>> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> >>>> >>>> - delete the cxf-extension-*, cxf-servlet and cxf.xml files from your >>>> WEB-INF, they don't need to be there as the classpath: URLs will load >>>> them directly from inside the relevant JAR files. >>>> >>>> You don't need to import the http-binding extension, just the jaxrs one. >>>> >>>> Ian >>>> >>>> -- >>>> Ian Roberts | Department of Computer Science >>>> [EMAIL PROTECTED] | University of Sheffield, UK >>>> >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> No virus found in this incoming message. >>> Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: >>> 270.8.5/1755 - Release Date: 10/29/2008 5:27 PM >>> >>> >>> >> >
