cancel
Showing results for 
Search instead for 
Did you mean: 

Using Activiti without spring

challengeactivi
Champ in-the-making
Champ in-the-making
hi,

i just started using Activiti. I am using Eclipse.
I imported Jars from the Activiti program libs folder into Eclipse and crated a ProcessEngineConfiguration as described in the tutorials.

Doing:
  ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault();
OR:
  ProcessEngineConfiguration.
        createProcessEngineConfigurationFromInputStream(System.in);

Creates:
  Caused by: java.lang.ClassNotFoundException: org.springframework.core.io.Resource

(I have the activiti.cfg.xml in the src/ directory)

Doing:
    ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
Creates:
   java.lang.ClassNotFoundException: org.apache.ibatis.transaction.TransactionFactory

Not sure why spring is required

3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Spring is not required, only spring-beans if you want to read the configuration from a file (activiti.cfg.xml). If you create and configure the PEConfiguration yourself, spring is not required.

java.lang.ClassNotFoundException: org.apache.ibatis.transaction.TransactionFactory -> nothing to do with spring, make sure you have myBatis as dependency on your class path.

victorjatoba
Champ in-the-making
Champ in-the-making
import ibatis-core-3.0 in your project.
myBatis don't work with me.
See http://mavenhub.com/c/org/apache/ibatis/transaction/transactionfactory/jar

Regards.

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Victor,

working mvn project template with activiti engine and without spring can be found here:
https://github.com/Activiti/activiti-unit-test-template

Regards
Martin
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.