[
https://jira.jboss.org/jira/browse/JBPM-2315?page=com.atlassian.jira.plug...
]
sri r commented on JBPM-2315:
-----------------------------
I missed entries (didnt think empty tags would make a difference) in jbpm.cfg.xml ...issue
was resolved by taking the sample process definition from andries web site
http://www.inze.be/andries.
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
<import resource="jbpm.jpdl.cfg.xml"/>
<import resource="jbpm.identity.cfg.xml"/>
<process-engine-context>
<repository-service/>
<repository-cache/>
<execution-service/>
<history-service/>
<management-service/>
<identity-service/>
<task-service/>
<script-manager default-expression-language="juel"
default-script-language="juel"
read-contexts="execution, environment, process-engine,
spring"
write-context="">
<script-language name="juel"
factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory"/>
</script-manager>
<authentication/>
<id-generator/>
<types resource="jbpm.variable.types.xml"/>
<address-resolver/>
<business-calendar>
<monday hours="9:00-12:00 and 12:30-17:00"/>
<tuesday hours="9:00-12:00 and 12:30-17:00"/>
<wednesday hours="9:00-12:00 and 12:30-17:00"/>
<thursday hours="9:00-12:00 and 12:30-17:00"/>
<friday hours="9:00-12:00 and 12:30-17:00"/>
<holiday period="01/07/2008 - 31/08/2008"/>
</business-calendar>
<command-service>
<retry-interceptor/>
<environment-interceptor/>
<spring-transaction-interceptor current="true"/>
</command-service>
</process-engine-context>
<transaction-context>
<repository-session/>
<db-session/>
<message-session/>
<timer-session/>
<history-session/>
<hibernate-session current="true"/>
</transaction-context>
</jbpm-configuration>
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