Skip to content

Configuration for frontend cannot be loaded #128

@tomas-knap

Description

@tomas-knap

UnifiedViews 1.3.0

SWC is trying to create debian package from ODN/UV, but they have problems with frontend - loading the conf. From the log, it seems that it cannot find property platform, but as can be seen below, the property is there. This is rather urgent, because the package must be ready by end of August I guess (LOD2 project ends)

This is the stacktrace:INFO: Loading configuration from: /usr/share/tomcat7/.odcs/config.properties
12:50:02.326 [pool-2-thread-1] ERROR o.s.w.c.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [commons-app-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource cz.cuni.mff.xrg.odcs.commons.app.dao.db.datasource.DataSourceFactory.getDataSource()] threw exception; nested exception is cz.cuni.mff.xrg.odcs.commons.app.conf.MissingConfigPropertyException: Config is missing property: platform.
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:581) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1015) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469) ~[spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282) ~[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204) ~[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) [spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779) [tomcat-catalina-7.0.26.jar:7.0.26]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273) [tomcat-catalina-7.0.26.jar:7.0.26]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat-catalina-7.0.26.jar:7.0.26]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) [tomcat-catalina-7.0.26.jar:7.0.26]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) [tomcat-catalina-7.0.26.jar:7.0.26]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) [tomcat-catalina-7.0.26.jar:7.0.26]
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649) [tomcat-catalina-7.0.26.jar:7.0.26]
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581) [tomcat-catalina-7.0.26.jar:7.0.26]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_55]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55]
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource cz.cuni.mff.xrg.odcs.commons.app.dao.db.datasource.DataSourceFactory.getDataSource()] threw exception; nested exception is cz.cuni.mff.xrg.odcs.commons.app.conf.MissingConfigPropertyException: Config is missing property: platform.
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:570) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
... 27 common frames omitted
Caused by: cz.cuni.mff.xrg.odcs.commons.app.conf.MissingConfigPropertyException: Config is missing property: platform.
at cz.cuni.mff.xrg.odcs.commons.app.conf.AppConfig.getString(AppConfig.java:102) ~[commons-app-1.0.0.jar:na]
at cz.cuni.mff.xrg.odcs.commons.app.dao.db.datasource.DataSourceFactory.getDataSource(DataSourceFactory.java:34) ~[commons-app-1.0.0.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_55]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_55]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:149) ~[spring-beans-3.1.2.RELEASE.jar:3.1.2.RELEASE]
... 28 common frames omitted
Aug 22, 2014 12:50:02 PM org.apache.catalina.core.StandardContext startInternal

Configuration:

This is the central configuration for WEB FRONTEND of IntLib application.

This file contains just a sample configuration and is not used by the

application. Please copy it to WEB-INF/classes/config.properties and customize

it to meet your needs.

The key and element characters #, !, =, and : should be properly escaped

with a preceding backslash to ensure that they are properly loaded.

directory where frontend log should be stored (should not end with / or \ )

frontend.log.directory = /var/log/unifiedviews/frontend

how long should frontend keep log history

frontend.log.keepDays = 7

General settings (should end with "backend/working")

general.workingdir = /usr/share/unifiedviews/backend/working

Backend application configuration

backend.host = 127.0.0.1
backend.port = 5010

Connection configuration setting for relational database

database.sql.driver = com.mysql.jdbc.Driver
database.sql.url = jdbc:mysql://localhost:3306/unifiedviews?characterEncoding=utf8
database.sql.user = dba
database.sql.password = aeF4aeg8

Connection configuration setting for RDF database

use local rdf platform {

database.rdf.platform = localRDF

}

or use remote rdf platform (sesame) {

database.rdf.platform = remoteRDF

database.rdf.url = http://ip6-localhost:8080/openrdf-sesame

database.rdf.user =

database.rdf.password =

}

or user virtuoso platform {

database.rdf.platform = virtuoso

database.rdf.url = jdbc:virtuoso://localhost:1111/charset=UTF-8/log_enable=2

database.rdf.user = dba

database.rdf.password = aeF4aeg8

}

Administrator contact email for sending reports and failure notifications

email.enabled = false
email.admin = admin@example.com

use if email.enabled = true

email.smtp.host = smtp.server.cz

email.smtp.port = 25

email.smtp.ttl = false

email.from = odcs@xrg.mff.cuni.cz

email.authorization = false

use if email.authorization = true

email.username =

email.password =

Configuration of DPU modules

module.path = /var/lib/unifiedviews/target

reserved for developers

module.frontend.expose =

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions