cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to find activiti.cfg.xml

flostudent
Champ in-the-making
Champ in-the-making
Hello,

When I try to create a ProcessEngine object, the value of the object is always null :

ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
System.out.println(processEngine); // return null

I think the activiti.cfg.xml is not found by the engine ?

I know that this file must be in the classpath but i don't know where it can be. I have a Maven project, so I put it in the root folder.

Thanks for your help
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Maven doesn't add root-folder contents to class path. Use src/main/resources folder for this. That's maven 101, so please google a good tutorial of maven before asking this kind of questions in the Activiti forum.