This page last changed on Dec 31, 2013 by andersdanmark.

Hi!

I wanted to play around a little bit and see if i cant improve the xbmc integration with a decicated implementation.

So i have gotten the latest controller snapshot (no modifications yet just testing so i have something that works before i start modifying stuff).

 svn checkout http://openremote.svn.sourceforge.net/svnroot/openremote/tags/snapshot/Controller_2_1_0_FM_SNAPSHOT-20130617

and did a

 ant package 

and moved that package into a virtual machine i created for the purpose but when i try to start open remote I get

anders@ordev:~/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17/bin$ ./openremote.sh run
Using CATALINA_BASE:   /home/anders/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17
Using CATALINA_HOME:   /home/anders/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17
Using CATALINA_TMPDIR: /home/anders/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17/temp
Using JRE_HOME:       /usr

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

 Console (stdout) threshold [CONTROLLER_CONSOLE_THRESHOLD]: INFO

 System logs:

   - Controller startup log [CONTROLLER_STARTUP_LOG_LEVEL]: DEBUG
     

-----------------------------------------------------------------------
Dec 31, 2013 1:59:29 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/anders/OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17/webapps/controller/WEB-INF/lib/native
Dec 31, 2013 1:59:29 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 31, 2013 1:59:29 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 302 ms
Dec 31, 2013 1:59:29 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 31, 2013 1:59:29 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Dec 31, 2013 1:59:29 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive webconsole.war
Dec 31, 2013 1:59:30 AM org.apache.tomcat.util.modeler.Registry registerComponent
SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/controller,J2EEApplication=none,J2EEServer=none
Dec 31, 2013 1:59:30 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory controller
java.lang.UnsupportedClassVersionError: org/openremote/controller/bootstrap/servlet/LogInitialization : Unsupported major.minor version 51.0 (unable to load class org.openremote.controller.bootstrap.servlet.LogInitialization)
	at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1851)
	at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
	at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:145)
	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:73)
	at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:56)
	at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)
	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1068)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
	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:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:622)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Dec 31, 2013 1:59:30 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 31, 2013 1:59:30 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 397 ms

Did i check out the wrong code or something? I selected that version because that is the same as the version i run in my raspberry pi.

Regards
Anders

So i found the issue. I had forgotten to specify which java version to use at compiletime.

I was apparently using java-7 for that. I changed that and now it compiles/runs.

Posted by andersdanmark at Dec 31, 2013 12:16
Document generated by Confluence on Jun 05, 2016 09:29