I implemented a binding, which includes the javax.json package.
In the 2.4 SNAPSHOT environment everything works fine. However, if I copy the jar to a 2.3 Release environment I get the following exception when trying to initialitze the JSon reader from a http response
An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.entertaintv.internal.handler.EntertainTVHandler@180160c': javax.json.spi.JsonProvider: Provider org.glassfish.json.JsonProviderImpl not a subtype
javax.json.spi.JsonProvider: Provider org.glassfish.json.JsonProviderImpl not a subtype could be an indicator that the .jars are not found or something like that
I included both required jars in the lib folder,
added them to the classpatch in MANIFEST.MF
Manifest-Version: 1.0
Bundle-ActivationPolicy: lazy
Bundle-ClassPath:
.,
lib/javax.json-api-1.1.3.jar,
lib/javax.json-1.1.3.jar
… and also to build.properties
source..=src/main/java/
output..=target/classes
bin.includes = .,\
lib/javax.json-api-1.1.3.jar,\
lib/javax.json-1.1.3.jar,\
META-INF/,\
ESH-INF/,\
OSGI-INF/,\
about.html
I unpackaged the jar and verified that lib/javax.json-api-1.1.3.jar and lib/javax.json-1.1.3.jar are included in the lib sub folder.
any idea?