AnsweredAssumed Answered

Activiti REST after restart

Question asked by hbacanak@hotmail.com on Feb 18, 2015
Latest reply on Mar 5, 2015 by hbacanak@hotmail.com
Hi,

I am deploying activiti-rest(5.17.0) war on tomcat (8.0.9) and postgresql(9.3.5). However it only works for the first time. After i restart tomcat i get 404.

What i changed:

activiti-rest\WEB-INF\classes\db.properties
db=pgsql
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://localhost:5432/Activiti
jdbc.username=xxxx
jdbc.password=xxxx

activiti-rest\WEB-INF\classes\engine.properties(first run)
# demo data properties
create.demo.users=true
create.demo.definitions=true
create.demo.models=true

# engine properties
engine.schema.update=true
engine.activate.jobexecutor=false
engine.asyncexecutor.enabled=true
engine.asyncexecutor.activate=true
engine.history.level=full

activiti-rest\WEB-INF\classes\engine.properties(other runs)
# demo data properties
create.demo.users=false
create.demo.definitions=false
create.demo.models=false

# engine properties
engine.schema.update=false
engine.activate.jobexecutor=false
engine.asyncexecutor.enabled=true
engine.asyncexecutor.activate=true
engine.history.level=full

What i expect?
After database initialization and demo data is set, i shouldn't recreate the data again.

What is happening
At first deployment everything is working as expected
http://localhost:8080/activiti-rest/service/identity/users returns
{"data":[{"id":"fozzie","firstName":"Fozzie","lastName":"Bear","url":"http://localhost:8080/activiti-rest/service/identity/users/fozzie','email':'fozzie@activiti.org','pictureUrl':null}, .. etc

When i restart tomcat and access  http://localhost:8080/activiti-rest/service/identity/users returns 404.
it is this way unless drop Activiti database, recreate and deploy activiti rest. Again this only works for the first time.

Any ideas why is this happening?

Outcomes