I made the change(thanks) but I still get the error:
I think is more an jsonpath error, maybe…
2017-08-29 16:08:23.293 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to broker was lost
MqttException (0) - java.lang.NoClassDefFoundError: Could not initialize class com.jayway.jsonpath.internal.DefaultsImpl
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.run(CommsCallback.java:197)[249:org.openhab.io.transport.mqtt:1.10.0]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.jayway.jsonpath.internal.DefaultsImpl
at com.jayway.jsonpath.Configuration.getEffectiveDefaults(Configuration.java:48)
at com.jayway.jsonpath.Configuration.defaultConfiguration(Configuration.java:173)
at com.jayway.jsonpath.internal.JsonContext.<init>(JsonContext.java:52)
at com.jayway.jsonpath.JsonPath.read(JsonPath.java:502)
at org.eclipse.smarthome.transform.jsonpath.internal.JSonPathTransformationService.transform(JSonPathTransformationService.java:49)
at org.openhab.core.transform.TransformationHelper$TransformationServiceDelegate.transform(TransformationHelper.java:60)
at org.openhab.binding.mqtt.internal.MqttMessageSubscriber.processMessage(MqttMessageSubscriber.java:138)
at org.openhab.io.transport.mqtt.internal.MqttBrokerConnection.messageArrived(MqttBrokerConnection.java:556)[249:org.openhab.io.transport.mqtt:1.10.0]
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.deliverMessage(CommsCallback.java:475)[249:org.openhab.io.transport.mqtt:1.10.0]
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.handleMessage(CommsCallback.java:379)[249:org.openhab.io.transport.mqtt:1.10.0]
at org.eclipse.paho.client.mqttv3.internal.CommsCallback.run(CommsCallback.java:183)[249:org.openhab.io.transport.mqtt:1.10.0]
... 1 more
2017-08-29 16:08:23.369 [ERROR] [t.mqtt.internal.MqttBrokerConnection] - MQTT connection to 'mosquitto' was lost: MqttException : ReasonCode 0 : Cause : Could not initialize class com.jayway.jsonpath.internal.DefaultsImpl
2017-08-29 16:08:23.372 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting connection helper to periodically try restore connection to broker 'mosquitto'
You may have the old configuration cached in /var/lib/openhab2/config/org/openhab/mqtt.config or your equivalent of this file. Deleting such file will force OH to recreate it from the current ‘source’ config file (the one you deleted).
Oh it worked.
I installed the mosquitto from openHABian configuration tool, uninstall the mqtt binding and reinstalled it and removed the added # mosquitto.clientId=openHAB in the mqtt.cgf file and it seemed to work D
I dont know excatly what did it but it works now.
Thanks so much