cancel
Showing results for 
Search instead for 
Did you mean: 

Rest service does reply new deployment information

masatooishi
Champ in-the-making
Champ in-the-making
Hi,

After I deployed a simple test process and started it, I can find the process/task information from activiti explore successfully, but I can not get  the information from aciviti-rest service.  For example, when I issue the following uri,

http://localhost:8080/activiti-rest/service/repository/deployments

reply is as follow.

{"data":[{"id":"20","name":"Demo processes","deploymentTime":"2014-03-5T07:21:18JST","category":null,"url":"http://localhost:8080/activiti-rest/service/repository/deployments/20"}],"total":1,"start":0,"sort":"id","order":"asc","size":1}

Could you please tell me what is wrong?
Thanks for the support offered.
5 REPLIES 5

masatooishi
Champ in-the-making
Champ in-the-making
Title is : Rest service does *not* reply new deployment information

trademak
Star Contributor
Star Contributor
Are you using the default Activiti Explorer and REST application db properties? Then they are using an in-memory database and therefore don't share the same database. In the in-mem setup you also have to deploy the process definition to the REST application. Or you have to use a MySQL or Postgres db (or another supported db) so that the Explorer and REST app share the same database.

Best regards,

masatooishi
Champ in-the-making
Champ in-the-making
Thank you for your answer.

I'd like to use DB2 database, so I read the manual, but I can not understand which xml file must be updated for DB2 driver.

Could you please tell me the file path and file name of the following database configuration file, and value for the IBM DB2 ?
————————————————————————
Example database configuration:
<property name="jdbcUrl" value="jdbc:db2://127.0.0.1:50000/SAMPLE" />   
<property name="jdbcDriver" value="com.ibm.db2.jcc.DB2Driver" />                     <—- is this value right?
<property name="jdbcUsername" value="db2admin" />
<property name="jdbcPassword" value="db2admin" />
————————————————————-

best regards,
Masato

masatooishi
Champ in-the-making
Champ in-the-making
Hi,

I can not find activiti.cfg.xml file which is mentioned in the manual,  I tried to change the file db.properties file on {$catalina_home}\webapps\activiti-explorer\WEB-INF\classes, then I can use mySQL database instead of H2.

best regards,

jbarrez
Star Contributor
Star Contributor
yes, db.properties is the correct file.