i have tried to integrate with camel spring with camuda but i am
getting error called no processes deployed with key
'startProcessFromRoute' but my process id is startProcessFromRoute and i
have deployed camuda war and camel-spring war in same tomcat(ver 7)
container and following is the debug
[DEBUG] 2016-09-30 10:18:11,607 org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity.selectLatestProcessDefinitionByKey debug - ==> Preparing: select * from ACT_RE_PROCDEF where KEY_ = ? and VERSION_ = (select max(VERSION_) from ACT_RE_PROCDEF where KEY_ = ?)
[DEBUG] 2016-09-30 10:18:11,612 org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity.selectLatestProcessDefinitionByKey debug - ==> Parameters: startProcessFromRoute(String), startProcessFromRoute(String)
Following my camel setup
camel-spring-camunda.xml (3.8 KB)
Hi @somehanu,
could you please attach your process definition?
Cheers,
Askar
@aakhmerov Please check attached file
camunda_proc_def.xml (4.0 KB)
Hi @somehanu,
could you rename your file to camunda_proc_def.bpmn20.xml
please and try again?
Cheers,
Askar
Sorry to say i running above in camunda container so in that scenario i have only bpmn file. i have generated war file with name loan-approval.war
camunda with bpmn design and i have another generated war file with name bpm-camel.war
with camel spring and camunda in camel xml file . Both the war files i have put in the camunda tomcat container.
Hi @somehanu,
I am sorry, I don’t follow, what does that have to do with process definition file name? You have to adjust your process definition file name as otherwise engine does not know how to interpret it.
Cheers,
Askar.
sorry its not worked. i am getting same error. error is org.camunda.bpm.engine.ProcessEngineException: no processes deployed with key 'camunda_proc_def.bpmn20'
Hi @somehanu,
could you attach your updated file again please.
Cheers,
Askar.
Please check attached file
camunda_proc_def.bpmn20.xml (4.5 KB)
@somehanu,
you have changed your name of process to “camunda_proc_def.bpmn20”, which you don’t really have to do. Only name of file had to be changed. Could you give it a try with only filename changed?
Cheers,
Askar.
Same Issue. Here i am giving the stack trace.
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)
[startRoute ] [startRoute ] [timer://simpleTimer?period=60000 ] [ 82]
[startRoute ] [setBody1 ] [setBody[simple{${body}}] ] [ 21]
[startRoute ] [to1 ] [camunda-bpm://start?processDefinitionKey=startProcessFromRoute©BodyAsVaria] [ 56]
Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
Id ID-analyzer-xubuntu-51757-1475243301329-0-2
ExchangePattern InOnly
Headers {breadcrumbId=ID-analyzer-xubuntu-51757-1475243301329-0-1, CamelRedelivered=false, CamelRedeliveryCounter=0, firedTime=Fri Sep 30 19:18:24 IST 2016}
BodyType null
Body [Body is null]
]
Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.camunda.bpm.engine.ProcessEngineException: no processes deployed with key 'startProcessFromRoute'
at org.camunda.bpm.engine.impl.persistence.deploy.DeploymentCache.findDeployedLatestProcessDefinitionByKey(DeploymentCache.java:78)
at org.camunda.bpm.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:60)
at org.camunda.bpm.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:32)
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:90)
at org.camunda.bpm.engine.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32)
at org.camunda.bpm.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:67)
at org.camunda.bpm.camel.component.producer.StartProcessProducer.process(StartProcessProducer.java:71)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:165)
at org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:73)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Not that I want to divert off the discussion from Tomcat… Keeping comment short.
But, Camunda v7.5 - v7.6alpha works w/o trouble on the WildFly platform alongside Apache Camel.
I’m using the WildFly - Apache Camel add-on (wildfly-extras)
WildFly is community supported. Though slightly more complicated than Tomcat… it’s a nice step up into Camunda’s EE platform with support for CDI (very similar to Spring but with less XML configuration).
If you open up cockpit, can you see the process definition deployed? My guess is some error in packaging the WAR, so your process never gets deployed. Maybe check https://docs.camunda.org/get-started/bpmn20/project-setup/ again for a proper WAR file.
Thanks to all for helping. I have did silly mistake. My db connection is wrong. So that only me got issue. Now i am able communicate with camel from camunda.