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
