Hi ,
I created small PoC and deployed in Camunda Wildfly 10 Full distribution and everything is working fine.
And right now i am trying the same use case in Standalone ( JBOSS EAP ) where i am not able to see the process from cockpit. Any additional configuration need to do ?
Here is my processes.xml , configuration is some thing additionally i added for standalone.Rest remains same for both the case.
<?xml version="1.0" encoding="UTF-8"?>
<process-application
xmlns="http://www.camunda.org/schema/1.0/ProcessApplication"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<process-engine name="default">
<configuration>org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration</configuration>
</process-engine>
<process-archive name="CAMUNDA_ADLOF">
<process-engine>default</process-engine>
<properties>
<property name="isDeleteUponUndeploy">false</property>
<property name="isScanForProcessDefinitions">true</property>
<property name="isResumePreviousVersions">true</property>
</properties>
</process-archive>
</process-application>
Please suggest if any configuration i am missing here.
Thanks
Hi,
For Cockpit to show your process, Cockpit must be able to access the same database schema. When you declare the engine as part of processes.xml
and use org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration
, you are creating a new in-memory H2 database on the fly and I doubt Cockpit is configured against the same database. So one way or the other, make sure the process engines used by Cockpit and your application hit the same database schema.
Cheers,
Thorben
Hi … Thanks for quick response. I change my db setting’s. I created Camunda H2 DB…So accordingly i changed camunda-webapp-ee-jboss-standalone-7.6.3-ee.war , applicationContext.xml using below db settings
-->
So process comes along with welcome war is displayed in Cockpit.
But Example camunda war which i generated with same setting’s using embeded engine configuration and camunda H2DB setting’s is giving below error.
Error :
12:57:51,534 ERROR [stderr] (ServerService Thread Pool – 80) org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Database may be already in use: “Locked by another process”. Possible solutions: close all other connection(s); use the server mode [90020-171])
12:57:51,535 ERROR [stderr] (ServerService Thread Pool – 80) at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1549)
12:57:51,535 ERROR [stderr] (ServerService Thread Pool – 80) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
12:57:51,535 ERROR [stderr] (ServerService Thread Pool – 80) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
12:57:51,536 ERROR [stderr] (ServerService Thread Pool – 80) at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
12:57:51,536 ERROR [stderr] (ServerService Thread Pool – 80) at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:224)
12:57:51,536 ERROR [stderr] (ServerService Thread Pool – 80) at com.sun.proxy.$Proxy62.getMetaData(Unknown Source)
12:57:51,536 ERROR [stderr] (ServerService Thread Pool – 80) at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.initDatabaseType(ProcessEngineConfigurationImpl.java:809)
12:57:51,537 ERROR [stderr] (ServerService Thread Pool – 80) at org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.initDataSource(ProcessEngineConfigurationImpl.java:770)
Any suggestions to fix this issue ?