Multiple versions (war) parallel -> Exception sending context initialized event to listener instance of class ...

293 views
Skip to first unread message

frot...@gmail.com

unread,
May 28, 2015, 5:34:19 AM5/28/15
to camunda-...@googlegroups.com
Hi,

I'm trying to deploy multiple versions of a process application parallel, everyone of them in its own war file. While deploying the second war version I get the following exception in localhost log of Tomcat:
Exception sending context initialized event to listener instance of class testprocessversioning.app.TestProcessVersioningApplication

Deployment of the first war-file with version 1.0.1 works fine.
The exception occurs, when I try to deploy the second war-file with the higher version 1.0.2 to my Tomcat.
I changed the following things before deploying second war:
- Change <finalName> in pom
- Change processId in BPMN
- Change name of process in BPMN
- Change name of the service task in BPMN

I followed to this sample from Falko: https://github.com/camunda/camunda-consulting/tree/master/snippets/multiple-versions-parallel
Only difference is:
- a java delegate class for the service task in BPMN
- a class extending ServletProcessApplication with annotation @ProcessApplication
- using standalone vanilla Tomcat server (no spring or CDI) with H2


Here is the complete log output from catalina.{...}.log:
2015-05-28 11:12:29,811 INFORMATION org.apache.catalina.startup.HostConfig deployWAR: Deploying web application archive C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\testprocessversioning_1.0.1.war
2015-05-28 11:12:30,888 INFORMATION org.camunda.bpm.application.impl.ServletProcessApplicationDeployer onStartup: Detected @ProcessApplication class testprocessversioning.app.TestProcessVersioningApplication
2015-05-28 11:12:30,888 INFORMATION testprocessversioning.app.TestProcessVersioningApplication <init>: Initialize Application
2015-05-28 11:12:30,888 INFORMATION testprocessversioning.app.TestProcessVersioningApplication contextInitialized: Context initialized Event javax.servlet.ServletContextEvent[source=org.apache.catalina.core.StandardContext$NoPluggabilityServletContext@444b3e]
2015-05-28 11:12:30,888 INFORMATION org.camunda.bpm.container.impl.deployment.ParseProcessesXmlStep parseProcessesXmlFiles: Found process application file at file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/Tomcat%207.0/webapps/testprocessversioning_1.0.1/
WEB-INF/classes/META-INF/processes.xml
2015-05-28 11:12:30,903 INFORMATION org.camunda.bpm.container.impl.deployment.DeployProcessArchiveStep logDeploymentSummary: Deployment summary for process archive 'TestProcessVersioning':

testVersioning.bpmn
testVersioning.png
2015-05-28 11:12:30,919 INFORMATION org.camunda.bpm.engine.impl.application.ProcessApplicationManager logRegistration: ProcessApplication 'TestProzessVersioning' registered for DB deployments [ab2fdcee-0519-11e5-af79-34e6d70e1fb1]. Will execute process definitions

Process_1.0.1[version: 1, id: Process_1.0.1:1:ab324df1-0519-11e5-af79-34e6d70e1fb1]
Deployment does not provide any case definitions.
2015-05-28 11:12:30,919 INFORMATION org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl deployProcessApplication: Process Application TestProzessVersioning successfully deployed.
2015-05-28 11:12:30,934 INFORMATION org.apache.catalina.startup.HostConfig deployWAR: Deployment of web application archive C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\testprocessversioning_1.0.1.war has finished in 1,123 ms
2015-05-28 11:21:28,025 INFORMATION org.apache.catalina.startup.HostConfig deployWAR: Deploying web application archive C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\testprocessversioning_1.0.2.war
2015-05-28 11:21:29,117 INFORMATION org.camunda.bpm.application.impl.ServletProcessApplicationDeployer onStartup: Detected @ProcessApplication class testprocessversioning.app.TestProcessVersioningApplication
2015-05-28 11:21:29,117 INFORMATION testprocessversioning.app.TestProcessVersioningApplication <init>: Initialize Application
2015-05-28 11:21:29,117 INFORMATION testprocessversioning.app.TestProcessVersioningApplication contextInitialized: Context initialized Event javax.servlet.ServletContextEvent[source=org.apache.catalina.core.StandardContext$NoPluggabilityServletContext@174d8c0]
2015-05-28 11:21:29,133 INFORMATION org.camunda.bpm.container.impl.deployment.ParseProcessesXmlStep parseProcessesXmlFiles: Found process application file at file:/C:/Program%20Files%20(x86)/Apache%20Software%20Foundation/Tomcat%207.0/webapps/testprocessversioning_1.0.2/
WEB-INF/classes/META-INF/processes.xml
2015-05-28 11:21:29,133 INFORMATION org.camunda.bpm.container.impl.deployment.DeployProcessArchiveStep logDeploymentSummary: Deployment summary for process archive 'TestProcessVersioning':

testVersioning.bpmn
testVersioning.png
2015-05-28 11:21:29,149 INFORMATION org.camunda.bpm.engine.impl.application.ProcessApplicationManager logRegistration: ProcessApplication 'TestProzessVersioning' registered for DB deployments [ebff3e52-051a-11e5-af79-34e6d70e1fb1]. Will execute process definitions

Process_1.0.2[version: 1, id: Process_1.0.2:1:ec01af55-051a-11e5-af79-34e6d70e1fb1]
Deployment does not provide any case definitions.
2015-05-28 11:21:29,149 SCHWERWIEGEND org.apache.catalina.core.StandardContext startInternal: Error listenerStart
2015-05-28 11:21:29,164 SCHWERWIEGEND org.apache.catalina.core.StandardContext startInternal: Context [/testprocessversioning_1.0.2] startup failed due to previous errors
2015-05-28 11:21:29,164 INFORMATION org.apache.catalina.startup.HostConfig deployWAR: Deployment of web application archive C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\webapps\testprocessversioning_1.0.2.war has finished in 1,139 ms

And here is the output from localhost.{..}.log:
2015-05-28 11:12:30,888 FEIN org.apache.catalina.core.StandardContext listenerStart: Sending application start events
2015-05-28 11:12:30,919 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filters
2015-05-28 11:12:30,919 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filter 'Tomcat WebSocket (JSR356) Filter'
2015-05-28 11:21:29,117 FEIN org.apache.catalina.core.StandardContext listenerStart: Sending application start events
2015-05-28 11:21:29,149 SCHWERWIEGEND org.apache.catalina.core.StandardContext listenerStart: Exception sending context initialized event to listener instance of class testprocessversioning.app.TestProcessVersioningApplication
2015-05-28 11:21:29,164 FEIN org.apache.catalina.core.StandardContext filterStop: Stopping filters


As you can see, deployment works fine, for the first time with version 1.0.1 but crashes with while deploying 1.0.2.

I have to classes in my process application. First the extending class to ServletProcessApplication and second the java delegate to my service task in the BPMN.
Here are the classes:

@ProcessApplication("TestProzessVersioning")
public class TestProcessVersioningApplication extends ServletProcessApplication {

private final static Logger LOGGER = Logger
.getLogger(TestProcessVersioningApplication.class.getName());

public TestProcessVersioningApplication() {
LOGGER.info("Initialize Application");
}

@Override
public void contextInitialized(ServletContextEvent sce) {
LOGGER.info("Context initialized Event " + sce.toString());
super.contextInitialized(sce);
}

}

public class ServiceTaskImplementation implements JavaDelegate {

public ServiceTaskImplementation() {

}

@Override
public void execute(DelegateExecution execution) throws Exception {
execution.setVariable("ServiceTaskImplementationVersion",
"1.0.2 Build 1");
}

}


Any ideas what I'm doing wrong?
Message has been deleted

frot...@gmail.com

unread,
May 28, 2015, 7:32:06 AM5/28/15
to camunda-...@googlegroups.com, frot...@gmail.com
Here is the localhost log from start-up. The FATAL/SCHWERWIEGEND exception makes me wonder.

2015-05-28 13:11:13,765 FEIN org.apache.catalina.core.StandardContext listenerStart: Configuring event listener class 'org.apache.catalina.deploy.ApplicationListener@7815f214'
2015-05-28 13:11:13,765 FEIN org.apache.catalina.core.StandardContext listenerStart: Configuring event listener class 'org.apache.catalina.deploy.ApplicationListener@edcf2fd4'
2015-05-28 13:11:13,765 FEIN org.apache.catalina.core.StandardContext listenerStart: Sending application start events
2015-05-28 13:11:13,781 FEIN org.apache.catalina.session.StandardSession readObject: readObject() loading session 1798A1E3F405038ED0A0C90A7A54DC4A
2015-05-28 13:11:13,797 FEIN org.apache.catalina.session.StandardSession readObject: loading attribute 'authenticatedUser' with value 'org.camunda.bpm.webapp.impl.security.auth.Authenticat
ions@5458db'
2015-05-28 13:11:13,797 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filters
2015-05-28 13:11:13,797 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filter 'Engines Filter'
2015-05-28 13:11:13,797 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filter 'Cockpit Client Plugins Filter'
2015-05-28 13:11:13,797 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filter 'Tomcat WebSocket (JSR356) Filter'
2015-05-28 13:11:13,797 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filter 'SecurityFilter'
2015-05-28 13:11:13,999 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filter 'Authentication Filter'
2015-05-28 13:11:13,999 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filter 'Admin Client Plugins Filter'
2015-05-28 13:11:13,999 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filter 'CacheControlFilter'
2015-05-28 13:11:15,045 FEIN org.apache.catalina.core.StandardContext listenerStart: Sending application start events
2015-05-28 13:11:15,622 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filters
2015-05-28 13:11:15,622 FEIN org.apache.catalina.core.StandardContext filterStart: Starting filter 'Tomcat WebSocket (JSR356) Filter'
2015-05-28 13:11:18,073 INFORMATION org.apache.catalina.core.ApplicationContext log: No Spring WebApplicationInitializer types detected on classpath
2015-05-28 13:11:18,073 FEIN org.apache.catalina.core.StandardContext listenerStart: Configuring event listener class 'org.apache.catalina.deploy.ApplicationListener@68cb70b5'
2015-05-28 13:11:18,089 FEIN org.apache.catalina.core.StandardContext listenerStart: Configuring event listener class 'org.apache.catalina.deploy.ApplicationListener@7815f214'
2015-05-28 13:11:18,089 FEIN org.apache.catalina.core.StandardContext listenerStart: Configuring event listener class 'org.apache.catalina.deploy.ApplicationListener@edcf2fd4'
2015-05-28 13:11:18,089 FEIN org.apache.catalina.core.StandardContext listenerStart: Sending application start events
2015-05-28 13:11:18,104 INFORMATION org.apache.catalina.core.ApplicationContext log: Initializing Spring root WebApplicationContext
2015-05-28 13:11:19,090 SCHWERWIEGEND org.apache.catalina.core.StandardContext listenerStart: Exception sending context initialized event to listener instance of class org.springframework.we
b.context.ContextLoaderListener
2015-05-28 13:11:19,106 FEIN org.apache.catalina.core.StandardContext filterStop: Stopping filters
2015-05-28 13:11:19,106 INFORMATION org.apache.catalina.core.ApplicationContext log: Closing Spring root WebApplicationContext


Also this exception results in another FATAL/SCHWERWIEGEND log entry in the catalina log:
2015-05-28 13:11:19,090 SCHWERWIEGEND org.apache.catalina.core.StandardContext startInternal: Error listenerStart
2015-05-28 13:11:19,106 SCHWERWIEGEND org.apache.catalina.core.StandardContext startInternal: Context [/camunda-webapp-ee-tomcat-standalone-7.2.1-ee] startup failed due to previous errors
2015-05-28 13:11:19,121 SCHWERWIEGEND org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc: The web application [/camunda-webapp-ee-tomcat-standalone-7.2.1-ee] registered the JDB
C driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

Sebastian Menski

unread,
May 29, 2015, 3:43:46 AM5/29/15
to camunda-...@googlegroups.com, frot...@gmail.com, frot...@gmail.com
Hi,

I have some questions regarding your setup:
  • Do you use a vanilla tomcat without camunda or a camunda tomcat distro? 
  • Do your process application use a shared or a embedded engine?
  • Do you have the standalone webapp deployed?
  • If you deploy your war's to a camunda tomcat distro, do have the same problems?
Cheers,
Sebastian

frot...@gmail.com

unread,
May 29, 2015, 4:24:34 AM5/29/15
to camunda-...@googlegroups.com, frot...@gmail.com
Hi,

here are the answers:

1. I use a camunda distro, but upgraded it to Tomcat 7.0.61. Done this by override files in bin- and in lib-folder with newer files.
2. Process app uses a shared process engine.
3. A folder in the webapps-folder is named "camunda-webapp-ee-tomcat-standalone-7.2.1-ee". So I think, I have deployed a standalone webapp version.
4. In case of point 1. I only use the camunda tomcat distro.

Bye
Jan

Sebastian Menski

unread,
May 29, 2015, 4:32:01 AM5/29/15
to camunda-...@googlegroups.com, frot...@gmail.com, frot...@gmail.com
Hi Jan,

could you please check if your war deployment works on a camunda tomcat distro without your upgrade to Tomcat 7.0.61. Tomcat has changed the
classloading with 7.0.51. Maybe this could be a problem.

Cheers,
Sebastian

frot...@gmail.com

unread,
May 29, 2015, 5:28:01 AM5/29/15
to camunda-...@googlegroups.com, frot...@gmail.com
Hi Sebastian,

same result with Tomcat 7.0.50. What I did:
1. Took your camunda-bpm-ee-tomcat-7.2.1-ee.zip and unzip it to c:\temp
2. start-camunda.bat
3. put my testprocessversioning-1.0.1-SNAPSHOT.war to webapps and wait for deploy
4. put my testprocessversioning-1.0.2-SNAPSHOT.war and wait for deploy
5. Error on second deploy. See complete catalina.log at the end of this post

Should I provide you the war-files and eclipse project for further investigations?

Bye
Jan

Mai 29, 2015 11:16:21 AM org.apache.catalina.core.AprLifecycleListener init
Mai 29, 2015 11:16:21 AM org.apache.coyote.AbstractProtocol init
INFORMATION: Initializing ProtocolHandler ["http-bio-8080"]
Mai 29, 2015 11:16:21 AM org.apache.coyote.AbstractProtocol init
INFORMATION: Initializing ProtocolHandler ["ajp-bio-8009"]
Mai 29, 2015 11:16:21 AM org.apache.catalina.startup.Catalina load
INFORMATION: Initialization processed in 548 ms
Mai 29, 2015 11:16:22 AM org.camunda.bpm.container.impl.tomcat.deployment.TomcatParseBpmPlatformXmlStep lookupBpmPlatformXmlFromCatalinaConfDirectory
INFORMATION: Found camunda bpm platform configuration in CATALINA_BASE/CATALINA_HOME conf directory [C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\conf\bpm-platform.xml] at file:/C:/temp/camunda-bpm-ee-tomcat-7.2.1-ee/server/apache-tomcat-7.0.50/conf/bpm-platform.xml
Mai 29, 2015 11:16:22 AM org.camunda.bpm.engine.impl.jobexecutor.JobExecutor start
INFORMATION: Starting up the JobExecutor[org.camunda.bpm.engine.impl.jobexecutor.RuntimeContainerJobExecutor].
Mai 29, 2015 11:16:22 AM org.camunda.bpm.engine.impl.jobexecutor.SequentialJobAcquisitionRunnable run
INFORMATION: JobExecutor[org.camunda.bpm.engine.impl.jobexecutor.RuntimeContainerJobExecutor] starting to acquire jobs
Mai 29, 2015 11:16:22 AM org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl invokePreInit
INFORMATION: PLUGIN ProcessApplicationEventListenerPlugin activated on process engine default
Mai 29, 2015 11:16:22 AM org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl invokePreInit
INFORMATION: PLUGIN SpinProcessEnginePlugin activated on process engine default
Mai 29, 2015 11:16:23 AM org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl invokePreInit
INFORMATION: PLUGIN ConnectProcessEnginePlugin activated on process engine default
Mai 29, 2015 11:16:24 AM org.camunda.bpm.engine.impl.db.sql.DbSqlSession executeSchemaResource
INFORMATION: performing create on engine with resource org/camunda/bpm/engine/db/create/activiti.h2.create.engine.sql
Mai 29, 2015 11:16:24 AM org.camunda.bpm.engine.impl.db.sql.DbSqlSession executeSchemaResource
INFORMATION: performing create on history with resource org/camunda/bpm/engine/db/create/activiti.h2.create.history.sql
Mai 29, 2015 11:16:24 AM org.camunda.bpm.engine.impl.db.sql.DbSqlSession executeSchemaResource
INFORMATION: performing create on identity with resource org/camunda/bpm/engine/db/create/activiti.h2.create.identity.sql
Mai 29, 2015 11:16:24 AM org.camunda.bpm.engine.impl.db.sql.DbSqlSession executeSchemaResource
INFORMATION: performing create on case.engine with resource org/camunda/bpm/engine/db/create/activiti.h2.create.case.engine.sql
Mai 29, 2015 11:16:24 AM org.camunda.bpm.engine.impl.db.sql.DbSqlSession executeSchemaResource
INFORMATION: performing create on case.history with resource org/camunda/bpm/engine/db/create/activiti.h2.create.case.history.sql
Mai 29, 2015 11:16:24 AM org.camunda.bpm.engine.impl.SchemaOperationsProcessEngineBuild checkHistoryLevel
INFORMATION: No historyLevel property found in database.
Mai 29, 2015 11:16:24 AM org.camunda.bpm.engine.impl.SchemaOperationsProcessEngineBuild dbCreateHistoryLevel
INFORMATION: Creating historyLevel property in database with value: full
Mai 29, 2015 11:16:24 AM org.camunda.bpm.engine.impl.ProcessEngineImpl <init>
INFORMATION: ProcessEngine default created
Mai 29, 2015 11:16:24 AM org.camunda.bpm.container.impl.tomcat.TomcatBpmPlatformBootstrap deployBpmPlatform
INFORMATION: camunda BPM platform sucessfully started on Apache Tomcat/7.0.50.
Mai 29, 2015 11:16:24 AM org.apache.catalina.core.StandardService startInternal
INFORMATION: Starting service Catalina
Mai 29, 2015 11:16:24 AM org.apache.catalina.core.StandardEngine startInternal
INFORMATION: Starting Servlet Engine: Apache Tomcat/7.0.50
Mai 29, 2015 11:16:24 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\camunda
Mai 29, 2015 11:16:27 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\camunda-invoice
Mai 29, 2015 11:16:29 AM org.camunda.bpm.application.impl.ServletProcessApplicationDeployer onStartup
INFORMATION: Detected @ProcessApplication class org.camunda.bpm.example.invoice.InvoiceProcessApplication
Mai 29, 2015 11:16:29 AM org.camunda.bpm.container.impl.deployment.ParseProcessesXmlStep parseProcessesXmlFiles
INFORMATION: Found process application file at file:/C:/temp/camunda-bpm-ee-tomcat-7.2.1-ee/server/apache-tomcat-7.0.50/webapps/camunda-invoice/WEB-INF/classes/META-INF/processes.xml
Mai 29, 2015 11:16:29 AM org.camunda.bpm.container.impl.deployment.DeployProcessArchiveStep logDeploymentSummary
INFORMATION: Deployment summary for process archive 'camunda-invoice':

invoice.png
invoice.bpmn

Mai 29, 2015 11:16:29 AM org.camunda.bpm.engine.impl.application.ProcessApplicationManager logRegistration
INFORMATION: ProcessApplication 'camunda-invoice' registered for DB deployments [63fb3329-05e3-11e5-8491-34e6d70e1fb1]. Will execute process definitions

invoice[version: 1, id: invoice:1:64098b0c-05e3-11e5-8491-34e6d70e1fb1]
Deployment does not provide any case definitions.
Mai 29, 2015 11:16:29 AM org.camunda.bpm.example.invoice.DemoDataGenerator createUsers
INFORMATION: Generating demo data for invoice showcase
Mai 29, 2015 11:16:30 AM org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl deployProcessApplication
INFORMATION: Process Application camunda-invoice successfully deployed.
Mai 29, 2015 11:16:30 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\camunda-welcome
Mai 29, 2015 11:16:31 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\docs
Mai 29, 2015 11:16:33 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\engine-rest
Mai 29, 2015 11:16:36 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\examples
Mai 29, 2015 11:16:38 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\h2
Mai 29, 2015 11:16:40 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\host-manager
Mai 29, 2015 11:16:42 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\manager
Mai 29, 2015 11:16:43 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\ROOT
Mai 29, 2015 11:16:45 AM org.apache.coyote.AbstractProtocol start
INFORMATION: Starting ProtocolHandler ["http-bio-8080"]
Mai 29, 2015 11:16:45 AM org.apache.coyote.AbstractProtocol start
INFORMATION: Starting ProtocolHandler ["ajp-bio-8009"]
Mai 29, 2015 11:16:45 AM org.apache.catalina.startup.Catalina start
INFORMATION: Server startup in 23602 ms
Mai 29, 2015 11:17:25 AM org.apache.catalina.startup.HostConfig deployWAR
INFORMATION: Deploying web application archive C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\testprocessversioning-1.0.1-SNAPSHOT.war
Mai 29, 2015 11:17:27 AM org.camunda.bpm.application.impl.ServletProcessApplicationDeployer onStartup
INFORMATION: Detected @ProcessApplication class test.testprocessversioning.app.TestProcessVersioningApplication
Mai 29, 2015 11:17:27 AM test.testprocessversioning.app.TestProcessVersioningApplication <init>
INFORMATION: Initialize Application
Mai 29, 2015 11:17:27 AM test.testprocessversioning.app.TestProcessVersioningApplication contextInitialized
INFORMATION: Context initialized Event javax.servlet.ServletContextEvent[source=org.apache.catalina.core.StandardContext$NoPluggabilityServletContext@1662d3e]
Mai 29, 2015 11:17:27 AM org.camunda.bpm.container.impl.deployment.ParseProcessesXmlStep parseProcessesXmlFiles
INFORMATION: Found process application file at file:/C:/temp/camunda-bpm-ee-tomcat-7.2.1-ee/server/apache-tomcat-7.0.50/webapps/testprocessversioning-1.0.1-SNAPSHOT/WEB-INF/classes/META-INF/processes.xml
Mai 29, 2015 11:17:27 AM org.camunda.bpm.container.impl.deployment.DeployProcessArchiveStep logDeploymentSummary
INFORMATION: Deployment summary for process archive 'TestProcessVersioning':

testVersioning.bpmn
testVersioning.png

Mai 29, 2015 11:17:27 AM org.camunda.bpm.engine.impl.application.ProcessApplicationManager logRegistration
INFORMATION: ProcessApplication 'TestProzessVersioning' registered for DB deployments [864c71f6-05e3-11e5-8491-34e6d70e1fb1]. Will execute process definitions

Process_1.0.1[version: 1, id: Process_1.0.1:1:86512ce9-05e3-11e5-8491-34e6d70e1fb1]
Deployment does not provide any case definitions.
Mai 29, 2015 11:17:27 AM org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl deployProcessApplication
INFORMATION: Process Application TestProzessVersioning successfully deployed.
Mai 29, 2015 11:17:47 AM org.apache.catalina.startup.HostConfig deployWAR
INFORMATION: Deploying web application archive C:\temp\camunda-bpm-ee-tomcat-7.2.1-ee\server\apache-tomcat-7.0.50\webapps\testprocessversioning-1.0.2-SNAPSHOT.war
Mai 29, 2015 11:17:49 AM org.camunda.bpm.application.impl.ServletProcessApplicationDeployer onStartup
INFORMATION: Detected @ProcessApplication class test.testprocessversioning.app.TestProcessVersioningApplication
Mai 29, 2015 11:17:49 AM test.testprocessversioning.app.TestProcessVersioningApplication <init>
INFORMATION: Initialize Application
Mai 29, 2015 11:17:49 AM test.testprocessversioning.app.TestProcessVersioningApplication contextInitialized
INFORMATION: Context initialized Event javax.servlet.ServletContextEvent[source=org.apache.catalina.core.StandardContext$NoPluggabilityServletContext@630105]
Mai 29, 2015 11:17:49 AM org.camunda.bpm.container.impl.deployment.ParseProcessesXmlStep parseProcessesXmlFiles
INFORMATION: Found process application file at file:/C:/temp/camunda-bpm-ee-tomcat-7.2.1-ee/server/apache-tomcat-7.0.50/webapps/testprocessversioning-1.0.2-SNAPSHOT/WEB-INF/classes/META-INF/processes.xml
Mai 29, 2015 11:17:49 AM org.camunda.bpm.container.impl.deployment.DeployProcessArchiveStep logDeploymentSummary
INFORMATION: Deployment summary for process archive 'TestProcessVersioning':

testVersioning.bpmn
testVersioning.png

Mai 29, 2015 11:17:49 AM org.camunda.bpm.engine.impl.application.ProcessApplicationManager logRegistration
INFORMATION: ProcessApplication 'TestProzessVersioning' registered for DB deployments [936cbc5a-05e3-11e5-8491-34e6d70e1fb1]. Will execute process definitions

Process_1.0.2[version: 1, id: Process_1.0.2:1:936f2d5d-05e3-11e5-8491-34e6d70e1fb1]
Deployment does not provide any case definitions.
Mai 29, 2015 11:17:49 AM org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Error listenerStart
Mai 29, 2015 11:17:49 AM org.apache.catalina.core.StandardContext startInternal
SCHWERWIEGEND: Context [/testprocessversioning-1.0.2-SNAPSHOT] startup failed due to previous errors

Sebastian Menski

unread,
May 29, 2015, 5:31:57 AM5/29/15
to camunda-...@googlegroups.com, frot...@gmail.com, frot...@gmail.com
Hi Jan,
 
Should I provide you the war-files and eclipse project for further investigations? 

yes please. I will try to reproduce this behavior. Thanks

Cheers,
Sebastian 
Message has been deleted

Sebastian Menski

unread,
May 29, 2015, 6:12:53 AM5/29/15
to camunda-...@googlegroups.com, frot...@gmail.com, frot...@gmail.com
Hi Jan,

the problem is that both of your process application versions have the same process application name. So the registration fails as already an process application with this
name exists. The example from Falko works as he uses the DefaultEjbProcessApplication which generates the process application name.

A solution for you would be either to rename your process application by hand like @ProcessApplication("TestProzessVersioning-1.0.2") or remove
the name from the annotation and just use @ProcessApplication. The ServletProcessApplication will then generate a name for you.

Cheers,
Sebastian

frot...@gmail.com

unread,
May 29, 2015, 6:48:57 AM5/29/15
to camunda-...@googlegroups.com, frot...@gmail.com
Hi Sebastian,

perfect! This solves the problem.

Thanks!
Jan
Reply all
Reply to author
Forward
0 new messages