AnsweredAssumed Answered

Issue with Activiti CDI libraries

Question asked by frank41 on Apr 26, 2012
Latest reply on Jul 4, 2014 by mghb2009
Hi all !
I'm trying to port the activiti-explorer application on JBoss AS 7.1.1, so looking at the docs I have created the following applicationContext.xml configuration:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

   <!– activiti configuration for jboss AS 7 –>

   <!– lookup the JTA-Transaction manager –>
   <bean id="transactionManager" class="org.springframework.jndi.JndiObjectFactoryBean">
      <property name="jndiName" value="java:jboss/TransactionManager"></property>
      <property name="resourceRef" value="true" />
   </bean>

   <!– process engine configuration –>
   <bean id="processEngineConfiguration" class="org.activiti.cdi.CdiJtaProcessEngineConfiguration">
      <property name="dataSourceJndiName" value="java:jboss/datasources/ExampleDS" />
      <property name="databaseType" value="h2" />
      <property name="transactionManager" ref="transactionManager" />
      <property name="transactionsExternallyManaged" value="true" />
      <property name="databaseSchemaUpdate" value="true" />
   </bean>

</beans>
When deploying the web application however, the deployer issues an error with the CdiJtaProcessEngineConfiguration. However I couldn't find any reference to this class in the activiti5.9 jars:

10:42:15,191 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/activiti-explorer]] (MSC service thread 1-4) Exception sending context initialized event to listener instance of class org.springframework.web.context.C
ontextLoaderListener: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.activiti.cdi.CdiJtaProcessEngineConfiguration] for
bean with name 'processEngineConfiguration' defined in ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.activiti.cdi.CdiJtaProcessEngineConfiguration from [Module "deployme
nt.activiti-explorer.war:main" from Service Module Loader]

Any idea how could I fix it ??
Thanks
Frank

Outcomes