Hi

Sorry for a delay, I'm just back from a short break...
Perhaps using CXFNonSpringJAXRSServelt can help ?

http://cxf.apache.org/docs/jax-rs.html#JAX-RS-ConfiguringJAXRSservicesin
containerwithoutSpring

one can use a jaxrs.providers servlet parameter, listing all the
providers (separated by space, each one on the next line if needed)

Or do you have a CXF based application with Tomcat (6) embedded inside?

thanks, Sergey 

-----Original Message-----
From: Dave Wilson [mailto:d...@everydave.com] 
Sent: 26 October 2009 10:07
To: users@cxf.apache.org
Subject: Registering a custom MessageBodyReader with a non-Spring CXF
install

Hello all,

Please forgive me if the answer to this is some place obvious, but  
I've beat my head into mush and it's 4:00 am.  I've got a CXF  
installation running standalone on Tomcat.  I would like to use some  
custom MessageBodyReaders and Writers.  The documentation states that  
automatic registration by way of the @Provider annotation hasn't been  
implemented yet, but that registration can be done via config files or  
programatically.  However the only example of a config files provided  
is for a spring based install, and no examples given for registering  
programatically.

 From what bits of searching that I've done have lead me to try  
different types of cxf.xml and applicationContext.xml files with no  
luck, I always get "No message body reader found for request class"  
message...I'm stuck.

Again, I'm sorry if this info is easily searchable, but I've been  
unable to find it. Can anyone shed some light?

Thanks in advance,
Dave

Reply via email to