<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic [6.0] Replace H2 with a standalone mysql server in activiti-app and activiti-rest in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/6-0-replace-h2-with-a-standalone-mysql-server-in-activiti-app/m-p/17593#M7792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am currently trying the activiti-app and activiti-rest applications and tried to replace the in-memory H2 database with a mysql server because the 2 applications did not point on the same database. However, when I try to change this configuration, Tomcat returns me a 404 for the associated pages. My goal is to reflect changes in&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My environment is Debian 8 and I'm using Activiti 6.0. I created a user &lt;STRONG&gt;activiti&lt;/STRONG&gt; in mysql that has access to the &lt;STRONG&gt;activiti&lt;/STRONG&gt; database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the following file (just commenting the h2 configuration and adding the mysql one) :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/var/lib/tomcat7/webapps/activiti-app/WEB-INF/classes/META-INF/activiti-app/activiti-app.properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;db=activiti&lt;BR /&gt;datasource.driver=com.mysql.jdbc.Driver&lt;BR /&gt;datasource.url=jdbc:mysql://localhost:3306/activiti?characterEncoding=UTF-8&lt;BR /&gt;datasource.username=activiti&lt;BR /&gt;datasource.password=activiti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#db=h2&lt;BR /&gt;#datasource.driver=org.h2.Driver&lt;BR /&gt;#datasource.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=-1&lt;BR /&gt;#datasource.username=sa&lt;BR /&gt;#datasource.password=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hibernate.dialect=org.hibernate.dialect.H2Dialect&lt;BR /&gt;#hibernate.dialect=org.hibernate.dialect.MySQLDialect&lt;BR /&gt;#hibernate.dialect=org.hibernate.dialect.Oracle10gDialect&lt;BR /&gt;#hibernate.dialect=org.hibernate.dialect.SQLServerDialect&lt;BR /&gt;#hibernate.dialect=org.hibernate.dialect.DB2Dialect&lt;BR /&gt;#hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And the following file :&amp;nbsp;&lt;/P&gt;&lt;P&gt;/var/lib/tomcat7/webapp/activiti-rest/WEB-INF/classes/db.properties&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;db=activiti&lt;BR /&gt;jdbc.driver=com.mysql.jdbc.Driver&lt;BR /&gt;jdbc.url=jdbc:mysql://localhost:3306/activiti?characterEncoding=UTF-8&lt;BR /&gt;jdbc.username=activiti&lt;BR /&gt;jdbc.password=activiti&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;With this configuration, &lt;STRONG&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/localhost:8080/activiti-app" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/activiti-app&lt;/A&gt;&lt;/STRONG&gt; returns a 404 while&amp;nbsp;&lt;STRONG&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/localhost:8080/activiti-rest/service/repository/deployments" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/activiti-rest/service/repository/deployments&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;continue to send data from the example (and not from mysql).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I catched the log in /var/log/tomcat7/localhost.2018-06-07.log : "&lt;SPAN style="background-color: #f6f6f6;"&gt;&lt;STRONG&gt;Error initialising form data schema&lt;/STRONG&gt;"&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;GRAVE: Exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.activiti.app.servlet.WebConfigurer&lt;BR /&gt;org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bootstrapper': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.activiti.engine.IdentityService org.activiti.app.conf.Bootstrapper.identityService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'identityService' defined in class path resource [org/activiti/app/conf/ActivitiEngineConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.activiti.engine.IdentityService]: Factory method 'identityService' threw exception; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.form.engine.ActivitiFormException: Error initialising form data schema&lt;BR /&gt; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)&lt;BR /&gt; at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)&lt;BR /&gt; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)&lt;BR /&gt; at org.activiti.app.servlet.WebConfigurer.contextInitialized(WebConfigurer.java:62)&lt;BR /&gt; at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5027)&lt;BR /&gt; at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5525)&lt;BR /&gt; at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)&lt;BR /&gt; at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)&lt;BR /&gt; at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)&lt;BR /&gt; at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)&lt;BR /&gt; at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)&lt;BR /&gt; at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1879)&lt;BR /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:745)&lt;BR /&gt;Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.activiti.engine.IdentityService org.activiti.app.conf.Bootstrapper.identityService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'identityService' defined in class path resource [org/activiti/app/conf/ActivitiEngineConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.activiti.engine.IdentityService]: Factory method 'identityService' threw exception; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.form.engine.ActivitiFormException: Error initialising form data schema&lt;BR /&gt; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)&lt;BR /&gt; at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)&lt;BR /&gt; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)&lt;BR /&gt; ... 24 more&lt;BR /&gt;Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'identityService' defined in class path resource [org/activiti/app/conf/ActivitiEngineConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.activiti.engine.IdentityService]: Factory method 'identityService' threw exception; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.form.engine.ActivitiFormException: Error initialising form data schema&lt;BR /&gt; at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1119)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1014)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1120)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1044)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)&lt;BR /&gt; at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533)&lt;BR /&gt; ... 26 more&lt;BR /&gt;Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.activiti.engine.IdentityService]: Factory method 'identityService' threw exception; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.form.engine.ActivitiFormException: Error initialising form data schema&lt;BR /&gt; at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)&lt;BR /&gt; at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)&lt;BR /&gt; ... 38 more&lt;BR /&gt;Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.form.engine.ActivitiFormException: Error initialising form data schema&lt;BR /&gt; at org.activiti.app.conf.ActivitiEngineConfiguration.processEngine(ActivitiEngineConfiguration.java:84)&lt;BR /&gt; at org.activiti.app.conf.ActivitiEngineConfiguration.identityService(ActivitiEngineConfiguration.java:186)&lt;BR /&gt; at org.activiti.app.conf.ActivitiEngineConfiguration$$EnhancerBySpringCGLIB$$7874fcd9.CGLIB$identityService$8(&amp;lt;generated&amp;gt;)&lt;BR /&gt; at org.activiti.app.conf.ActivitiEngineConfiguration$$EnhancerBySpringCGLIB$$7874fcd9$$FastClassBySpringCGLIB$$8c10758c.invoke(&amp;lt;generated&amp;gt;)&lt;BR /&gt; at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)&lt;BR /&gt; at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:309)&lt;BR /&gt; at org.activiti.app.conf.ActivitiEngineConfiguration$$EnhancerBySpringCGLIB$$7874fcd9.identityService(&amp;lt;generated&amp;gt;)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:606)&lt;BR /&gt; at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)&lt;BR /&gt; ... 39 more&lt;BR /&gt;Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.form.engine.ActivitiFormException: Error initialising form data schema&lt;BR /&gt; at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)&lt;BR /&gt; at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1517)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:251)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)&lt;BR /&gt; at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor$1.intercept(ConfigurationClassEnhancer.java:379)&lt;BR /&gt; at org.activiti.spring.ProcessEngineFactoryBean$$EnhancerBySpringCGLIB$$c2e3bcf4.getObject(&amp;lt;generated&amp;gt;)&lt;BR /&gt; at org.activiti.app.conf.ActivitiEngineConfiguration.processEngine(ActivitiEngineConfiguration.java:82)&lt;BR /&gt; ... 50 more&lt;BR /&gt;Caused by: org.activiti.form.engine.ActivitiFormException: Error initialising form data schema&lt;BR /&gt; at org.activiti.form.engine.FormEngineConfiguration.initDbSchema(FormEngineConfiguration.java:581)&lt;BR /&gt; at org.activiti.form.engine.FormEngineConfiguration.init(FormEngineConfiguration.java:391)&lt;BR /&gt; at org.activiti.form.engine.FormEngineConfiguration.buildFormEngine(FormEngineConfiguration.java:375)&lt;BR /&gt; at org.activiti.form.engine.configurator.FormEngineConfigurator.initFormEngine(FormEngineConfigurator.java:59)&lt;BR /&gt; at org.activiti.form.engine.configurator.FormEngineConfigurator.beforeInit(FormEngineConfigurator.java:36)&lt;BR /&gt; at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.configuratorsBeforeInit(ProcessEngineConfigurationImpl.java:1419)&lt;BR /&gt; at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.init(ProcessEngineConfigurationImpl.java:683)&lt;BR /&gt; at org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:664)&lt;BR /&gt; at org.activiti.spring.SpringProcessEngineConfiguration.buildProcessEngine(SpringProcessEngineConfiguration.java:65)&lt;BR /&gt; at org.activiti.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:57)&lt;BR /&gt; at org.activiti.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:32)&lt;BR /&gt; at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)&lt;BR /&gt; ... 57 more&lt;BR /&gt;Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!&lt;BR /&gt; at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)&lt;BR /&gt; at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:689)&lt;BR /&gt; at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)&lt;BR /&gt; at org.activiti.form.engine.FormEngineConfiguration.initDbSchema(FormEngineConfiguration.java:552)&lt;BR /&gt; ... 68 more&lt;BR /&gt;Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.&lt;BR /&gt; at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1418)&lt;BR /&gt; at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:606)&lt;BR /&gt; at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:526)&lt;BR /&gt; at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:755)&lt;BR /&gt; at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:682)&lt;BR /&gt; ... 70 more&lt;/P&gt;&lt;P&gt;juin 07, 2018 9:57:34 AM org.apache.catalina.core.StandardContext listenerStop&lt;BR /&gt;GRAVE: Exception lors de l'envoi de l'évènement contexte détruit (context destroyed) à l'instance de classe d'écoute org.activiti.app.servlet.WebConfigurer&lt;BR /&gt;java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?&lt;BR /&gt; at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:83)&lt;BR /&gt; at org.activiti.app.servlet.WebConfigurer.contextDestroyed(WebConfigurer.java:125)&lt;BR /&gt; at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5068)&lt;BR /&gt; at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5720)&lt;BR /&gt; at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)&lt;BR /&gt; at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)&lt;BR /&gt; at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)&lt;BR /&gt; at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)&lt;BR /&gt; at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)&lt;BR /&gt; at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)&lt;BR /&gt; at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1879)&lt;BR /&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:745)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do you have any idea where the problem is ? Do I have to preconfigure anything in mysql before ? Here is my mysql version :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;mysql --version&lt;/P&gt;&lt;P&gt;mysql&amp;nbsp; Ver 14.14 Distrib 5.5.60, for debian-linux-gnu (x86_64) using readline 6.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mysql -uactiviti -pactiviti&lt;/P&gt;&lt;P&gt;use activiti;&lt;/P&gt;&lt;P&gt;SHOW TABLES; &lt;BR /&gt;+-----------------------+ &lt;BR /&gt;| Tables_in_activiti | &lt;BR /&gt;+-----------------------+ &lt;BR /&gt;| ACT_EVT_LOG | &lt;BR /&gt;| ACT_GE_BYTEARRAY | &lt;BR /&gt;| ACT_GE_PROPERTY | &lt;BR /&gt;| ACT_HI_ACTINST | &lt;BR /&gt;| ACT_HI_ATTACHMENT | &lt;BR /&gt;| ACT_HI_COMMENT | &lt;BR /&gt;| ACT_HI_DETAIL | &lt;BR /&gt;| ACT_HI_IDENTITYLINK | &lt;BR /&gt;| ACT_HI_PROCINST | &lt;BR /&gt;| ACT_HI_TASKINST | &lt;BR /&gt;| ACT_HI_VARINST | &lt;BR /&gt;| ACT_ID_GROUP | &lt;BR /&gt;| ACT_ID_INFO | &lt;BR /&gt;| ACT_ID_MEMBERSHIP | &lt;BR /&gt;| ACT_ID_USER | &lt;BR /&gt;| ACT_PROCDEF_INFO | &lt;BR /&gt;| ACT_RE_DEPLOYMENT | &lt;BR /&gt;| ACT_RE_MODEL | &lt;BR /&gt;| ACT_RE_PROCDEF | &lt;BR /&gt;| ACT_RU_DEADLETTER_JOB | &lt;BR /&gt;| ACT_RU_EVENT_SUBSCR | &lt;BR /&gt;| ACT_RU_EXECUTION | &lt;BR /&gt;| ACT_RU_IDENTITYLINK | &lt;BR /&gt;| ACT_RU_JOB | &lt;BR /&gt;| ACT_RU_SUSPENDED_JOB | &lt;BR /&gt;| ACT_RU_TASK | &lt;BR /&gt;| ACT_RU_TIMER_JOB | &lt;BR /&gt;| ACT_RU_VARIABLE | &lt;BR /&gt;+-----------------------+ &lt;BR /&gt;28 rows in set (0.00 sec)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The data inside the database looks like the one shown in activiti-rest so I will suppose this part works. How can I fix the activiti-app please ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- - - -&lt;/P&gt;&lt;P&gt;PS : By replacing datasource with jdbc in &lt;STRONG&gt;activiti-app/.../activiti-app.properties&lt;/STRONG&gt;, the configuration seems to reuse the H2 one as they are not stored after a restart of tomcat7 (which is weird because I commented the H2 configuration).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- - - -&lt;/P&gt;&lt;P&gt;PPS : after editing the activiti-app configuration back to datasource (instead of jdbc), I could access to the application with a persistent database. It&amp;nbsp;modified the application configuration as the data seems to be reflected in database :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;| Tables_in_activiti |&lt;BR /&gt;| ACT_DE_DATABASECHANGELOG |&amp;nbsp;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;| ACT_WO_COMMENTS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/P&gt;&lt;P&gt;| ACT_WO_RELATED_CONTENT&amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;&lt;P&gt;| hibernate_sequences&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/P&gt;&lt;P&gt;+-------------------------------+&lt;BR /&gt;48 rows in set (0.00 sec)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But creating a new process definition / app / task / ... in activiti-app is never reflected in activiti-rest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not create a new user and check if he was created in database because Kermit doesn't have the right to&amp;nbsp;manage users even though he is in the admin group. Thus, I tested a modification of the profile (the lastname field in fact). However, this field is not in any ACT_ID_xxx table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part of the&amp;nbsp;URLs tested in activi-rest are :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #fcf6db; border: 1px solid #e5e0c6; font-size: 0.9em; margin: 5px 0px 0px; padding: 10px;"&gt;activiti-rest/service/runtime/tasks&lt;BR /&gt;activiti-rest/service/repository/process-definitions&lt;BR /&gt;activiti-rest/runtime/process-instances&lt;BR /&gt;activiti-rest/service/identity/users&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks by advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jun 2018 08:04:53 GMT</pubDate>
    <dc:creator>maximechicois</dc:creator>
    <dc:date>2018-06-07T08:04:53Z</dc:date>
    <item>
      <title>[6.0] Replace H2 with a standalone mysql server in activiti-app and activiti-rest</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/6-0-replace-h2-with-a-standalone-mysql-server-in-activiti-app/m-p/17593#M7792</link>
      <description>Hello, I am currently trying the activiti-app and activiti-rest applications and tried to replace the in-memory H2 database with a mysql server because the 2 applications did not point on the same database. However, when I try to change this configuration, Tomcat returns me a 404 for the associated</description>
      <pubDate>Thu, 07 Jun 2018 08:04:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/6-0-replace-h2-with-a-standalone-mysql-server-in-activiti-app/m-p/17593#M7792</guid>
      <dc:creator>maximechicois</dc:creator>
      <dc:date>2018-06-07T08:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: [6.0] Replace H2 with a standalone mysql server in activiti-app and activiti-rest</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/6-0-replace-h2-with-a-standalone-mysql-server-in-activiti-app/m-p/17594#M7793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that you are not using the correct Dialect for MySQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;#hibernate.dialect=org.hibernate.dialect.H2Dialect&lt;/SPAN&gt;&lt;BR style="color: #727174; background-color: #f6f6f6;" /&gt;&lt;SPAN style="color: #727174; background-color: #f6f6f6;"&gt;hibernate.dialect=org.hibernate.dialect.MySQLDialect&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems that form engine tables were not created&lt;/P&gt;&lt;P&gt;Caused by: org.activiti.form.engine.ActivitiFormException: Error initialising form data schema&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using an existing schema or letting Activiti create&amp;nbsp;the tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2018 12:47:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/6-0-replace-h2-with-a-standalone-mysql-server-in-activiti-app/m-p/17594#M7793</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-06-07T12:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: [6.0] Replace H2 with a standalone mysql server in activiti-app and activiti-rest</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/6-0-replace-h2-with-a-standalone-mysql-server-in-activiti-app/m-p/17595#M7794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I let Activiti create the tables. I only created a user that has access to the activiti database and linked its credentials in the activiti-app.properties file.&lt;/P&gt;&lt;P&gt;I replaced the H2 configuration&amp;nbsp;with MySQL for Hibernate as you pointed me and re-executed tomcat and now, the databases are correctly linked !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the db.properties from activiti-rest, there wasn't any definition of Hibernate for H2 in the demo. Should I add the same MySQL configuration as for activiti-app ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 07:07:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/6-0-replace-h2-with-a-standalone-mysql-server-in-activiti-app/m-p/17595#M7794</guid>
      <dc:creator>maximechicois</dc:creator>
      <dc:date>2018-06-08T07:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: [6.0] Replace H2 with a standalone mysql server in activiti-app and activiti-rest</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/6-0-replace-h2-with-a-standalone-mysql-server-in-activiti-app/m-p/17596#M7795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No that's not needed for activiti-rest since it doesn't use Hibernate. Is all working fine now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2018 09:20:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/6-0-replace-h2-with-a-standalone-mysql-server-in-activiti-app/m-p/17596#M7795</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-06-08T09:20:55Z</dc:date>
    </item>
  </channel>
</rss>

