cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti rest is not working

jaikrishna
Champ on-the-rise
Champ on-the-rise
Hi ,

I had deployed rest wars in tomcat container . Restarted the tomcat .
But when I give the url like http://localhost:8080/activiti-rest/service/deployments , I am getting Http 404 error ..
Please help me .

Thanks
12 REPLIES 12

vasile_dirla
Star Contributor
Star Contributor
Hi,
Have a look here:
http://docs.alfresco.com/activiti/topics/listOfDeployments.html

Maybe will help you.

jaikrishna
Champ on-the-rise
Champ on-the-rise
Here in this link regarding 404 error nothing has been mentioned . I am getting 404 error instead of successful 200 ..
What may be the reason for it ?
Please help

jaikrishna
Champ on-the-rise
Champ on-the-rise
what may be the reason for the problem I am facing ? Please guide me

vasile_dirla
Star Contributor
Star Contributor
Hi,
I gave you this link as a guide to the rest calls. (as you know 404 means resource not found and I guess your url is not correct.)
I guess you want to list the deployments.

Did you read this?
http://www.activiti.org/userguide/
in the chapter 15: (REST API) you will find this:
15.2. Deployment
<code>GET repository/deployments</code>

did you try this one?
<code>
http://localhost:8080/activiti-rest/service/repository/deployments
</code>

Hi when i am changing activiti-rest default database to mysql i am getting 404 Not Found.But i am able to successfully change
default database of activiti-explorer.
My Steps:
1.I changed properties of db.properties(apache-tomcat-7.0.69/webapps/activiti-rest/WEB-INF/classes/db.properties)
2.Adding mysqlConnecter jar in apache-tomcat-7.0.69/webapps/activiti-rest/WEB-INF/lib.
It is working for activiti-explorer but not working for activiti rest.
Please help

jaikrishna
Champ on-the-rise
Champ on-the-rise
Hi ,
When I gave like http://localhost:8080/activiti-rest/service/repository/deployments , I am getting output like :
{
data: [1]
0:  {
id: "20"
name: "Demo processes"
deploymentTime: "2015-09-02T18:05:43.967+05:30"
category: null
url: "http://localhost:8080/activiti-rest/service/repository/deployments/20"
tenantId: ""
}-
-
total: 1
start: 0
sort: "id"
order: "asc"
size: 1
}

But when i go to activiti explorer and see the entries in act_Re_Deployment table , I can see entries named demo processes and demo reports with different id's .. How is it possible ? Ideally I should get those entries right when I give the url http://localhost:8080/activiti-rest/service/repository/deployments .. instead i am getting a different id itself .. please guide .. getting confused

vasile_dirla
Star Contributor
Star Contributor
Hi,
so this url is working: http://localhost:8080/activiti-rest/service/repository/deployments but you receive wrong data by calling it ?
Would be great if you could provide a JUnit to demonstrate what you expect and what actually you get.

jbarrez
Star Contributor
Star Contributor
Also note that the REST app and Explorer don't use the same datasource by default.

mdnoorshid
Champ in-the-making
Champ in-the-making
Hi when i am changing activiti-rest default database to mysql i am getting 404 Not Found.But i am able to successfully change
default database of activiti-explorer.
My Steps:
1.I changed properties of db.properties(apache-tomcat-7.0.69/webapps/activiti-rest/WEB-INF/classes/db.properties) with corresponding values.
2.Adding mysqlConnecter jar in apache-tomcat-7.0.69/webapps/activiti-rest/WEB-INF/lib.
It is working for activiti-explorer but not working for activiti rest.
Please help