Re: Can not use Karaf Camel feature behind HTTP proxy

2012-08-30 Thread hom
Hi Scott, The problem occurs when we build our custom Karaf distribution using the org.apache.karaf.tooling:features-maven-plugin So there is no running Karaf there. How can etc/org.ops4j.pax.url.mvn.cfg help in this regard? Hom -- View this message in context: http

Can not use Karaf Camel feature behind HTTP proxy

2012-08-29 Thread hom
(http://scriptengines.googlecode.com/svn/m2-repo/, releases=true, snapshots=true): Connection refused: connect Do you have an idea how to use the feature in combination with a http proxy? Hom -- View this message in context: http://camel.465427.n5.nabble.com/Can-not-use-Karaf-Camel-feature-behind-HTTP-

Re: CXFRS does not process JSON

2012-07-25 Thread hom
The journey comes to an end. I managed to create the json endpoint. It does not use Camel but plain CXF. This is the final configuration (quite simple actually ;-) ): http://xyz/types}*"/>

Re: CXFRS does not process JSON

2012-07-25 Thread hom
The provider then needs to be registered directly with the rs endpoint The classloading error is gone now, but I have no idea how register the jsonprovider with the rs endpoint. How can this be done? -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-does-not-process-J

Re: CXFRS does not process JSON

2012-07-25 Thread hom
In order to configure the JSONProvider, I switched to the server approach: http://xyz/types}DoItRequest"/> When I deploy this I g

Re: CXFRS does not process JSON

2012-07-24 Thread hom
The provider then needs to be registered directly with the rs endpoint How can this be done? Is it possible in blueprint or in the java camel route? Could you please provide an example? -- View this message in context: http://camel.465427.n5.nabble.com/CXFRS-does-not-process-JSON-tp5716343p571

Re: CXFRS does not process JSON

2012-07-24 Thread hom
I investigated further and found that in JAXRSUtils.processParameter the statement InputStream is = message.getContent(InputStream.class); returns null. If I look into the contents of the XMlMessage I see: class org.apache.cxf.io.DelegatingInputStream org.apache.cxf.transport.http.AbstractHTTPD

Re: CXFRS does not process JSON

2012-07-24 Thread hom
I managed to wire up the bus to the endpoint by adding bus="tb" to the bus element. But now I get a NullPointerException. It seems that the TransformInInterceptor has problems transformig the message. Here is the stack trace: 2012-07-24 15:30:57,905 | DEBUG | er/v1/json/doit/ | PhaseInterceptorCh

Re: CXFRS does not process JSON

2012-07-24 Thread hom
I added a bus to the blueprint context file like this: After deployment JConsole reveals that the bus is present. Now I want to wire up the bus to the endpoint like this: from("cxfrs:///xyz/json?bus=#tb&resourceClasses=" + Resource.class.getName()) This fails as the bus can

Re: CXFRS does not process JSON

2012-07-23 Thread hom
Thanks for the quick reply. I added the transformFeature bean, but it seems that is has no effect. I am still getting the same message. This is what I did in the blueprint context: http://www.xyz.org/types}DoItRequest"/> http://cam

CXFRS does not process JSON

2012-07-23 Thread hom
Hi, I've created a cxfrs route as described in http://camel.apache.org/cxfrs.html (How to consume the REST request in Camel). I am using SOAPUI to test the endpoint. The resource class is: /@Path("/") @Consumes({"application/xml","application/json"}) @Produces({"application/xml","application/json