Configuring tomcat bundle to connect to bonita 7.3

1
0
-1

Hello everybody,

I made the tomcat bundle configuration and i have some errors, is the first time that y try to make this, please someone can help me with this errors:

INFORMACIÓN: Exception while initializing the engine: org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'quartzProperties' defined in file [C:\BonitaBPM\BonitaBPMCommunity-7.2.3-Tomcat-7.0.67\bonita\engine-server\work\platform\bonita-platform-community.xml]: Could not resolve placeholder 'PostgreSQL.quartz.connection.jobstoredriver' in string value [${${db.vendor}.quartz.connection.jobstoredriver}]
dic 22, 2016 4:51:18 PM org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener contextInitialized
GRAVE: Error while initializing the Engine
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'quartzProperties' defined in file [C:\BonitaBPM\BonitaBPMCommunity-7.2.3-Tomcat-7.0.67\bonita\engine-server\work\platform\bonita-platform-community.xml]: Could not resolve placeholder 'PostgreSQL.quartz.connection.jobstoredriver' in string value [${${db.vendor}.quartz.connection.jobstoredriver}]
        at org.springframework.beans.factory.config.PlaceholderConfigurerSupport.doProcessProperties(PlaceholderConfigurerSupport.java:209)
        at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:220)
        at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:686)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:626)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:451)
        at org.bonitasoft.engine.service.impl.SpringFileSystemBeanAccessor.getContext(SpringFileSystemBeanAccessor.java:78)
        at org.bonitasoft.engine.service.impl.SpringFileSystemBeanAccessor.getService(SpringFileSystemBeanAccessor.java:39)
        at org.bonitasoft.engine.service.impl.SpringPlatformServiceAccessor.getPlatformSessionService(SpringPlatformServiceAccessor.java:157)
        at org.bonitasoft.engine.EngineInitializer.initializeEngine(EngineInitializer.java:84)
        at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:42)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5077)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5591)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1939)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Node not started. Method 'org.bonitasoft.engine.api.LoginAPI.login' cannot be called until node has been started (PlatformAPI.startNode()). Exact class: org.bonitasoft.engine.api.impl.LoginAPIImpl
dic 22, 2016 4:51:18 PM org.bonitasoft.console.common.server.servlet.PlatformTenantListener contextInitialized
GRAVE: Error while initializing the default tenant
org.bonitasoft.engine.platform.NodeNotStartedException: The current node has not been started yet. Method PlatformAPI.startNode() must be called previously.
        at org.bonitasoft.engine.api.impl.ServerAPIImpl.checkMethodAccessibility(ServerAPIImpl.java:287)
        at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPIOutsideTransaction(ServerAPIImpl.java:278)
        at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeAPI(ServerAPIImpl.java:270)
        at org.bonitasoft.engine.api.impl.ServerAPIImpl.invokeMethod(ServerAPIImpl.java:124)
        at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:86)
        at com.sun.proxy.$Proxy3.login(Unknown Source)
        at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.initializeDefaultTenant(PlatformTenantListener.java:61)
        at org.bonitasoft.console.common.server.servlet.PlatformTenantListener.contextInitialized(PlatformTenantListener.java:44)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5077)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5591)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677)
        at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1939)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Comments

Submitted by geekinc on Tue, 03/14/2017 - 17:12

How was this issue resolved? I'm running into the same error.

1 answer

1
0
-1

It appears DB_OPTS must be set "postgres" in bin/setenv.sh.

Docs:
http://documentation.bonitasoft.com/7.3?page=database-configuration

Comments

Submitted by rositamg1993 on Tue, 03/14/2017 - 18:10

I did that, i'm using postgres in vendor.

Submitted by geekinc on Wed, 03/15/2017 - 05:01

Like you, I was still having issues when I set DB_OPTS to "postgres". I ended up re-installing Bonita with Tomcat, which solved the problem. I read in another thread that starting up the server with H2 can cause issues when configuring PostgreSQL. I made sure to remove all references to H2 and make all the necessary changes to the config files before running ./bonita-start.sh.

Notifications