cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin" <>
Subject RE: Registering a custom MessageBodyReader with a non-Spring CXF install
Date Tue, 27 Oct 2009 21:56:38 GMT

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

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 [] 
Sent: 26 October 2009 10:07
Subject: Registering a custom MessageBodyReader with a non-Spring CXF

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  

 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,

View raw message