-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 9.1-SNAPSHOT
-
Fix Version/s: 9.1
-
Component/s: Layouts & Widgets
-
Tags:
-
Team:AT
-
Sprint:nxAT Sprint 9.1.7
Running TestAndPush using a customized DB profile, layout-demo webdriver tests are failing on the memory repository setup, see ondemand-testandpush-mhuang-9 build 23.
Profiles used:
-Pqa,itest,customdb,pgsql
layout-demo server logs show:
2017-03-07 18:50:33,828 ERROR [localhost-startStop-1] [org.nuxeo.runtime.datasource.DataSourceComponent] Cannot bind datasource 'jdbc/repository_layoutDemo' in JNDI javax.naming.NamingException: java:comp/env/jdbc/repository_layoutDemo [Root exception is java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Unable to load driver class: org.h2.Driver] at org.apache.xbean.naming.context.ContextUtil.resolve(ContextUtil.java:78) at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:116) at org.apache.xbean.naming.context.AbstractContext.lookup(AbstractContext.java:605) at org.nuxeo.runtime.datasource.DataSourceDescriptor.bindSelf(DataSourceDescriptor.java:183) at org.nuxeo.runtime.datasource.DataSourceComponent.bindDataSource(DataSourceComponent.java:171) at org.nuxeo.runtime.datasource.DataSourceComponent.applicationStarted(DataSourceComponent.java:133) at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.notifyApplicationStarted(RegistrationInfoImpl.java:332) at org.nuxeo.runtime.osgi.OSGiRuntimeService.notifyComponentsOnStarted(OSGiRuntimeService.java:461) at org.nuxeo.runtime.osgi.OSGiRuntimeService.fireApplicationStarted(OSGiRuntimeService.java:497) at org.nuxeo.runtime.api.ServicePassivator$Waiter.proceed(ServicePassivator.java:415) at org.nuxeo.runtime.api.ServicePassivator.proceed(ServicePassivator.java:83) at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:509) at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:232) at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:239) at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:125) at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:120) at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) 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:652) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:679) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1966) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Unable to load driver class: org.h2.Driver at org.nuxeo.runtime.datasource.PooledDataSourceFactory.getObjectInstance(PooledDataSourceFactory.java:117) at org.nuxeo.runtime.datasource.PooledDataSourceRegistry.createPool(PooledDataSourceRegistry.java:67) at org.nuxeo.runtime.datasource.PooledDataSourceRegistry.getOrCreatePool(PooledDataSourceRegistry.java:56) at org.nuxeo.runtime.datasource.DataSourceDescriptor$PoolFactory.getObjectInstance(DataSourceDescriptor.java:133) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321) at org.apache.xbean.naming.context.ContextUtil.resolve(ContextUtil.java:74) ... 29 more Caused by: javax.resource.spi.InvalidPropertyException: Unable to load driver class: org.h2.Driver at org.nuxeo.runtime.datasource.PooledDataSourceFactory$JdbcConnectionFactory.setDriver(PooledDataSourceFactory.java:432) at org.nuxeo.runtime.datasource.PooledDataSourceFactory.createFactory(PooledDataSourceFactory.java:166) at org.nuxeo.runtime.datasource.PooledDataSourceFactory.getObjectInstance(PooledDataSourceFactory.java:114) ... 34 more Caused by: java.lang.ClassNotFoundException: org.h2.Driver at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.nuxeo.runtime.datasource.PooledDataSourceFactory$JdbcConnectionFactory.setDriver(PooledDataSourceFactory.java:429) ... 36 more