cancel
Showing results for 
Search instead for 
Did you mean: 

Exception while initializing process engine

luisalves00
Champ in-the-making
Champ in-the-making
I'm creating the ProcessEngine like this:


ProcessEngine processEngine = ProcessEngineConfiguration
                    .createStandaloneProcessEngineConfiguration()
                    .setJdbcUrl(…..
                    .setHistory("audit")
                    .setProcessEngineName(ACTIVITI_ENGINE_NAME)
                    .buildProcessEngine();

then when I issue this:

ProcessEngines.getProcessEngine(ACTIVITI_ENGINE_NAME);

I get this exception:

11:05:08,137 ERROR ProcessEngines:157 - Exception while initializing process engine :No bean named 'processEngineConfiguration' is defined

why? do I still need the activiti.cfg.xml?!?!
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The ProcessEngines class is usable when you have (one or more) activiti.cfg.xml files on the classpath.
Just put your ProcessEngine you create programmatically in a static member, the end result is the same.