Hello, This question got kind of long when I included all the background information, so I highlighted the actual questions below:
I am trying to expose a bundle via REST. This bundle also interfaces with other bundles in the same container which are started/managed via blueprint. To start, I was able to run the cxf-jaxrs sample that comes with ServiceMix 4.3.0. However, when I tried to modify the beans.xml file to connect in the other bundle in my application like so: I received the following error in the ServiceMix interface: Here's what shows up when I run "list" in the ServiceMix interface: *Question 1:* Is it true that I cannot access the blueprint-managed bean (My Supporting Bundle) from my spring-managed bean (The sample code that came with ServiceMix)? I would prefer not to make changes to the Supporting bundle because there are actually a lot of bundles in my application that work well together right now using blueprint. I have just tried to simplify my question by only showing the one supporting bundle. I also found http://blog.nanthrax.net/2011/08/jax-rs-services-using-cxf-and-karaf/ this post by Jean-Baptiste, and tried to copy the relevant pieces into my bundle, and convert the spring stuff into blueprint like this: The problem arose when I tried to start the bundle. It never finishes starting itself: I believe the problem is because there is no namespace handler to interpret the jaxrs tags in my xml file. Running log:display yields this message: I read on another email list post (I apologize, I seem to have lost the link to that one) that the version of CXF in ServiceMix 4.3.0 does not provide blueprint support for the jax-rs library. Assuming that is true . . . *Question(s) 2:* Can anyone recommend any alternatives? Is there a way to get REST working with blueprint? Or should I be looking at an alternative way of connecting my spring/REST bundle with my blueprint-managed bundle (like maybe using karaf or felix resources to find my supporting bundle when the REST bundle starts up)? Incidentally I tried running Jean-Baptiste's sample under Karaf 2.2.4 and CXF 2.4.4, which ran once, but then if I shutdown karaf and restart it, I get an error saying that there one of the supporting bundles of the CXF feature exposes a java package which is already exposed by Karaf. I can give details on that one if anyone is interested. -- View this message in context: http://servicemix.396122.n5.nabble.com/REST-integration-from-blueprint-tp5069438p5069438.html Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
