cancel
Showing results for 
Search instead for 
Did you mean: 

After restart Activiti theres no model anymore

adinilson
Champ in-the-making
Champ in-the-making

Everything I created (users, models, groups...) disapear when I reestart Tomcat and Activiti. Does anybody knows what is happening?

6 REPLIES 6

thuynh
Star Contributor
Star Contributor

HI Nil Silva ,

Of course something like that is not usual. Could you explain your problem clearer instead of 1 sentence like that? 

Please research and learn how to write a proper question on this forum.

One hint for you is have a look at your database configuration.

Thanks,

Thong

hari
Star Contributor
Star Contributor

Thats because activiti by default uses h2 database. Configure a different database of your choice and the data will be persisted. 

adinilson
Champ in-the-making
Champ in-the-making

Nice, Hari!

I looked for your words in the Manual and it says that I have to reconfigure " db.properties in the WEB-INF/classes ", but I can't find it! Can you give-me some clue?

hari
Star Contributor
Star Contributor

Hi,

It will be in tomcat/webapps/web-inf/classes/

Regards,

Hari.

gdharley
Elite Collaborator
Elite Collaborator

Hari is almost certainly correct.

You are using a H2 in memory database.

Depending on the version you are running, the database properties will be set in either db.properties file or activiti-app.properties. Either should be easy to find by simply searching the file system.

Thanks,
Greg

sunilkumartk
Champ on-the-rise
Champ on-the-rise

There are plenty of resources available online that helps you understand activiti installation and configuration or try my Installation tutor here.