Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Sitewhere service blocks start of other persistence services #3563

Closed
lewie opened this issue Dec 18, 2015 · 5 comments
Closed

Sitewhere service blocks start of other persistence services #3563

lewie opened this issue Dec 18, 2015 · 5 comments

Comments

@lewie
Copy link
Contributor

lewie commented Dec 18, 2015

I tested a persistence setup here

It does not let me rest...

I found out, that if I copy actual org.openhab.persistence.sitewhere-1.8.0-SNAPSHOT.jar to addons, other persistence services does not start up.

I have tested with jdbc, mysql and jpa persistence.
It ends with PersistenceExtensions WARN: There is no queryable persistence service registered with the name ... 'jdbc, mysql or jpa'.

It seems that public void activate(BundleContext bundleContext, Map<Object, Object> configuration) is never called.

@watou
Copy link
Contributor

watou commented Dec 18, 2015

@derekadams, could you please have a look at this issue?

@derekadams
Copy link
Contributor

Yes, I will pull down the latest code and try to replicate the problem.

@derekadams
Copy link
Contributor

There was a commit that I accidentally didn't include in the squashed pull request. It looks like if you don't add the 'org.openhab.core.persistence.PersistenceService' interface in the service descriptor, bad things happen. I pushed the change as it had been working locally. That should fix the problem, but I will double-check after building with the latest updates.

@teichsta
Copy link
Member

ftr: the according PR is #3566

@lewie
Copy link
Contributor Author

lewie commented Mar 22, 2016

Done!

@lewie lewie closed this as completed Mar 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants