cancel
Showing results for 
Search instead for 
Did you mean: 

activiti missing groovy as wildfly module

zsv
Champ in-the-making
Champ in-the-making
Hello.
I try to use activity 5.17(spring) in my web app.
Here spring config part:

   <bean id="activitiProcessEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
       <property name="dataSource" ref="dataSource" />
       <property name="transactionManager" ref="transactionManager" />
       <property name="databaseSchemaUpdate" value="false" />
       <property name="history" value="none" />
       
       <property name="jobExecutorActivate" value="true" />
       <property name="asyncExecutorEnabled" value="true" />
       <property name="asyncExecutorActivate" value="true" />
   </bean>
   <bean id="activitiProcessEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
        <property name="processEngineConfiguration" ref="activitiProcessEngineConfiguration" />
   </bean>
   <bean id="activitiRepositoryService" factory-bean="activitiProcessEngine" factory-method="getRepositoryService" />
     <bean id="activitiRuntimeService" factory-bean="activitiProcessEngine" factory-method="getRuntimeService" />
     <bean id="activitiTaskService" factory-bean="activitiProcessEngine" factory-method="getTaskService" />


Groovy-indy libs are placed as wildfly module. In application war manifest.mf reference to this module exist.

When i try to execute groovy script task exception occured:
Job 85004 failed: org.activiti.engine.ActivitiException: Can't find scripting engine for 'groovy'.

If include groovy-all.jar in war file all ok.
3 REPLIES 3

trademak
Star Contributor
Star Contributor
I'm not familiar with Groovy-indy libs in Wildfly. We always have worked with groovy-all in the Activiti WAR file.

Best regards,

zsv
Champ in-the-making
Champ in-the-making
Found workaround: add to war only groovy-jsr223 jar. It smaller that groovy-all.

jbarrez
Star Contributor
Star Contributor
Thanks for posting your solution!