This page last changed on Sep 07, 2014 by djl181.

Hello

I am in the process of building a local OpenRemote setup on Debian 7 (Wheezy) and am using the following: http://www.openremote.org/display/forums/How+to+compil+a+Full+Openremote+Setup+on+a+Linux+Server

I am finding that beehive does not start with the following in the tomcat logs:
------
07/09/2014 11:07:19 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler "http\-bio\-8080"
07/09/2014 11:07:19 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
07/09/2014 11:07:19 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler "http\-bio\-8080"
07/09/2014 11:07:19 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler "http\-bio\-8080"
07/09/2014 11:07:50 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler "http\-bio\-8080"
07/09/2014 11:07:50 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 723 ms
07/09/2014 11:07:50 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
07/09/2014 11:07:50 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
07/09/2014 11:07:50 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/beehive.war
07/09/2014 11:07:52 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.openremote.beehive.listener.ApplicationListener
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:534)
at java.lang.Class.newInstance(Class.java:374)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:134)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4726)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5284)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource datasource.xml: Could not resolve placeholder 'jdbc.driverClassName'
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:249)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:74)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:472)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:76)
at org.openremote.beehive.spring.SpringContext.<init>(SpringContext.java:44)
at org.openremote.beehive.spring.SpringContext.getInstance(SpringContext.java:54)
at org.openremote.beehive.listener.ApplicationListener.<clinit>(ApplicationListener.java:48)
... 20 more
07/09/2014 11:07:52 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
07/09/2014 11:07:52 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
07/09/2014 11:07:52 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/beehive] startup failed due to previous errors
07/09/2014 11:07:52 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
07/09/2014 11:07:53 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler "http\-bio\-8080"
07/09/2014 11:07:53 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2673 ms
--------

When looking at the error:
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'dataSource' defined in class path resource datasource.xml: Could not resolve placeholder 'jdbc.driverClassName'

My config/config.properties states jdbc.driverClassName=com.mysql.jdbc.Driver

djl181@openremote:~/openremote_sources/Beehive_3_0_0_Beta1$ more config/config.properties
#jdbc onfig
jdbc.driverClassName=com.mysql.jdbc.Driver
#jdbc.url=jdbc:mysql://localhost:3306/beehive_3_0_0_alpha5?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
jdbc.url=jdbc:mysql://localhost:3306/beehive?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
jdbc.username = root
jdbc.password = password_here

#Work directory, contains svn-repos, workCopy and sync history logs.
#work.dir = /opt/tomcat6/beehive.openremote.org/3.0/alpha5
work.dir = /var/lib/tomcat7/webapps/beehive

#iconDir
#icons.dir = http://beehive.openremote.org/3.0/alpha5/icons/
icons.dir = /var/lib/tomcat7/webapps/icons/ # Don't know what it is for ?!

#lircCrawRegex, it can not be modified until the structure of remote lirc website had changed.
lirc.craw.regex = <tr><td valign=\"top\"><img src=\"/icons/(folder|text|script)\\.gif\" alt=\"\\[\\s\\w+\\]\"></td><td
><a href=\"(.?)/?\">.?/?</a></td><td align=\"right\">(\\d\\d-\\w\\w\\w-\\d\\d\\d\\d\\s\\d\\d:\\d
d) </td><td align=\
"right\">\\s*[-\\w\\.]+
s*</td></tr>

Any suggestions on what I have missed.

Thanks in advance for your time and help.

Dennis.

I was sure it was something missing in my system build. Finally after:
sudo apt-get install libmysql-java libnb-java5-java libspring-beans-java

and a reboot, beehive now starts.

Posted by djl181 at Sep 08, 2014 15:45
Document generated by Confluence on Jun 05, 2016 09:34