karaf-rest-example-provider example Connection refused

27 views
Skip to first unread message

Hobo Joe

unread,
Aug 20, 2019, 10:37:51 AM8/20/19
to ddf-...@googlegroups.com
I have been trying hard to get the karak-rest-example code to deploy and am really close. The problem is I consistently get 

Error executing command: Connection refused: connect

when I try to hit the endpoint with booking:list. 

I have used the acdebugger to connect to my DDF instance and it shows no permission problems, the bundles deploy without error. I did have to make additions to the pom for the karaf-rest-example-provider module (attached) in order to get it to deploy. Finally, I added

grant codeBase "file:/karaf-rest-example-provider" {
permission java.io.FilePermission "<<ALL FILES>>", "read, write, execute";
permission java.lang.RuntimePermission "createClassLoader";
}

but it didn't help. Is there a similar grant for AccessControlException ?

Any tips/hints/thoughts are much appreciated.


pom.xml

Ben Deininger

unread,
Sep 12, 2019, 7:02:53 PM9/12/19
to ddf-users
Hi Hobo,

    Did you have the acdebugger attached when running `booking:list`?  It might help to add all of the artifacts to the grant block you have posted.

* **karaf-rest-example-api** is a common bundle containing the `Booking` POJO and the `BookingService` interface.   
* **karaf-rest-example-provider** is a blueprint bundle providing the `BookingServiceRest` implementation of the `BookingService` interface.
* **karaf-rest-example-client** is a regular Blueprint bundle using the `BookingService`.
* **karaf-rest-example-client-http** is a regular Blueprint REST client bundle using Java Http.
* **karaf-rest-example-client-cxf** is a regular Blueprint REST client bundle using Apache CXF.
* **karaf-rest-example-features**
Reply all
Reply to author
Forward
0 new messages