cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating Activiti with JSF

fady_ahmed
Champ in-the-making
Champ in-the-making
Am trying to create Activiti process engine from a JSF project , when I call the

ProcessEngine engine = ProcessEngines.getDefaultProcessEngine();

it returns null , even though i've put the activiti.cfg.xml under  "web-inf/classes/"

and when i try to set the configuration programmatically

   ProcessEngine engine = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration()
               .setJdbcUrl("jdbcSmiley Surprisedracle:thin:@localhost:3306/test")
               .setJdbcDriver("oracle.jdbc.OracleDriver")
               .setJdbcUsername("user")
               .setJdbcPassword("pass")
               .setJobExecutorActivate(true)
               .buildProcessEngine();

i get this exception

Error while building ibatis SqlSessionFactory: Error creating document instance.  Cause: java.io.IOException: Server returned HTTP response code: 403 for URL: http://mybatis.org/dtd/mybatis-3-config.dtd
   
any ideas how can i start the engine from JSF ?
2 REPLIES 2

fady_ahmed
Champ in-the-making
Champ in-the-making
tried also putting the cfg file under   "web-inf/"

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

HTTP response code: 403
- forbidden web app does not have access to dtd - to check xml validity.

What is the stacktrace from the getting engine from activiti.cfg.xml?

Regards
Martin