This page last changed on Mar 28, 2015 by mattbianconi.

I have OpenRemote working well with an Aeon Z-stick 2 on Windows 8.1. Multiple door sensor, switches, etc. I got a raspberry pi 2 kit post-tax-return and am trying to get z-wave working. Following the instructions on this website I've gotten OpenRemote running on the RPI with some virtual datetime sensors. Can login, refresh controller from web, access controllers from android and webconsole.
I then updated the zwave.jar to the new 2.0 version, ran the
"sudo apt-get install librxtx-java
$ cp /usr/lib/jni/librxtxSerial.so [path to OpenRemote Controller]/\OpenRemote-Controller-2.0.2/webapps/controller/WEB-INF/lib/native/librxtxSerial.so"
as instructed.

However on launching "./openremote.sh run" z-wave is throwing "java.lan.NoClassDefFoundError."

I've tried a completely clean rpi image, updated java to 8u33 for arm, checked permissions on every file and directory I can think of. Made sure z-wave is set to /dev/ttyUSB0 in composer. I am completely stumped since others have it up and running with no issues.

Thanks for any help.

ERROR main: Creating sensor failed. Error : org/openremote/controller/ZWaveConfiguration
XML Element : <sensor xmlns="http://www.openremote.org" id="106904608" name="ExclusionStatusSensor" type="switch">
<include type="command" ref="165" />
<state name="on" />
<state name="off" />
</sensor>
java.lang.NoClassDefFoundError: org/openremote/controller/ZWaveConfiguration
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.createZWavePortConfiguration(DefaultZWaveConfigurationManager.java:74)
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.getPortConfiguration(DefaultZWaveConfigurationManager.java:47)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.initZWaveController(ZWaveCommandBuilder.java:245)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.build(ZWaveCommandBuilder.java:145)
at org.openremote.controller.command.CommandFactory.getCommand(CommandFactory.java:164)
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:420)
at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
at org.openremote.controller.service.Deployer.startup(Deployer.java:858)
at org.openremote.controller.service.Deployer.startController(Deployer.java:336)
at org.openremote.controller.spring.SpringContext.initializeController(SpringContext.java:109)
at org.openremote.controller.service.ServiceContext.init(ServiceContext.java:383)
at org.openremote.controller.bootstrap.Startup.loadServiceContext(Startup.java:85)
at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(ServletStartup.java:190)
at org.openremote.controller.bootstrap.servlet.ServletStartup.contextInitialized(ServletStartup.java:109)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

You need a newer version of the controller (at least 2.1) to support the new Z-Wave stack.

Posted by ebariaux at Mar 30, 2015 11:28

I am using the OpenRemote-Controller-2.1.0 build from January. No idea why 1 didn't get the 2.1.1 version from sourceforge, perhaps the link on this website is still pointing to 2.1.0 in whichever document I used (razpberry vs windows install etc)? I'll try the newer version now. Thanks!

Posted by mattbianconi at Mar 30, 2015 11:42

Did you get it work, as I am struggling with the same error, but on a QNAP NAS:

ERROR 2015-05-31 18:36:44,347 : Creating sensor failed. Error : org/openremote/controller/ZWaveConfiguration
XML Element : <sensor xmlns="http://www.openremote.org" id="7076529" name="INCLUSION ON/OFF" type="switch">
<include type="command" ref="396" />
<state name="on" />
<state name="off" />
</sensor>
java.lang.NoClassDefFoundError: org/openremote/controller/ZWaveConfiguration
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.createZWavePortConfiguration(DefaultZWaveConfigurationManager.java:74)
at org.openremote.controller.protocol.zwave.DefaultZWaveConfigurationManager.getPortConfiguration(DefaultZWaveConfigurationManager.java:47)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.initZWaveController(ZWaveCommandBuilder.java:245)
at org.openremote.controller.protocol.zwave.ZWaveCommandBuilder.build(ZWaveCommandBuilder.java:145)
at org.openremote.controller.command.CommandFactory.getCommand(CommandFactory.java:164)
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:420)
at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
at org.openremote.controller.service.Deployer.startup(Deployer.java:858)
at org.openremote.controller.service.Deployer.softRestart(Deployer.java:440)
at org.openremote.controller.service.Deployer$ControllerDefinitionWatch.run(Deployer.java:1324)
at java.lang.Thread.run(Thread.java:745)

Posted by stevemichels at May 31, 2015 20:09

For me it was the wrong controller version. I had to use the 2.1.1 download from here http://sourceforge.net/projects/openremote/files/

Posted by mattbianconi at Jun 01, 2015 04:55
Document generated by Confluence on Jun 05, 2016 09:34