[
https://jira.jboss.org/jira/browse/JBPM-2315?page=com.atlassian.jira.plug...
]
Andries Inze commented on JBPM-2315:
------------------------------------
Could you paste your spring configuration?
Probably you have no transactionmanager defined or you aren't building a
SpringConfiguration.
jBPM Spring Unable to deploy process definition
-----------------------------------------------
Key: JBPM-2315
URL:
https://jira.jboss.org/jira/browse/JBPM-2315
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: jBPM 4.0.CR1
Environment: jbpm 4.0 CR1, HSQL, Spring 2.5 Hibernate 3.3 GA
Reporter: sri r
I have defined spring config with AOP have a txManager advice with propagation=required
and also defined my session factory, datasource, etc in config files.
jbpm.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="jbpmrc1_hsql/jbpm.default.cfg.xml" />
<import resource="jbpmrc1_hsql/jbpm.tx.hibernate.cfg.xml" />
<import resource="jbpmrc1_hsql/jbpm.jpdl.cfg.xml" />
<import resource="jbpmrc1_hsql/jbpm.identity.cfg.xml" />
<!-- Job executor is excluded for running the example test cases. -->
<!-- To enable timers and messages in production use, this should be included.
-->
<!--
<import resource="jbpm.jobexecutor.cfg.xml" />
-->
<!--<import resource="jbpm.mail.templates.examples.xml" />-->
</jbpm-configuration>
When i try to deploy a sample process def, i encounter the below error.
Error:
Caused by: org.jbpm.api.JbpmException: No platformTransaction manager defined.
at
org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:60)
at
org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:70)
at org.jbpm.pvm.internal.query.AbstractQuery.untypedUniqueResult(AbstractQuery.java:76)
at
org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.uniqueResult(ProcessDefinitionQueryImpl.java:151)
at
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira