cancel
Showing results for 
Search instead for 
Did you mean: 

ActivitiException: unknown variable type name jpa-entity

andregs
Champ in-the-making
Champ in-the-making
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: http://forums.activiti.org/en/viewtopic.php?f=6&t=2367 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>

<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,
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
The values of the jpaHandleTransaction and jpaCloseEntityManager don't matter. But you should set the jpaEntityManagerFactory (as the userguide states) or a jpaPersistenceUnitName…

andregs
Champ in-the-making
Champ in-the-making
Thank you for your reply, but jpaPersistenceUnitName was provided.

It seems to be an issue with job executor being used in different process engines… when I programmatically deploy my BAR file and start the job executor myself, the problem does not occur. So I stop using Activiti Probe.

Thanks again,