ProcessApplication is not bootstrapped with annotation

Hi All,

I have created a spring-process application which is happen to bootstrapped if I am adding following line in ApplicationContext.xml.

However, same application is not being delpoyed when I bootstrap the same using annotation as following.
@ProcessApplication
public class MainProcessApplication extends org.camunda.bpm.engine.spring.application.SpringServletProcessApplication {

Applicaton did not throw any error but did not deploy any processes also.

29-Oct-2018 12:56:14.324 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\XYZ\Development\Camunda\camunda-bpm-tomcat-7.9.0_CE\server\apache-tomcat-9.0.5\webapps\process1-0.0.1-SNAPSHOT.war]
29-Oct-2018 12:56:17.743 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization started
29-Oct-2018 12:56:17.845 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing Root WebApplicationContext: startup date [Mon Oct 29 12:56:17 AEDT 2018]; root of context hierarchy
29-Oct-2018 12:56:17.925 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
29-Oct-2018 12:56:18.014 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7b224019: defining beans []; root of factory hierarchy
29-Oct-2018 12:56:18.018 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization completed in 275 ms
29-Oct-2018 12:56:18.023 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\XYZ\Development\Camunda\camunda-bpm-tomcat-7.9.0_CE\server\apache-tomcat-9.0.5\webapps\process1-0.0.1-SNAPSHOT.war] has finished in [3,699] ms

—Logs After proper application initialization
29-Oct-2018 12:55:40.214 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\XYZ\Development\Camunda\camunda-bpm-tomcat-7.9.0_CE\server\apache-tomcat-9.0.5\webapps\process1-0.0.1-SNAPSHOT.war]
29-Oct-2018 12:55:43.521 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization started
29-Oct-2018 12:55:43.645 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh Refreshing Root WebApplicationContext: startup date [Mon Oct 29 12:55:43 AEDT 2018]; root of context hierarchy
29-Oct-2018 12:55:43.743 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
29-Oct-2018 12:55:43.839 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@78e50d2f: defining beans [processApplication]; root of factory hierarchy
29-Oct-2018 12:55:43.898 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-08024 Found processes.xml file at file:/C:/XYZ/Development/Camunda/camunda-bpm-tomcat-7.9.0_CE/server/apache-tomcat-9.0.5/webapps/process1-0.0.1-SNAPSHOT/WEB-INF/classes/META-INF/processes.xml
29-Oct-2018 12:55:43.912 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-08023 Deployment summary for process archive 'loan-approval':

        order.bpmn       
        loanApproval.bpmn

29-Oct-2018 12:55:43.940 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-07021 ProcessApplication 'processApplication' registered for DB deployments [1b869758-db1d-11e8-b3e6-00155d010800]. Will execute process definitions

        Bulk_FFV_Creation[version: 1, id: Bulk_FFV_Creation:1:1b8dea5f-db1d-11e8-b3e6-00155d010800]
        loanApproval[version: 1, id: loanApproval:1:1b8dea60-db1d-11e8-b3e6-00155d010800]
        order[version: 1, id: order:1:1b8d9c3c-db1d-11e8-b3e6-00155d010800]
Deployment does not provide any case definitions.
29-Oct-2018 12:55:43.945 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.camunda.commons.logging.BaseLogger.logInfo SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormatProvider[name = application/json]
29-Oct-2018 12:55:43.948 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.camunda.commons.logging.BaseLogger.logInfo SPIN-01010 Discovered Spin data format provider: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormatProvider[name = application/xml]
29-Oct-2018 12:55:43.955 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.camunda.commons.logging.BaseLogger.logInfo SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.xml.dom.format.DomXmlDataFormat[name = application/xml]
29-Oct-2018 12:55:43.957 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.camunda.commons.logging.BaseLogger.logInfo SPIN-01009 Discovered Spin data format: org.camunda.spin.impl.json.jackson.format.JacksonJsonDataFormat[name = application/json]
29-Oct-2018 12:55:43.958 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.camunda.commons.logging.BaseLogger.logInfo ENGINE-08050 Process application processApplication successfully deployed
29-Oct-2018 12:55:43.968 INFO [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.ContextLoader.initWebApplicationContext Root WebApplicationContext: initialization completed in 447 ms

Any idea what I am doing wrong.

I would suggest trying following annotation:

@EnableProcessApplication

Hi,

@EnableProcessApplication is related to Spring boot. The applicaton I am working is spring framework web based application.

1 Like