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
*-*<http://localhost:8080/fetchfirst-webservice-1.0-SNAPSHOT/customerservice#> <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 >
