Hi Dave

It's great it working for you now !
I also liked some of your expressions :-), those things occur to me often 
enough :-)

cheers, Sergey

----- Original Message ----- From: "Dave Wilson" <d...@everydave.com>
To: <users@cxf.apache.org>
Sent: Wednesday, October 28, 2009 6:32 AM
Subject: Re: Registering a custom MessageBodyReader with a non-Spring CXF 
install


Sergey,

Thank you very much for your response. As it turns out I was just being quite dense: I am using the CXFNonSpringJAXRSServelt, but for whatever reason it didn't occur to me to simple put it in the getSingletons method of my Application. Worse yet, the documentation at http://cwiki.apache.org/CXF20DOC/jax-rs.html clearly does lead to instructions on how to do this, I don't know how I missed it.

Thank you again for your response, it did lead me to the answer and through the brain block I was having. It's working great now.

Dave

On Oct 27, 2009, at 3:56 PM, Sergey Beryozkin wrote:

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