This page last changed on Jun 01, 2014 by rodion.

Hello, OpenRemote community!
I want you to help me.
I installed all programms necessary for working with OR according to this manual http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Install+Controller+on+Raspberry+Pi
Here is an algorithm I got finally.

pi@raspberrypi ~ $ cd /home/pi/OpenRemote/bin
pi@raspberrypi ~/OpenRemote/bin $ sudo chmod +x openremote.sh
pi@raspberrypi ~/OpenRemote/bin $ ./openremote.sh run
Using CATALINA_BASE: /home/pi/OpenRemote
Using CATALINA_HOME: /home/pi/OpenRemote
Using CATALINA_TMPDIR: /home/pi/OpenRemote/temp
Using JRE_HOME: /opt/jdk1.8.0

---- Logging ----------------------------------------------------------

Console (stdout) threshold CONTROLLER\_CONSOLE\_THRESHOLD: INFO

System logs:

  • Controller startup log CONTROLLER\_STARTUP\_LOG\_LEVEL: DEBUG

-----------------------------------------------------------------------
Jun 01, 2014 1:37:49 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.30.
Jun 01, 2014 1:37:50 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 true, sendfile true, accept filters
false, random true.
Jun 01, 2014 1:37:54 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 01, 2014 1:37:54 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 20438 ms
Jun 01, 2014 1:37:56 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 01, 2014 1:37:56 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Jun 01, 2014 1:37:56 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive webconsole.war
Jun 01, 2014 1:38:17 PM org.openremote.controller.bootstrap.Startup
redirectJULtoLog4j
INFO: Initialized JUL to LOG4J Redirector.
INFO 2014-06-01 13:38:49,301 :

--------------------------------------------------------------------

DEPLOYING NEW CONTROLLER RUNTIME...

--------------------------------------------------------------------

WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
gnu.io.NoSuchPortException
at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:269)
at
org.openremote.controller.protocol.zwave.ZWaveGatewayRxtx$ZWaveConnectionThread.run(ZWaveGatewayRxtx.java:108)
INFO 2014-06-01 13:39:06,707 : No rule definitions found in
'/home/pi/OpenRemote/webapps/controller/rules'.
INFO 2014-06-01 13:39:06,715 : Initialized event processor : Drools Rule
Engine
INFO 2014-06-01 13:39:09,443 : Initialized event processor : RRD4J Data
Logger
INFO 2014-06-01 13:39:09,450 : Initialized event processor : EmonCMS Data
Logger
INFO 2014-06-01 13:39:10,257 : Registered sensor : Sensor (Name = 'Status
light 2', ID = '152', State Mappings:

Unknown macro: {0=off, 255=on}
)
ERROR main: There was an implementation error in the event listener
associated with sensor 'Status light 2'. The listener implementation may
not have started correctly : Could not set sensor because no polling
interval was given
java.lang.RuntimeException: Could not set sensor because no polling
interval was given
at
org.openremote.controller.protocol.http.HttpGetCommand.setSensor(HttpGetCommand.java:170)
at org.openremote.controller.model.sensor.Sensor.start(Sensor.java:387)
at
org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:673)
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)
INFO 2014-06-01 13:39:10,489 : Startup complete.
INFO 2014-06-01 13:39:10,512 : Controller Definition File Watcher for
Default Deployer started.
Jun 01, 2014 1:39:19 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 01, 2014 1:39:20 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 85762 ms

It seems that everything is fine and all should work, but there is a problem - the page localhost:8080/webconsole isn't downloaded. And I can't start working in Android App, which is installed on my mobile from http://www.openremote.org/display/HOME/Download. Webconsole and App are permanently downloaded.
What's the problem?
Help me, please.

Well no, all is not fine given that the log indicates an error.
From the stack trace there, most probably because you have an HTTP protocol based command that you linked to a sensor but you have not defined a value for the polling frequency property.
So you should first try to fix that.

Next, verify that the webconsole.war file is present under the webapps folder (it should by default).

Posted by ebariaux at Jun 02, 2014 13:26
Document generated by Confluence on Jun 05, 2016 09:34