Unable to find activiti.cfg.xml

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2013 06:11 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2013 03:44 AM
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.
