Problem with JAX-RS services in the last CXF snapshot.

2008-04-04 Thread Vincenzo Vitale
Hi, I'm trying to integrate the JAX-RS implementation now included in CXF 2.1 (snapshot). The service is correctly called and the parameters arrive fine but then I get a page with the message: No message body writer found for response class : SimpleResponse. Where SimpleResponse is my custom

Re: Problem with JAX-RS services in the last CXF snapshot.

2008-04-04 Thread Vincenzo Vitale
Looking at the CXF code it seems the problem is here: private T MessageBodyWriterT chooseMessageWriter( ListMessageBodyWriter writers, ClassT type, MediaType mediaType) { for (MessageBodyWriterT ep : writers) { if (!ep.isWriteable(type)) { continue;

Re: Problem with JAX-RS services in the last CXF snapshot.

2008-04-04 Thread Vincenzo Vitale
system tests on how this can be done...(I'm sorry, at the moment that's our documentation :-)). Typically You don't need to extend a Response, Response is a convenience holder for a status, the entity and response headers Cheers, Sergey -Original Message- From: Vincenzo Vitale [mailto

Re: Url parameters in rest web services

2007-10-05 Thread Vincenzo Vitale
is not used but this is out of the cxf mailing list. Ciao, V. On 10/4/07, Vincenzo Vitale [EMAIL PROTECTED] wrote: Hi, I developed some web services using the HttpResource annotation. So for example I have the annotation: @HttpResource(location = /myService/{firstParameter

Re: Rest services response into ![CDATA[ boundaries.

2007-10-04 Thread Vincenzo Vitale
wouldn't be too hard to do. Dan On Wednesday 03 October 2007, Vincenzo Vitale wrote: No one with the same requirement? :-( I know that with normal XML parsers having a CDATA section or an escaped one should not be a problem but in my case maybe the third party are soing to use a custom old

Url parameters in rest web services

2007-10-04 Thread Vincenzo Vitale
Hi, I developed some web services using the HttpResource annotation. So for example I have the annotation: @HttpResource(location = /myService/{firstParameter}/{secondParameter}/{urlParameter}/{lastParameter}) The problem has that my parameters can contain url and I solved the problems with

Re: Rest services response into ![CDATA[ boundaries.

2007-10-03 Thread Vincenzo Vitale
in the rest case but it seems to me really really old style! Ciao, V. On 9/28/07, Vincenzo Vitale [EMAIL PROTECTED] wrote: Hi All, I'm exposing a rest services (using annotation) and the return value is a string with html code inside. The result value is escaped but I would like to have it between

Rest services response into ![CDATA[ boundaries.

2007-09-28 Thread Vincenzo Vitale
Hi All, I'm exposing a rest services (using annotation) and the return value is a string with html code inside. The result value is escaped but I would like to have it between ![CDATA[, like it's done with the equivalent Soap service. Is it possible? Thanks, Vincenzo.

Re: CXFServlet + WebServices + Spring MVC

2007-09-24 Thread Vincenzo Vitale
for this... and also I don't want to write a Spring mvc controller for my rest services :-( Would it be possible to make available a no snapshot release with this problem solved? Thanks, Vincenzo Vitale. On 9/24/07, vicio [EMAIL PROTECTED] wrote: Hello, have you solveed the problem. I have

Re: CXFServlet + WebServices + Spring MVC

2007-09-24 Thread Vincenzo Vitale
-incubator-take2/ I'm note sure what the specific bug was that you're encountering, but it MAY be fixed in that build. Dan On Monday 24 September 2007, Vincenzo Vitale wrote: I have just tried to use the snapshot version (2.1-incubator-SNAPSHOT) and it worked nice, so I assume

Re: Automatic Testing CXF Web Services out of the box

2007-09-14 Thread Vincenzo Vitale
to test: the network interface, or the service API. There's no need to create (or use) the network interface if what you actually want to test is the service API. Vincenzo Vitale wrote: Hi, I would like to automatic testing my web services out of the box, that is integrated

Re: Hibernate and cxf 2.01 problem.

2007-09-13 Thread Vincenzo Vitale
artifactIdasm-all/artifactId version3.0/version /dependency dependency groupIdcglib/groupId artifactIdcglib-nodep/artifactId version2.1_3/version /dependency On 9/12/07, Vincenzo

Hibernate and cxf 2.01 problem.

2007-09-12 Thread Vincenzo Vitale
Hi, in my project I use Hibernate 3.2.4.sp1 and with cxf 2.0.1-incubator I get the exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [ oasis-db-context.xml]: Invocation of init method failed; nested

Re: What are the min Maven2 dependencies?

2007-09-11 Thread Vincenzo Vitale
, Jacob Marcus [EMAIL PROTECTED] wrote: Vincezo, You will find the information here. http://cwiki.apache.org/CXF20DOC/maven-integration-and-plugin.html. If you are using Aegis databinding, you will need to add that dependency. jacob On 9/11/07, Vincenzo Vitale [EMAIL PROTECTED] wrote

Re: What are the min Maven2 dependencies?

2007-09-11 Thread Vincenzo Vitale
, Vincenzo Vitale [EMAIL PROTECTED] wrote: Hi Jacob, thanks for your reply. I already have set these dependencies but I got the exception: Embedded error: Object is not of type class org.mortbay.jetty.webapp.WebAppConte xt If I remove the last dependency then I got the exception