AnsweredAssumed Answered

ActivitiException: unknown variable type name jpa-entity

Question asked by andregs on Sep 9, 2011
Latest reply on Sep 16, 2011 by andregs
I’m having this exception when I try to use a timer boundary event to cancel a receive task. What does this exception mean? The same exception is thrown when I try to delete my deployment in Activiti Probe.

My scenario is described here: and this is my activiti.cfg.xml:

<!– glassfish transaction manager –>
<bean id="transactionManager" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:appserver/TransactionManager"></property>
<property name="resourceRef" value="true" />

<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.JtaProcessEngineConfiguration">
<property name="dataSourceJndiName" value="jdbc/process" />
<property name="jpaPersistenceUnitName" value="process-pu" />
<property name="jpaHandleTransaction" value="false" /> <!– it's JTA –>
<property name="jpaCloseEntityManager" value="false" /> <!– it's container-managed –>
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />


I have searched the user guide and this forum, but I was unable to find the answer. According to this other topic, it seems my config should be jpaHandleTransaction=true and jpaCloseEntityManager=true, but in my case I need JTA (jpaHandleTransaction=false) and container-managed transactions (jpaCloseEntityManager=false).

Is there something wrong with my config?

Thanks in advance,