-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tesla] Failed to find JAX-RS Client #7775
Comments
@wborn Do you happen to know how to fix this? Would we have to directly add a dependency on |
Same problem exists for lametric time and probably all other bindings that use the JAX-RS Client. |
I'm currently looking into #7648 which will also use the |
Only if you test it on openHAB 3, otherwise all will seem fine... |
Did you also try if you can get it injected using a |
It seems to work for me: @Activate
public HandlerFactory(@Reference ClientBuilder clientBuilder) {
Client client = clientBuilder.readTimeout(5, TimeUnit.SECONDS).connectTimeout(10, TimeUnit.SECONDS).build();
Map<String, Object> properties = client.getConfiguration().getProperties();
properties.entrySet().forEach(property -> System.out.println(property.getKey() + ": " + property.getValue()));
} Prints the properties:
Which correspond with those in the CXF ClientProperties.java. So on the 2.5.x branch, if it throws an exception using the static method you should wait for the builder to be injected by the optional |
You mean something like this? #7789 |
Yes something like that was what I had in mind. |
Just pushed a few more changes/fixes to it... |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/send-notifications-via-jython-script/124968/6 |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/send-notifications-via-jython-script/124968/8 |
Trying the tesla binding on openHAB 3, it fails on startup with this message:
The text was updated successfully, but these errors were encountered: