AnsweredAssumed Answered

Activiti-6.0.0.Beta2 does not startup on Tomcat8.0.23

Question asked by rajivmoghe on May 26, 2016
Latest reply on May 26, 2016 by rajivmoghe
Downloaded Activiti 6 Beta 2 zip.
Copied mysql-connector-java-5.1.38.jar into $TOMCAT/lib
Copied activiti-app.war to $TOMCAT/webapps.

Created user alfresco/alfresco on the MySQL localhost, and also created the tables based on Activiti.zip/database/create/activiti.mysql.**.sql scripts.

Activiti app is not deployed. log file shows following errors:

26-May-2016 18:58:21.133 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.activiti.servlet.WebConfigurer
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 com.activiti.service.editor.ModelInternalService com.activiti.conf.Bootstrapper.modelService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modelServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.activiti.service.api.DeploymentService com.activiti.service.editor.ModelServiceImpl.deploymentService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deploymentServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.activiti.service.runtime.RuntimeAppDefinitionInternalService com.activiti.service.runtime.DeploymentServiceImpl.runtimeAppDefinitionService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'runtimeAppDefinitionServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.activiti.engine.runtime.Clock com.activiti.service.runtime.RuntimeAppDefinitionServiceImpl.clock; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.engine.ActivitiException: couldn't check if tables are already present using metadata: Connections could not be acquired from the underlying database!
   at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
   at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
   at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
   at com.activiti.servlet.WebConfigurer.contextInitialized(WebConfigurer.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:945)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1768)
   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: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.activiti.service.editor.ModelInternalService com.activiti.conf.Bootstrapper.modelService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modelServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.activiti.service.api.DeploymentService com.activiti.service.editor.ModelServiceImpl.deploymentService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deploymentServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.activiti.service.runtime.RuntimeAppDefinitionInternalService com.activiti.service.runtime.DeploymentServiceImpl.runtimeAppDefinitionService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'runtimeAppDefinitionServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.activiti.engine.runtime.Clock com.activiti.service.runtime.RuntimeAppDefinitionServiceImpl.clock; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.activiti.engine.ActivitiException: couldn't check if tables are already present using metadata: Connections could not be acquired from the underlying database!
   at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561)
   at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
   at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)
   … 24 more


Any help will be appreciated.
Rajiv

Outcomes